Cargo Features
[dependencies]
tiny-std = { version = "0.2.4", default-features = false, features = ["alloc", "allocator-provided", "cli", "global-allocator", "executable", "library", "start", "symbols", "aux", "vdso", "threaded"] }
- default = alloc
-
The
alloc
feature is set by default whenevertiny-std
is added without
somewhere in the dependency tree.default-features = false - alloc default threaded?
-
With an allocator, needs to be provided,
Affects
fs::read
,fs::read_to_string
,io::Read.read_to_end
,io::Read.read_to_string
,process::Command
,process::ProvidedEnvironment
,host_name::host_name
… - allocator-provided global-allocator?
-
Affects
tiny-std::allocator
… - cli = start
-
Affects
unix::cli
… - global-allocator = allocator-provided
- executable = aux, start, symbols, vdso
-
Pulls in all features to make an executable that works as expected (env etc), std-incompatible
- library = start
-
Pulls in features that enable functionality without making std-incompatible
- start aux? cli? executable? library? threaded?
-
Lib sections of things dependant of start files
Enables start of tiny-start
Affects
tiny-std::env
,tiny-std::start
… - symbols executable?
-
Symbols required for properly using start parts, becomes incompatible with stdlib if activated
Enables mem-symbols of tiny-start
- aux executable? vdso? = start
-
Pull in aux values in the program entrypoint
Enables aux of tiny-start
Affects
elf::aux
… - vdso executable? = aux
-
Try to pull in get_time through the VDSO in the program entrypoint
- threaded = alloc, start
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.