Cargo Features

getopts has no features set by default.

[dependencies]
getopts = { version = "0.2.21", features = ["rustc-dep-of-std"] }
rustc-dep-of-std = core, std

Enables rustc-dep-of-std of unicode-width

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.

std rustc-dep-of-std?

Enables rustc-std-workspace-std

core rustc-dep-of-std?

Enables rustc-std-workspace-core