Function rsconf::enable_cfg
source ยท pub fn enable_cfg(name: &str)
Expand description
Enables conditional compilation of code behind #[cfg(name)]
or with if cfg!(name)
(without quotes around name
).
See set_cfg_value()
to set a (name, value)
tuple to enable conditional compilation of the
form #[cfg(name = "value")]
for cases where name
is not a boolean cfg but rather takes any
of several discrete values.
Note the different from #[cfg(feature = "name")]
! The configuration is invisible to end users
of your code (i.e. name
does not appear anywhere in Cargo.toml
) and does not participate in
dependency resolution.