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 wheneverunicode-width
is added without
somewhere in the dependency tree.default-features = false - 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.