Crate features / whoami
Feature flags · whoami 2.1.3 · from crates.io 2026-10-24
whoami features: what each one does, and the line to copy
Short answerwhoami 2.1.3 has 4 features. By default it turns on std, wasi-wasite, wasm-web; add default-features = false to start from nothing. It needs Rust 1.75 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
force-stub | nothing else (a switch the code checks) | |
std | yes | dep:libc, dep:libredox, dep:objc2-system-configuration, libc?/std, web-sys?/std |
wasi-wasite | yes | dep:wasite |
wasm-web | yes | dep:web-sys |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version whoami declares (rust-version), and the release that changed it:
- 2.0.0-pre.0 (2024-11-19): Rust 1.65
- 1.6.0-pre.0 (2025-01-11): Rust 1.40
- 2.0.0-pre.1 (2025-02-26): Rust 1.65
- 1.6.0-pre.2 (2025-03-07): Rust 1.40
- 2.0.0-pre.2 (2025-03-07): Rust 1.65
- 1.6.0 (2025-03-23): Rust 1.40
- 2.0.0-pre.3 (2025-08-11): Rust 1.65
- 1.6.1 (2025-08-11): Rust 1.40
- 2.0.1 (2026-01-08): Rust 1.65
- 2.1.0 (2026-01-28): Rust 1.75
- 2.0.4 (2026-04-27): Rust 1.65
- 2.1.2 (2026-04-27): Rust 1.75
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p whoami --precise <version>, or use resolver 3, which picks compatible versions for you.
More on whoami
Real downloads, dependents and alternatives: whoami crate data (872K real downloads a day, 481 dependents).
Security record: whoami advisories.
docs.rs feature list · crates.io · license Apache-2.0 OR BSL-1.0 OR MIT · edition 2021
Up next
Before you depend on itwhoami crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?