Cargo Features

smartstring = { version = "1.0.1", default-features = false, features = ["std", "test", "serde", "proptest"] }
default = std

The std feature is set by default whenever smartstring is added without default-features = false somewhere in the dependency tree.

std default test?
test = arbitrary, std

Enables derive of arbitrary


Turn this feature on to enable support for #[derive(Arbitrary)].

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

serde implicit feature

Enables serde


A generic serialization/deserialization framework

proptest implicit feature

Enables proptest


Hypothesis-like property-based testing and shrinking

Affects smartstring::proptest

arbitrary test?