Cargo Features

[dependencies]
stringleton-registry = { version = "0.2.0", default-features = false, features = ["std", "alloc", "debug-assertions", "serde", "critical-section", "spin"] }
default = std

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

std default = alloc
alloc std
debug-assertions
serde

Enables serde

critical-section

Enables critical-section of once_cell

Using once_cell because std::sync::OnceLock is not available in no_std.

spin

Enables spin ^0.9.8

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.

once_cell critical-section?