Jane Lusby
10570f5d72
Rename more of the API
2020-02-27 17:23:09 -08:00
Jane Lusby
04f6ed13d2
Rename context apis
2020-02-27 17:15:17 -08:00
Jane Lusby
74938f4ad8
Allow customization of error context
2020-02-27 15:50:57 -08:00
Jane Lusby
c476a98f77
Rename Context trait
2020-02-27 13:18:06 -08:00
Jane Lusby
86da223cde
Rename core types
2020-02-27 13:04:19 -08:00
David Tolnay
bac602c301
Merge pull request #65 from kornelski/patch-1
...
Add crates-io category
2020-02-13 09:11:19 -08:00
Kornel
e12fe91fb6
Add crates-io category
2020-02-13 13:21:07 +00:00
David Tolnay
0018deb930
Update ui tests to nightly-2020-02-08
2020-02-07 16:57:41 -08:00
David Tolnay
5259d5233c
Update ui tests to nightly-2020-01-11
2020-01-20 16:31:38 -08:00
David Tolnay
b16893a21c
Opt in to experimental trybuild diffs
2019-12-25 17:41:54 -05:00
David Tolnay
a0e1af6809
Display a Travis badge on crates.io
2019-12-24 20:55:28 -05:00
David Tolnay
332913bcef
Release 1.0.26
2019-12-23 21:45:26 -05:00
David Tolnay
6def70f4ed
Rename ind field of Indented
...
`ind` was confusingly used for both the number of the whole indented
message and the index of the enumerated lines within one message. It is
also ambiguous between being short for "index" vs "indent" in the
context of an indented writer.
2019-12-23 21:43:27 -05:00
David Tolnay
dedb78c3ff
Simplify string writing in Indented
2019-12-23 21:43:26 -05:00
David Tolnay
88a72faee0
Remove trimming from Indented writer
...
Starting error messages with "\n " so that rustc's default `main`
prints them on the next line after the "Error:" heading is not a pattern
I want to encourage.
2019-12-23 21:43:25 -05:00
David Tolnay
b0892e8e3f
Remove verbose Indented constructors
2019-12-23 21:43:24 -05:00
Jane Lusby
ba0f8c9928
Apply indent in causes on each new line ( #54 )
2019-12-23 21:43:01 -05:00
David Tolnay
6b8064aab2
Add basic trybuild test for error missing Display impl
2019-11-28 11:54:07 -08:00
David Tolnay
d9957be8c2
Update crates.io description metadata
2019-11-27 22:08:41 -08:00
David Tolnay
3cd0fcb2d1
Release 1.0.25
2019-11-27 22:04:45 -08:00
David Tolnay
55343b9d6c
Merge pull request #53 from dtolnay/nostd
...
Add no_std + alloc support
2019-11-27 22:02:57 -08:00
David Tolnay
10156ddb26
Require minimum rustc 1.36 to use alloc
2019-11-27 21:57:03 -08:00
David Tolnay
3f134b2f80
Test no-std support in CI
2019-11-27 21:55:25 -08:00
David Tolnay
9d944e6a2e
Document no-std support
2019-11-27 21:55:25 -08:00
David Tolnay
60c88bc53c
Expose reduced API in no_std mode
2019-11-27 21:23:37 -08:00
David Tolnay
bacf886a9c
Import from core where possible
...
In preparation for introducing no_std support!
2019-11-27 21:02:34 -08:00
David Tolnay
e48b330f95
Merge pull request #52 from dtolnay/quoted
...
Remove std dependency from context's Debug impl
2019-11-27 21:02:00 -08:00
David Tolnay
2e711d6afa
Remove std dependency from context's Debug impl
...
Replacing the std-only to_string() call in the previous implementation
is required for introducing no_std support.
2019-11-27 20:56:23 -08:00
David Tolnay
4f123aee8b
Remove need for allow(unused_imports)
2019-11-27 20:27:12 -08:00
David Tolnay
9060b6b754
No need to probe backtrace if std is disabled
2019-11-27 16:22:31 -08:00
David Tolnay
e7fd273754
Avoid unused import when building without backtrace
2019-11-27 16:07:45 -08:00
David Tolnay
d175627ab6
Release 1.0.24
2019-11-27 14:55:28 -08:00
David Tolnay
74fbea66c7
Merge pull request #50 from dtolnay/boxed
...
Conversion from Box<dyn StdError + Send + Sync> to Error
2019-11-27 14:54:47 -08:00
David Tolnay
1a7c075a7e
Merge pull request #49 from kolloch/patch-1
...
Rename the probe rust file to probe.rs
2019-11-27 14:52:18 -08:00
David Tolnay
9256781026
Conversion from Box<dyn StdError + Send + Sync> to Error
2019-11-27 14:49:42 -08:00
David Tolnay
ba0b30790c
Move transparent wrapper errors to own module
2019-11-27 14:23:13 -08:00
Peter Kolloch
f8c7340ec7
Rename the probe rust file to probe.rs
...
This would help some people with build problems using [nix](https://nixos.org) or to be more specific `buildRustCrate` (but that's probably not meaningful to you).
See https://github.com/kolloch/crate2nix/issues/39 and https://github.com/NixOS/nixpkgs/issues/74071.
It is clearly a bug in buildRustCrate but if you could accept this change in the meanwhile...
2019-11-24 20:48:14 +01:00
David Tolnay
303e1a08e7
Release 1.0.23
2019-11-22 19:06:55 -08:00
David Tolnay
dc263b4c19
Test derive(Error) in docs using thiserror
2019-11-22 19:06:03 -08:00
David Tolnay
284dec5328
Remove extra trailing newline from debug representation
...
The termination impl for Result inserts a trailing newline automatically:
https://github.com/rust-lang/rust/blob/1.39.0/src/libstd/process.rs#L1640
So if we print one too, there ends up being a needless blank line in the
output.
2019-11-22 18:57:56 -08:00
David Tolnay
9a06ac1ea1
Simplify cause chain printing
...
I find this clearer because each component (the indent, the index, and
the message) is each only printed in one place.
2019-11-22 18:49:29 -08:00
David Tolnay
2d8d0aa02a
Implement Default for Chain to be an empty chain
2019-11-22 18:12:54 -08:00
David Tolnay
ca2b8b9bb0
Add a Chain::new constructor
2019-11-22 18:12:52 -08:00
David Tolnay
2c88164b5b
Add AsRef impls for Error
...
These are potentially friendlier than fiddling with &** to get the trait
object.
let _: &dyn StdError = error.as_ref();
2019-11-22 16:51:41 -08:00
David Tolnay
645a81c135
Remove stack backtrace disabled notice
...
This message ended up being too noisy. Applications that want to print a
notice like this can print it themselves.
2019-11-22 12:07:47 -08:00
David Tolnay
1790576a85
Release 1.0.22
2019-11-18 11:47:01 -08:00
David Tolnay
cb3c80cca7
Merge pull request #47 from dtolnay/anyhow
...
Handle anyhow::Error as argument to anyhow!()
2019-11-18 11:46:34 -08:00
David Tolnay
210e60a8c4
Handle anyhow::Error as argument to anyhow!()
2019-11-18 11:42:12 -08:00
David Tolnay
59fb765bab
Add test for anyhow from anyhow
2019-11-18 11:42:11 -08:00
David Tolnay
6088b60791
Fill in some explanations of unsafe code
...
Closes #14 .
2019-11-17 16:01:08 -08:00