Cargo Features
[dependencies]
nostd = { version = "0.1.1", default-features = false, features = ["std", "alloc", "io", "hashbrown"] }
- default = alloc
-
The
alloc
feature is set by default whenevernostd
is added without
somewhere in the dependency tree.default-features = false - std = alloc
- alloc default std?
-
Enables alloc of optional memchr
memchr:
The 'alloc' feature enables some APIs that require allocation, such as 'Finder::into_owned'. Note that this feature does not enable runtime CPU
feature detection. That still requires 'std'.Affects
traits::Read.read_to_end
,nostd::collections
… - io = memchr
-
Affects
nostd::io
…
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.