412 Commits

Author SHA1 Message Date
Pavan Kumar Sunkara
0b24ae558f
Merge pull request #105 from eyre-rs/color-spantrace
Add color-spantrace to monorepo
2023-10-10 23:36:46 +01:00
Tei Leelo Roberts
e610c81607
Merge pull request #109 from eyre-rs/fix-color-spantrace-test
Fix color-spantrace test due to misinterpreted relative paths
2023-10-11 00:28:12 +02:00
Tei Roberts
0d7f941eb2 fix: unused imports under miri 2023-10-10 23:51:31 +02:00
Tei Roberts
0ad6355d9f chore: clarify file! behavior 2023-10-10 23:46:57 +02:00
Tei Roberts
e54e98f313 fix: color-spantrace does not work in miri sandbox 2023-10-10 23:43:32 +02:00
Tei Roberts
22b871bc0e fix: color-spantrace test due to misinterpreted relative paths 2023-10-10 23:40:34 +02:00
Pavan Kumar Sunkara
e42d667d15 Add color-spantrace to workspace 2023-10-03 21:18:59 +01:00
Pavan Kumar Sunkara
b40a66d493 Add 'color-spantrace/' from commit '1a52aac2b55a05efc64807f06b91414550805af8'
git-subtree-dir: color-spantrace
git-subtree-mainline: a443fd444ecfe8ac7f0d9a33b3f8e8d125eedbff
git-subtree-split: 1a52aac2b55a05efc64807f06b91414550805af8
2023-10-03 21:11:23 +01:00
Pavan Kumar Sunkara
a443fd444e
Move eyre code into a folder (#107) 2023-10-03 13:08:47 -07:00
Pavan Kumar Sunkara
044e2ae420
Merge pull request #104 from eyre-rs/monorepo
Create foundation for monorepo
2023-09-20 09:16:17 +01:00
Pavan Kumar Sunkara
be31cf59ff Create foundation for monorepo 2023-09-20 00:12:33 +01:00
Tei Leelo Roberts
9f4ecc497e
Fix miri validation errors through now stricter provenance (#103)
* fix(miri): box transmute and invalid references

The general causes for the miri invalidation is the prevelant use of
`Box` and its references to `ErrorImpl<()>`.

`mem::transmute` does not preserve the tag stack for transmuting the
boxes.

Additionally, having references to `ErrorImpl<()>` which has a different
layout than the allocation or `ErrorImpl<E>` for some unknown `E`. This
causes the new "untyped" reference to now have a provenance that
includes the size of E and thus is outside the provenance.

* fix(miri): downcast_mut using `&mut _ => *const _ => *mut`

* fix(miri): stub file reading

* fix(miri): don't construct temp references of shunk provenance

* ci: miri

* fix: `unsafe_op_in_unsafe_fn`

* chore!: bump MSRV

* chore: address PR comments

* fix: ci workflow names

* chore: raise msrv to 1.65 (addr2line)

* chore: revert distinctive CI names due to branch protection rules

The new names, such as `Test Platform Matrix` which do make it easier to
see which jobs failed, rather than msrv, test, and miri all being called
`Test Suite`, the in-place branch protection rules wait forever until
the now non-existent `Test Suite` passes
2023-09-19 13:02:20 -07:00
Tei Leelo Roberts
2d984da845
Cleanup internals (#101)
* fix: const_err is not a hard error

See: https://github.com/rust-lang/rust/issues/71800

* fix: lints

* fix: macro doctests

* fix: renamed lint

* fix: restore use of enum variant
2023-08-16 11:52:32 -07:00
Georg Brandl
ee2077e01d
lib: fix typos (#88)
* lib: fix typos

* lib: more typos
2023-08-11 19:07:49 -07:00
Joel Montes de Oca
c32a8d0b67
Grammer/typo (#85) 2022-08-19 14:11:29 -07:00
Tim Diekmann
dba523177e
Fix stacked borrows when dropping Error (#81) 2022-07-07 12:01:42 -07:00
Jane Lusby
64f88d7279
Add community discord to readme (#76) 2022-05-18 17:15:50 -07:00
Jane Lusby
1a52aac2b5
Merge pull request #19 from erickt/master
Add license files
2022-05-05 11:04:35 -07:00
Erick Tryzelaar
35031dc499 Add license files 2022-05-05 10:38:25 -07:00
Jane Lusby
b8f3892754
Release 0.6.8 (#74)
* Update changelog for new release

* Add recommendations on API stability

* (cargo-release) version 0.6.8
2022-04-04 10:31:50 -07:00
Philipp Oppermann
4f9661522b
Mark Report as #[must_use] (#73)
Not using the error type after construction is a common mistake. This can also easily happen with the provided macros, when using `eyre!` instead of `eyre::bail!`. By marking the type as `#[must_use]`, the compiler warns us in such cases.
2022-03-30 07:31:37 -07:00
William D. Jones
769e26e4ab
Add must-install feature, so that a non-default handler can be the on… (#52)
* Add must-install feature, so that a non-default handler can be the only handler consuming .text.

* Provide a better panic message if `must-install` feature is enabled.

Co-authored-by: Jane Lusby <jlusby42@gmail.com>

* Bump version because new feature was added.

* Convert must-install feature to auto-install to avoid negative features.

* Add ability to manually install DefaultHandler (for when auto-install is disabled).

* Ensure doctests pass when auto-install feature is disabled.

* Integration tests now succeed without auto-install feature.

* Add integration test for when auto-install feature is disabled.

* Add auto-install feature testing to CI.

* cargo fmt.

Co-authored-by: Jane Lusby <jlusby42@gmail.com>
Co-authored-by: Jane Lusby <jlusby@yaah.dev>
2022-03-25 13:32:39 -07:00
Jane Lusby
f4ebce4518
release 0.6.7 (#71)
* update changelog

* (cargo-release) version 0.6.7
2022-02-24 21:10:36 -08:00
Ana Hobden
3eedb84fe0
Add #[track_caller] to format_err (#70)
Signed-off-by: Ana Hobden <operator@hoverbear.org>
2022-02-24 17:06:32 -08:00
Jeremy Banks
2c9a940e1d
docs: correct "eyre::Error" to "eyre::Report" (#69) 2022-01-31 10:25:08 -08:00
Jane Lusby
fb77d1b783
Release 0.6.6 (#67)
* update changelog

* mention new format args capture in docs

* cfg doctest to compile on all versions of rustc

* update field for newer versions of cargo release

* (cargo-release) version 0.6.6
2022-01-19 15:44:40 -08:00
x-hgg-x
7c7155f677
Support format arguments capture (#66)
* Support format arguments capture

* Fix tests
2022-01-19 15:06:40 -08:00
Jane Lusby
ac0cbccd90
Merge pull request #18 from yaahc/release
Prepare for 0.2 release
2022-01-12 16:35:35 -08:00
Jane Lusby
15538366ff (cargo-release) version 0.2.0 2022-01-12 16:01:21 -08:00
Jane Lusby
c0ec5ffeec Prepare for 0.2 release 2022-01-12 15:59:48 -08:00
Jane Lusby
58b8be7e95
Merge pull request #16 from asonix/asonix/update-ansi-parser
Update ansi-parser
2022-01-12 15:50:15 -08:00
Jane Lusby
a61d863761
Merge branch 'master' into asonix/update-ansi-parser 2022-01-12 15:47:48 -08:00
Jane Lusby
e5c13ca3e3
Merge pull request #17 from asonix/asonix/update-owo-colors
Update owo-colors
2022-01-12 15:47:39 -08:00
Jane Lusby
d5e3aa4d1b
Merge branch 'master' into asonix/update-ansi-parser 2022-01-12 15:45:22 -08:00
Jane Lusby
77da3e705c
Merge branch 'master' into asonix/update-owo-colors 2022-01-12 15:45:17 -08:00
Jane Lusby
43ed8a53b8
Merge pull request #15 from asonix/asonix/fix-warnings
Fix lint warnings
2022-01-12 15:45:08 -08:00
Jane Lusby
9350c4f9e5
Update Cargo.toml 2022-01-12 15:42:46 -08:00
Jane Lusby
1b9c9bd61e
Merge branch 'master' into asonix/update-owo-colors 2022-01-12 15:42:25 -08:00
Jane Lusby
3de5d080bf
Merge branch 'master' into asonix/fix-warnings 2022-01-12 15:41:57 -08:00
Jane Lusby
52c6cc1090
Merge branch 'master' into asonix/update-ansi-parser 2022-01-12 15:41:41 -08:00
Jane Lusby
444e67287f
Merge pull request #14 from asonix/asonix/update-tracing-error
Update tracing-error (and tracing-subscriber)
2022-01-12 15:40:49 -08:00
Aode (lion)
37d4dce5c4 Update owo-colors 2021-12-26 11:54:06 -06:00
Aode (lion)
3080506345 Update ansi-parser 2021-12-26 11:17:16 -06:00
Aode (lion)
99371c3274 Update tracing-error (and tracing-subscriber) 2021-12-26 11:13:05 -06:00
Aode (lion)
1d40228297 Fix lint warnings 2021-12-26 11:11:04 -06:00
Jane Lusby
18404ad340
Merge pull request #55 from yaahc/helpful
update references to renamed Help trait
2021-07-23 09:23:29 -07:00
Jane Lusby
f7cf03ca5b update references to renamed Help trait 2021-07-23 09:19:14 -07:00
Jane Lusby
54933ea76d
Release 0.6.5 (#49)
* Release 0.6.5

* (cargo-release) version 0.6.5
2021-07-01 22:18:00 +00:00
Ryan Butler
1ea7c204e6
Add support for conversion to pyo3::PyErr (#47)
* Added convertion to pyo3::PyErr gated behind feature flag

* Added test_pyo3

* fix ci to not test unsupportable feature msrv

* fix rustfmt

Co-authored-by: Jane Lusby <jlusby@yaah.dev>
2021-01-05 09:49:15 -08:00
Jane Lusby
60218fff20
Add track_caller on APIs missing it (#48)
This change adds `track_caller` annotations to `context.rs` on various trait helper methods (`wrap_err`) that were missing it. It also adds tests for these APIs to ensure that the location captured is in the file that created the error.
2021-01-04 18:08:27 +00:00