A no_std compatible derive macro for the Error trait.
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
use thiserror_no_std::Error;
Define a custom error type using thiserror-no-std.
use thiserror_no_std::Error;
#[derive(Error, Debug)]
pub enum MyError {
#[error("io error: {0}")]
Io(#[from] std::io::Error),
}
fn main() {
let err = MyError::Io(std::io::Error::new(std::io::ErrorKind::Other, "oh no"));
println!("{}", err);
}
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.
Agent activity
0 hits · last 30 days
No traffic data recorded yet.