3 stable releases

1.0.50 Nov 19, 2023
1.0.38 Feb 19, 2023
1.0.37 Dec 10, 2022

#24 in #detail

Download history 9141/week @ 2025-10-05 8437/week @ 2025-10-12 10818/week @ 2025-10-19 9415/week @ 2025-10-26 12901/week @ 2025-11-02 11627/week @ 2025-11-09 11145/week @ 2025-11-16 11688/week @ 2025-11-23 10834/week @ 2025-11-30 10539/week @ 2025-12-07 9481/week @ 2025-12-14 9383/week @ 2025-12-21 9240/week @ 2025-12-28 10247/week @ 2026-01-04 7078/week @ 2026-01-11 10743/week @ 2026-01-18

38,966 downloads per month
Used in 30 crates (via thiserror-core)

MIT/Apache

57KB
1.5K SLoC

derive(Error) for no_std environments

This is a fork of thiserror using the nightly only, experimental error_in_core feature in no_std environments.

Usage

// Cargo.toml
[dependencies]
thiserror = { version = "1.0", package = "thiserror-core", default-features = false }

Compiler support: requires rustc 1.56+ @@ -23,200 +18,16 @@ thiserror = "1.0"

Example

// main.rs / lib.rs
#![no_std]
#![feature(error_in_core)]

Differences between thiserror and thiserror-core

Differences are kept to a minimum and changes in thiserror master will be adopted by rebasing thiserror-core.

With the default std feature enabled, any functional difference between thiserror and thiserror-core is considered a bug.

As soon as equivalent changes are adopted, this crate will be updated to re-export thiserror.

Dependencies

~140–530KB
~13K SLoC