Crate features / getopts
Feature flags · getopts 0.2.24 · from crates.io 2026-10-24
getopts features: what each one does, and the line to copy
Short answergetopts 0.2.24 has 2 features. By default it turns on unicode; add default-features = false to start from nothing. It needs Rust 1.66 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
rustc-dep-of-std | std, core | |
unicode | yes | dep:unicode-width |
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 getopts declares (rust-version), and the release that changed it:
- 0.2.22 (2025-06-09): Rust 1.49
- 0.2.23 (2025-06-09): Rust 1.66
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p getopts --precise <version>, or use resolver 3, which picks compatible versions for you.
More on getopts
Real downloads, dependents and alternatives: getopts crate data (419.1K real downloads a day, 522 dependents).
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2021
Up next
Before you depend on itgetopts crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?