Cargo Features
[dependencies]
custom_error_core = { version = "1.9.0", default-features = false, features = ["std", "unstable"] }
- default = std
-
The
stdfeature is set by default whenevercustom_error_coreis added withoutsomewhere in the dependency tree.default-features = false - std default
-
Disable std for use in no_std context.
- unstable
-
Enable allocator_api and try_reserve, to define Error trait for unstable
AllocErrorandTryReserveErrorin no-std