Cargo Features

cfg-if has no features set by default.

[dependencies]
cfg-if = { version = "1.0.0", features = ["rustc-dep-of-std"] }
rustc-dep-of-std = compiler_builtins, core

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.

compiler_builtins rustc-dep-of-std?
core rustc-dep-of-std?

Enables rustc-std-workspace-core