-
Notifications
You must be signed in to change notification settings - Fork 5
/
Cargo.toml
51 lines (46 loc) · 1.58 KB
/
Cargo.toml
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
[package]
name = "sgp30"
version = "1.0.0"
authors = ["Danilo Bargen <[email protected]>"]
documentation = "https://docs.rs/sgp30"
repository = "https://github.com/dbrgn/sgp30-rs"
license = "MIT OR Apache-2.0"
description = "Platform agnostic Rust driver for the Sensirion SGP30 gas sensor."
readme = "README.md"
keywords = ["sgp30", "sensirion", "driver", "tvoc", "embedded-hal-driver"]
categories = ["embedded", "hardware-support", "no-std"]
include = [
"**/*.rs",
"Cargo.toml",
"README.md",
"CHANGELOG.md",
"LICENSE-MIT",
"LICENSE-APACHE",
]
edition = "2021"
[features]
default = []
embedded-hal-async = ["dep:embedded-hal-async", "sensirion-i2c/embedded-hal-async"]
[dependencies]
byteorder = { version = "1", default-features = false }
embedded-hal = "1"
embedded-hal-async = { version = "1", optional = true }
num-traits = { version = "0.2", default-features = false }
sensirion-i2c = "0.4"
[dev-dependencies]
linux-embedded-hal = "0.4"
embedded-hal-mock = { version = "0.11.1", features = ["eh1", "embedded-hal-async"] }
# A trivial futures executor is needed for testing asynchronous code.
# We could alternatively just use one that polls the future in a loop, but
# making a no-op `RawWaker` is a bit annoying and requires unsafe code that
# could otherwise be avoided.
#
# Alternatively, we could use `tokio-test` for this, but since we don't need
# "the rest of tokio", `futures-executor` is probably a lighter-weight
# dependency.
futures-executor = { version = "0.3.30" }
[profile.release]
lto = true
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]