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 whenever sec is added without default-features = false somewhere in the dependency tree.

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?