# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.63" name = "gpiocdev-embedded-hal" version = "0.1.1" authors = ["Kent Gibson "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A library providing embedded-hal wrappers around gpiocdev Requests" readme = "README.md" keywords = [ "linux", "gpio", "gpiochip", "embedded-hal", "chardev", ] categories = [ "hardware-support", "api-bindings", "os::linux-apis", "embedded", ] license = "Apache-2.0 OR MIT" repository = "https://github.com/warthog618/gpiocdev-rs" [package.metadata.docs.rs] all-features = true targets = [] [lib] name = "gpiocdev_embedded_hal" path = "src/lib.rs" [[example]] name = "tokio_wait_for_edges" path = "examples/tokio_wait_for_edges.rs" required-features = ["async_tokio"] [[example]] name = "async_io_wait_for_edges" path = "examples/async_io_wait_for_edges.rs" required-features = ["async_io"] [[example]] name = "async_std_wait_for_edges" path = "examples/async_std_wait_for_edges.rs" required-features = ["async_io"] [[example]] name = "pulse_pin_value" path = "examples/pulse_pin_value.rs" [[example]] name = "toggle_pin_value" path = "examples/toggle_pin_value.rs" [[example]] name = "get_pin_value" path = "examples/get_pin_value.rs" [[test]] name = "input_pin" path = "tests/input_pin.rs" [[test]] name = "output_pin" path = "tests/output_pin.rs" [dependencies.embedded-hal] version = "1.0" [dependencies.embedded-hal-async] version = "1.0" optional = true [dependencies.gpiocdev] version = "0.7" default-features = false [dependencies.thiserror] version = "1.0" [dev-dependencies.anyhow] version = "1.0" [dev-dependencies.async-io] version = "2" [dev-dependencies.async-std] version = "1" [dev-dependencies.gpiosim] version = "0.4" [dev-dependencies.tokio] version = "1" features = [ "macros", "rt", "time", ] [features] async_io = [ "gpiocdev/async_io", "embedded-hal-async", ] async_tokio = [ "gpiocdev/async_tokio", "embedded-hal-async", ] default = ["uapi_v2"] uapi_v1 = ["gpiocdev/uapi_v1"] uapi_v2 = ["gpiocdev/uapi_v2"]