Cargo Features
[dependencies]
nostd = { version = "0.1.6", default-features = false, features = ["std", "alloc", "io", "hashbrown"] }
- default = alloc
-
The
allocfeature is set by default whenevernostdis added withoutsomewhere 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
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.
- hashbrown implicit feature
-
Enables hashbrown ^0.15
hashbrown:
A Rust port of Google's SwissTable hash map
- memchr io?