PackageTrack
Sign in Get early access

crash-context

Provides portable types containing target specific contextual information at the time of a crash

0.8.0 6.5M downloads/mo #3941 most downloaded on crates.io rust-minidump/minidump-writer

What this package is like to depend on

Last release 1 months ago

17 Jul 2026

Release timing varies

gaps range from 8 days to 1.5 years

Most releases are documented

notes for 13 of 16 stable releases

Nothing withdrawn

no release was ever pulled

4 years old

16 releases · first in 2022

2 releases in the last 12 months

see the full history below

Release timeline

16 releases · Mar 2022 to Jul 2026
2023 2024 2025 2026
Release Pre-release

Releases

latest 16
  1. 0.8.0 17 Jul 2026
    Release notes

    Added

    • PR#113 added support for loongarch64 getcontext.

    Changed

    Open source →
    Release notes

    Removed

    • PR#77 removed the dependency on winapi, all bindings are either part of minidump-writer or crash-context now.

    Changed

    • PR#77 closed #67 by allowing the user to specify the MinidumpType flags when creating a minidump.

    Fixed

    • PR#68 resolved #29 by ignoring the bening ESRCH error when detaching pthreads. Thanks @afranchuk!
    • PR#74 resolved #73 by ensuring the NT_GNU_BUILD_ID section had the proper correct GNU name before using it as the build identifier.
    Open source →
    Release notes

    Added

    • PR#113 added support for loongarch64 getcontext.

    Changed

    Open source →
  2. 0.7.0 13 Jan 2026
    Release notes

    Changed

    • PR#65 updated crash-context to 0.5, which has support for a custom capture_context to replace RtlCaptureContext on Windows, due to improper bindings and deficiencies, resolving #63.
    • PR#65 replaced most of the custom bindings from PR#60 with bindings from either crash-context or winapi.
    Open source →
    Release notes

    Added

    • PR#102 added support for RISCV64 getcontext.
    • PR#109 added support for s390x getcontext.

    Changed

    • PR#111 updated MSRV to 1.85.0.
    Open source →
  3. 0.6.3 25 Jul 2024
    Release notes

    Fixed

    • PR#89 fixed compilation for arm-unknown-linux-gnueabihf...again.
    Open source →
  4. 0.6.2 08 Jun 2024
    Release notes

    Changed

    • Update MSRV to 1.62.0
    Open source →
  5. 0.6.1 19 Jun 2023
    Release notes

    Added

    Open source →
  6. 0.6.0 03 Apr 2023
    Release notes

    Changed

    • PR#60 removed the dependency on windows-sys due the massive version churn, resolving #58. This should allow projects to more easily integrate this crate into their project without introducing multiple versions of transitive dependencies.
    • PR#62 replaced MDExceptionCodeLinux with minidump_common::ExceptionCodeLinux.
    • PR#64 updated dependencies.
    Open source →
    Release notes

    Changed

    • PR#70 removed the winapi dependency in favor of embedded bindings to avoid dependencies.
    • PR#70 removed the asm implementations for Windows CPU context retrieval in favor of using RtlCaptureContext. This means that floating state is not captured, but is otherwise and improvement.

    Added

    • PR#68 added capture context support for x86 Windows, but this change was supplanted in PR#70 to use RtlCaptureContext instead.

    Fixed

    • PR#71 fixed the definition of mcontext_t for i686-unknow-linux. Thanks @afranchuk!
    Open source →
  7. 0.5.1 17 Nov 2022
    Release notes

    Fixed

    • PR#66 (apparently) resolved #65 by...changing from AT&T to Intel syntax. This shouldn't have changed anything, but it did, and I'm too tired and have other things to work on, so here we are.
    Open source →
  8. 0.5.0 17 Nov 2022
    Release notes

    Changed

    • PR#53 made the mem_writer and dir_section modules public. Thanks @sage-msft!
    • PR#55 bumped nix, minidump-common, minidump, minidump-processor and dump_syms. Thanks @sfackler!
    • PR#57 bumped windows-sys to 0.42.

    Removed

    Open source →
    Release notes

    Added

    • PR#62 added a replacement implementation of RtlCaptureContext, and defines its own CONTEXT structure. This was needed due to both winapi and windows-sys incorrectly defining the CONTEXT and related structures on both x86_64 and aarch64 to not be correctly aligned, as well as RtlCaptureContext not actually capturing the floating point and vector state.
    Open source →
  9. 0.4.0 21 Jul 2022
    Release notes

    Changed

    • PR#50 updated minidump-common and crash-context.

    Fixed

    • PR#50 resolved #33 by encoding the full exception info in the exception_information field of the exception stream.
    • PR#50 resolved #34 by unwrapping EXC_CRASH exceptions to retrieve the wrapped exception.
    Open source →
    Release notes

    Added

    • PR#46 added support for unpacking EXC_RESOURCE exceptions on MacOS.
    • PR#47 added support for unpacking EXC_GUARD exceptions on MacOS.

    Changed

    • PR#47 changed ExceptionInfo to use unsigned types for all of its fields. While these are declared as signed, in practice all usage of them is as unsigned integers.

    Fixed

    • PR#47 fixed a potential issue with the IPC exception passing due to the structure's not being #[repr(C, packed(4))], and the receiving side not (properly) accounting for the trailer that is added by the kernel to every mach msg.
    Open source →
  10. 0.3.1 25 May 2022
    Release notes

    Fixed

    • PR#47 resolved #46 by handling the special case of dyld.
    Open source →
    Release notes

    Changed

    • Updated to minidump-writer 0.2.1 which includes support for MacOS thread names, and aligns on crash-context 0.3.0.
    Open source →
  11. 0.3.0 23 May 2022
    Release notes

    Fixed

    • PR#42 resolved #41 by capping the VM read of task memory to avoid a syscall failure, as well as made it so that if an error does occur when reading the module's file path, the module is still written to the minidump, as the file path is less important than the UUID in terms of module identification.
    • PR#44 resolved #43 by correctly calculating the base address of each loaded module. The bug was inherited from Breakpad.
    • PR#44 and PR#45 resolved #37 by making the crash_context::CrashContext optional on MacOS and Windows, to make creating a minidump without necessarily having an actual crash more convenient for users.
    Open source →
    Release notes

    Added

    • First usable release of crash-context, crash-handler, sadness-generator, and minidumper crates.
    Open source →
  12. 0.2.0 29 Apr 2022
    Release notes

    Added

    • PR#21 added an initial implementation for x86_64-apple-darwin and aarch64-apple-darwin
    Open source →
    Release notes

    Added

    • Add Windows and MacOS support
    Open source →
  13. 0.1.0 21 Apr 2022
    Release notes

    Added

    • Initial release, including basic support for x86_64-unknown-linux-gnu/musl and x86_64-pc-windows-msvc

    <!-- next-url --> [Unreleased]: https://github.com/rust-minidump/minidump-writer/compare/0.13.0...HEAD [0.13.0]: https://github.com/rust-minidump/minidump-writer/compare/0.12.0...0.13.0 [0.12.0]: https://github.com/rust-minidump/minidump-writer/compare/0.11.0...0.12.0 [0.11.0]: https://github.com/rust-minidump/minidump-writer/compare/0.10.2...0.11.0 [0.10.2]: https://github.com/rust-minidump/minidump-writer/compare/0.10.1...0.10.2 [0.10.1]: https://github.com/rust-minidump/minidump-writer/compare/0.10.0...0.10.1 [0.10.0]: https://github.com/rust-minidump/minidump-writer/compare/0.9.0...0.10.0 [0.9.0]: https://github.com/rust-minidump/minidump-writer/compare/0.8.9...0.9.0 [0.8.9]: https://github.com/rust-minidump/minidump-writer/compare/0.8.8...0.8.9 [0.8.8]: https://github.com/rust-minidump/minidump-writer/compare/0.8.7...0.8.8 [0.8.7]: https://github.com/rust-minidump/minidump-writer/compare/0.8.6...0.8.7 [0.8.6]: https://github.com/rust-minidump/minidump-writer/compare/0.8.5...0.8.6 [0.8.5]: https://github.com/rust-minidump/minidump-writer/compare/0.8.4...0.8.5 [0.8.4]: https://github.com/rust-minidump/minidump-writer/compare/0.8.3...0.8.4 [0.8.3]: https://github.com/rust-minidump/minidump-writer/compare/0.8.2...0.8.3 [0.8.2]: https://github.com/rust-minidump/minidump-writer/compare/0.8.1...0.8.2 [0.8.1]: https://github.com/rust-minidump/minidump-writer/compare/0.8.0...0.8.1 [0.8.0]: https://github.com/rust-minidump/minidump-writer/compare/0.7.0...0.8.0 [0.7.0]: https://github.com/rust-minidump/minidump-writer/compare/0.6.0...0.7.0 [0.6.0]: https://github.com/rust-minidump/minidump-writer/compare/0.5.0...0.6.0 [0.5.0]: https://github.com/rust-minidump/minidump-writer/compare/0.4.0...0.5.0 [0.4.0]: https://github.com/rust-minidump/minidump-writer/compare/0.3.1...0.4.0 [0.3.1]: https://github.com/rust-minidump/minidump-writer/compare/0.3.0...0.3.1 [0.3.0]: https://github.com/rust-minidump/minidump-writer/compare/0.2.1...0.3.0 [0.2.1]: https://github.com/rust-minidump/minidump-writer/compare/0.2.0...0.2.1 [0.2.0]: https://github.com/rust-minidump/minidump-writer/compare/0.1.0...0.2.0 [0.1.0]: https://github.com/rust-minidump/minidump-writer/releases/tag/0.1.0

    Open source →
    Release notes

    Added

    • Initial publish of crash-handler with Linux, Windows, and MacOS support
    Open source →
  14. 0.0.3 29 Mar 2022

    Nothing published for this version

  15. 0.0.2 16 Mar 2022

    Nothing published for this version

  16. 0.0.1 15 Mar 2022

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive