Cargo.toml (915B)
1 [package] 2 authors = ["Zack Newman <zack@philomathiclife.com>"] 3 categories = ["development-tools::ffi", "external-ffi-bindings", "os"] 4 description = "FFI for pledge(2) and unveil(2) on OpenBSD." 5 documentation = "https://docs.rs/priv_sep/latest/priv_sep/" 6 edition = "2024" 7 keywords = ["ffi", "openbsd", "privsep", "security"] 8 license = "MIT OR Apache-2.0" 9 name = "priv_sep" 10 readme = "README.md" 11 repository = "https://git.philomathiclife.com/repos/priv_sep/" 12 rust-version = "1.85.0" 13 version = "2.2.0" 14 15 [package.metadata.docs.rs] 16 all-features = true 17 rustdoc-args = ["--cfg", "docsrs"] 18 19 [target.'cfg(target_os = "openbsd")'.dependencies] 20 libc = { version = "0.2.170", default-features = false, features = ["std"], optional = true } 21 22 23 ### FEATURES ################################################################# 24 25 [features] 26 default = ["openbsd"] 27 28 # Provide pledge and unveil support for OpenBSD. 29 openbsd = ["dep:libc"]