Cargo Features
[dependencies]
sec = { version = "1.0.0", default-features = false, features = ["std", "ord", "serialize", "deserialize", "diesel_sql"] }
- default = std
-
The
std
feature is set by default wheneversec
is added without
somewhere in the dependency tree.default-features = false - std default
-
the std feature enables
String
support, but requires the standard library - ord
-
the ord feature enables potentially leaky PartialOrd and Ord traits
- serialize = serde
-
serde is optional
- deserialize = serde
- diesel_sql = diesel
-
feature for diesel-rs
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- diesel diesel_sql?
-
Enables diesel ^1
- serde deserialize? serialize?