1# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2#
3# When uploading crates to the registry Cargo will automatically
4# "normalize" Cargo.toml files for maximal compatibility
5# with all versions of Cargo and also rewrite `path` dependencies
6# to registry (e.g., crates.io) dependencies.
7#
8# If you are reading this file be aware that the original Cargo.toml
9# will likely look very different (and much more reasonable).
10# See Cargo.toml.orig for the original contents.
11
12[package]
13edition = "2018"
14name = "gpio-cdev"
15version = "0.6.0"
16authors = [
17    "Paul Osborne <[email protected]>",
18    "Frank Pagliughi <[email protected]>",
19]
20description = "Linux GPIO Character Device Support (/dev/gpiochipN)"
21homepage = "https://github.com/rust-embedded/gpio-cdev"
22readme = "README.md"
23keywords = [
24    "linux",
25    "gpio",
26    "gpiochip",
27    "embedded",
28]
29categories = [
30    "embedded",
31    "hardware-support",
32    "os",
33    "os::unix-apis",
34]
35license = "MIT OR Apache-2.0"
36repository = "https://github.com/rust-embedded/gpio-cdev"
37
38[package.metadata.docs.rs]
39all-features = true
40rustdoc-args = [
41    "--cfg",
42    "docsrs",
43]
44
45[[example]]
46name = "async_tokio"
47required-features = ["async-tokio"]
48
49[dependencies.bitflags]
50version = "2.4"
51
52[dependencies.futures]
53version = "0.3"
54optional = true
55
56[dependencies.libc]
57version = "0.2"
58
59[dependencies.nix]
60version = "0.27"
61features = ["ioctl"]
62
63[dependencies.tokio]
64version = "1"
65features = [
66    "io-std",
67    "net",
68]
69optional = true
70
71[dev-dependencies.anyhow]
72version = "1.0"
73
74[dev-dependencies.nix]
75version = "0.27"
76features = [
77    "ioctl",
78    "poll",
79]
80
81[dev-dependencies.quicli]
82version = "0.4"
83
84[dev-dependencies.structopt]
85version = "0.3"
86
87[dev-dependencies.tokio]
88version = "1"
89features = [
90    "io-std",
91    "rt-multi-thread",
92    "macros",
93    "net",
94]
95
96[features]
97async-tokio = [
98    "tokio",
99    "futures",
100]
101default = []
102