14 Commits

Author SHA1 Message Date
Jane Losare-Lusby
c6bf9c1f05
Add release-plz to CI (#242)
also fix clippy warnings
2025-08-06 14:31:49 -07:00
Malloc Voidstar
f21bfc253c
Fix typo in CI 2024-05-29 10:55:52 -07:00
Freja Roberts
a0f3f641df
Fix overly strict clippy lint (#172)
Deny style, suspicious and complexity categories, rather than all
warnings

If we find issues that could have been caught by a clippy lint we can
add that lint on as *deny* too, as for now, they still appear as
warnings but won't prevent CI from running.

This most notably fixes random CI breakages when clippy/rust updates and
introduces new warn level lints
2024-05-16 13:43:04 +01:00
Pavan Kumar Sunkara
7c7079ed6e Add color-eyre to workspace 2023-10-11 21:47:49 +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
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
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
Jane Lusby
86c1267aab
bump indenter dep version and update readme
* Update testing

* dont bother testing no_std yet ...

* bump version for new release with fixed indenter

* add documentation about custom context crates
2020-05-17 10:37:33 -07:00
Jane Lusby
fc662c5ae5 simplify ci requirements 2020-02-28 10:13:16 -08:00
Jane Lusby
11757c1da5 make an effort at no_std support 2020-02-28 08:54:39 -08:00
Jane Lusby
6c1a9af5b8 move fmting to trait and add github actions support 2020-02-28 08:21:08 -08:00