-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathCargo.toml
More file actions
52 lines (44 loc) · 1.49 KB
/
Cargo.toml
File metadata and controls
52 lines (44 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[package]
authors = [
"The Embedded Linux Team <embedded-linux@teams.rust-embedded.org>",
"Jorge Aparicio <jorge@japaric.io>"
]
categories = ["embedded", "hardware-support"]
description = "Implementation of the `embedded-hal` traits for Linux devices"
keywords = ["Linux", "hal"]
license = "MIT OR Apache-2.0"
name = "linux-embedded-hal"
repository = "https://github.com/rust-embedded/linux-embedded-hal"
version = "0.4.0"
edition = "2018"
[features]
gpio_sysfs = ["sysfs_gpio"]
gpio_cdev = ["dep:gpiocdev"]
async-tokio = ["dep:embedded-hal-async", "tokio/time", "tokio/rt", "gpiocdev?/async_tokio"]
i2c = ["i2cdev"]
spi = ["spidev"]
default = [ "gpio_cdev", "gpio_sysfs", "i2c", "spi" ]
[dependencies]
embedded-hal = "1"
embedded-hal-nb = "1"
embedded-hal-async = { version = "1", optional = true }
gpiocdev = { version = "0.6.1", optional = true }
sysfs_gpio = { version = "0.6.1", optional = true }
i2cdev = { version = "0.6.0", optional = true }
nb = "1"
serialport = { version = "4.2.0", default-features = false }
spidev = { version = "0.6.0", optional = true }
nix = "0.27.1"
tokio = { version = "1", default-features = false, optional = true }
[dev-dependencies]
openpty = "0.2.0"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
[dependencies.cast]
# we don't need the `Error` implementation
default-features = false
version = "0.3"
[[example]]
name = "gpio-wait"
required-features = ["async-tokio"]
[patch.crates-io]
gpiocdev = { git = "https://github.com/warthog618/gpiocdev-rs" }