Cargo Features

[dependencies]
sanitise-file-name = { version = "1.0.0", default-features = false, features = ["std", "alloc", "const-fn-trait-bound", "tinyvec_string"] }
default = std

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

std default = alloc
alloc std

Affects sanitise-file-name::sanitise, sanitise-file-name::sanitise_with_options

const-fn-trait-bound

Affects sanitise-file-name::max_alloc_size

Features from optional dependencies

tinyvec_string implicit feature

Enables tinyvec_string

Only the tests depend on rustc_1_55.