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 whenever tiny-std is added without default-features = false somewhere in the dependency tree.

alloc default threaded?

With an allocator, needs to be provided,

Enables alloc of rusl

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.

tiny-start aux? start? symbols?