585 Commits

Author SHA1 Message Date
Jane Losare-Lusby
12479e96ef
Add contributing doc for eyre (#99)
* Add contributing doc for eyre

* update labels and remove unnecessary complexity
2023-11-07 14:02:24 -08:00
nori li
2ec1dff66d
Update documentation on no_std support. (#111)
no_std support was removed in 2020 with PR #29. This change updates the documentation to reflect that as suggested in PR #89. It still mentions no_std, which will hopefully keep it on our minds enough to check sometimes and see if the upstream problem has been resolved.

Co-authored-by: Jane Losare-Lusby <jlusby@yaah.dev>
2023-11-07 13:46:13 -08:00
nori li
7fefca5981
Add build script to check for nightly (#112)
The rustdoc_missing_doc_code_examples lint has been sending
warnings and causing CI issues due to being an unstable feature.

This change introduces a small build script that detects whether
the current toolchain is nightly and, if so, sets the config option
"nightly_features". This config option then sets the feature gate
for missing_doc_code_examples and turns on 'warn'.

It expands the existing code for parsing minor version
to parse the rest of the rust --version.

This change also introduces a toolchain test that uses
rust_version to double-check that the config option was enabled
IFF the nightly toolchain is being used.
2023-11-07 13:35:25 -08:00
Pavan Kumar Sunkara
7c7079ed6e Add color-eyre to workspace 2023-10-11 21:47:49 +01:00
Pavan Kumar Sunkara
59938211cc Add 'color-eyre/' from commit '4a7b4d6988c6b0da5e04e29c9d6e10595b5dc302'
git-subtree-dir: color-eyre
git-subtree-mainline: 0b24ae558f4779afccb1dfc4640c57d9922ff70e
git-subtree-split: 4a7b4d6988c6b0da5e04e29c9d6e10595b5dc302
2023-10-11 21:23:52 +01:00
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
Jane Losare-Lusby
4a7b4d6988
Merge pull request #113 from chris-laplante/cpl/suppress_backtrace
add `suppress_backtrace` method
2022-08-03 19:37:19 -07:00
Jane Losare-Lusby
93fcb6f8cd
Merge branch 'master' into cpl/suppress_backtrace 2022-08-01 13:20:14 -07:00
Chris Laplante
2821e2b4b8 cargo fmt 2022-07-29 22:00:17 -04:00
Jane Losare-Lusby
ad685891aa
Merge pull request #114 from jaysonsantos/master
fix: Do not panic on multiple `install` calls
2022-07-29 14:22:56 -07:00
Jane Losare-Lusby
1400430238
Apply suggestions from code review 2022-07-27 14:16:53 -07:00
Jayson Reis
d70363e7fc fix: Extract backward compatible bits from into_hooks into try_into_hooks 2022-07-27 23:07:00 +02:00
Jayson Reis
c770783f17
Merge branch 'master' into master 2022-07-27 20:23:32 +02:00
Jayson Reis
22ac4dab5f chore: fix panic compose example 2022-07-27 17:04:10 +02:00
Jane Losare-Lusby
bbe5705612
Merge pull request #115 from sciguy16/version-update
Update version in setup instructions to 0.6
2022-07-26 11:05:43 -07:00
David Young
9e6280be23 Update version in setup instructions to 0.6 2022-07-26 11:57:29 +01:00
Jayson Reis
48037df311 fix: Do not panic on multiple install calls 2022-07-26 09:27:37 +02:00
Chris Laplante
99df70d21f
Merge branch 'yaahc:master' into cpl/suppress_backtrace 2022-07-21 16:50:38 -04:00
Chris Laplante
5aa7c40f38 add suppress_backtrace 2022-07-15 17:41:16 -04:00
Jane Losare-Lusby
ede865079d
Merge pull request #112 from yaahc/release
Release 0.6.2
2022-07-11 16:14:38 -07:00
Jane Lusby
6a9b70b44d (cargo-release) version 0.6.2 2022-07-11 16:06:14 -07:00
Jane Lusby
6ebf8453ea Update changelog for new release 2022-07-11 16:04:26 -07:00
Jane Losare-Lusby
5f8b4754be
Merge pull request #111 from yaahc/appeasement
fix clippy warnings
2022-07-11 16:02:05 -07:00
Jane Lusby
5890bab176 fix clippy warnings 2022-07-11 15:55:30 -07:00
Jane Losare-Lusby
08e216de30
Merge pull request #106 from Emilgardis/display_location_section
add config option to disable location section
2022-07-11 11:22:35 -07:00
Tim Diekmann
dba523177e
Fix stacked borrows when dropping Error (#81) 2022-07-07 12:01:42 -07:00
Emil Gardström
9cbcd93490 add config option to disable location section 2022-06-11 19:27:26 +02:00
Jane Lusby
64f88d7279
Add community discord to readme (#76) 2022-05-18 17:15:50 -07:00
Jane Lusby
2128f074a9
Merge pull request #104 from dbanty/master
Add LICENSE files
2022-05-05 11:19:47 -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
Dylan Anthony
615d16ca0d
Add LICENSE files to close #90 2022-03-15 18:07:25 -06:00
Jane Lusby
801aa67004
Merge pull request #101 from yaahc/release
Release 0.6.1
2022-03-02 10:34:36 -08:00