Cargo Features
[dependencies]
refinement-types = { version = "0.3.0", default-features = false, features = ["std", "alloc", "serde", "regex", "diagnostics", "unsafe-assert"] }
- default = std
-
The
std
feature is set by default wheneverrefinement-types
is added without
somewhere in the dependency tree.default-features = false - std default diagnostics? regex?
- alloc
- serde
-
Enables serde
- regex = std
-
Enables regex
Affects
refinement-types::type_regex
,core::MismatchError
,core::Matches
… - diagnostics = std
-
Enables miette
- unsafe-assert