[package] name = "compat-no-std" version = "0.4.1-patch1" authors = ["jD91mZM2 "] exclude = [ "example-crates/**/*" ] description = "A `#![no_std]` compatibility layer that will make porting your crate to no_std *easy*." repository = "https://gitlab.com/jD91mZM2/no-std-compat" categories = [ "no-std" ] license = "MIT" readme = "README.md" edition = "2018" [dependencies] hashbrown = { version = "0.8.1", optional = true } spin = { version = "0.7.0", optional = true } cstr_core = { version = "0.2.3", optional = true } libc = { version = "0.2.97", optional = true } unix_path = { version = "1.0.1", optional = true } [dev-dependencies] libc = "0.2.97" [profile.dev] panic = "abort" [features] alloc = [] std = [] unstable = [] # 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_hash = ["hashbrown"] compat_sync = ["spin"] compat_macros = [] compat_cstr = ["cstr_core"] compat_osraw = ["libc"] compat_path = ["unix_path"] compat_guard_unwrap = []