Cargo Features

compat-no-std has no features set by default.

[dependencies]
compat-no-std = { version = "0.4.1-patch1", features = ["std", "unstable", "compat_hash", "compat_sync", "compat_macros", "compat_cstr", "compat_osraw", "compat_path", "compat_guard_unwrap"] }
std

Affects compat-no-std::prelude

alloc unstable
compat_hash = hashbrown

This will sadly also add hashbrown even if overriden by std. Cargo does not seem to provide any cfg(compat_hash && !std) functionality.
Luckily, hashbrown is really small.

compat_sync = spin
compat_macros
compat_cstr = cstr_core
compat_osraw = libc
compat_path = unix_path
compat_guard_unwrap

Affects generated::compat_guard_unwrap

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.

hashbrown compat_hash?

Enables hashbrown ^0.8.1

spin compat_sync?

Enables spin ^0.7.0

cstr_core compat_cstr?
libc compat_osraw?
unix_path compat_path?