1[package] 2name = "gpio-cdev" 3version = "0.6.0" 4authors = ["Paul Osborne <osbpau@gmail.com>", "Frank Pagliughi <fpagliughi@mindspring.com>"] 5description = "Linux GPIO Character Device Support (/dev/gpiochipN)" 6homepage = "https://github.com/rust-embedded/gpio-cdev" 7repository = "https://github.com/rust-embedded/gpio-cdev" 8readme = "README.md" 9categories = ["embedded", "hardware-support", "os", "os::unix-apis"] 10keywords = ["linux", "gpio", "gpiochip", "embedded"] 11license = "MIT OR Apache-2.0" 12edition = "2018" 13 14[features] 15default = [] 16async-tokio = ["tokio", "futures"] 17 18[[example]] 19name = "async_tokio" 20required-features = ["async-tokio"] 21 22[dependencies] 23bitflags = "2.4" 24libc = "0.2" 25nix = { version = "0.27", features = ["ioctl"] } 26tokio = { version = "1", features = ["io-std", "net"], optional = true } 27futures = { version = "0.3", optional = true } 28 29[dev-dependencies] 30quicli = "0.4" 31structopt = "0.3" 32anyhow = "1.0" 33tokio = { version = "1", features = ["io-std", "rt-multi-thread", "macros", "net"] } 34nix = { version = "0.27", features = ["ioctl", "poll"] } 35 36[package.metadata.docs.rs] 37# To build locally: 38# RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps --open 39all-features = true 40rustdoc-args = ["--cfg", "docsrs"] 41