Cargo Features

unicode-width has no features set by default.

[dependencies]
unicode-width = { version = "0.1.12", features = ["rustc-dep-of-std", "no_std"] }
rustc-dep-of-std = compiler_builtins, core, std
no_std

Legacy, now a no-op

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

compiler_builtins rustc-dep-of-std?