Cargo Features

[dependencies]
unicode-width = { version = "0.2.0", default-features = false, features = ["cjk", "rustc-dep-of-std", "no_std"] }
default = cjk

The cjk feature is set by default whenever unicode-width is added without default-features = false somewhere in the dependency tree.

cjk default

Affects unicode-width::UnicodeWidthChar.width_cjk, unicode-width::UnicodeWidthStr.width_cjk, tables::single_char_width_cjk, tables::str_width_cjk

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?