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 default-features = false somewhere in the dependency tree.

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