[package] name = "libredox" authors = ["4lDO2 <4lDO2@protonmail.com>", "vasilito "] version = "0.1.18+rb0.2.5" edition = "2021" license = "MIT" description = "Redox stable ABI" repository = "https://gitea.redbearos.org/vasilito/RedBear-OS" exclude = ["target"] [features] default = ["base", "call", "std", "protocol", "redox_syscall"] base = ["libc"] call = ["base"] std = ["base"] protocol = ["plain", "bitflags"] mkns = ["ioslice"] # The `redox_syscall` feature activates the optional `redox_syscall` # dep below. The `#[cfg(feature = "redox_syscall")]` attributes in # src/lib.rs gate the `From` impls between `libredox::error::Error` # and `syscall::Error`; without the feature, those impls are absent # and `?` propagation between the two types fails. Mirroring # upstream `libredox 0.1.18`'s feature structure. redox_syscall = ["dep:redox_syscall"] [dependencies] bitflags = { version = "2", optional = true } libc = { version = "0.2", optional = true } # The redox_syscall package has [lib] name = "syscall", so # in Rust code it is imported as `syscall`, NOT `redox_syscall`. # This dep is optional and gated by the `redox_syscall` feature # above. Matching upstream `libredox 0.1.18` structure. redox_syscall = { path = "../syscall", optional = true } ioslice = { version = "0.6", optional = true } plain = { version = "0.2", optional = true } [patch.crates-io] redox_syscall = { path = "../syscall" }