Cargo Features
[dependencies]
validus = { version = "0.3.0", default-features = false, features = ["alloc", "std", "ext", "serde", "cow"] }
- default = ext, serde, std
-
These default features are set whenever
validus
is added without
somewhere in the dependency tree.default-features = false - alloc cow? std
-
integrate with smart pointers (e.g., Box) and String
- std default ext serde = alloc
-
implement std::error::Error (not available in
core
yet) - ext default = std
-
certain extensions require errors, and thus std
Enables thiserror ^1.0.40
Affects
validus::vstrext
… - serde default = std
-
serde is a std feature due to its use of std::error::Error
Enables serde
- cow = alloc
-
experimental feature