-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
114 lines (94 loc) · 2.7 KB
/
Copy pathCargo.toml
File metadata and controls
114 lines (94 loc) · 2.7 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[package]
name = "bmi323-driver"
version = "0.2.0"
edition = "2024"
rust-version = "1.85"
license = "MIT"
description = "Generic no_std driver for the Bosch Sensortec BMI323 IMU"
authors = ["Janne Snabb"]
readme = "README.md"
documentation = "https://docs.rs/bmi323-driver"
keywords = ["bmi323", "imu", "embedded-hal", "embassy", "sensor"]
categories = ["embedded", "hardware-support", "no-std"]
repository = "https://github.com/snabb/bmi323-driver"
include = [
"/Cargo.toml",
"/LICENSE",
"/README.md",
"/examples/*.rs",
"/src/*.rs",
"/tests/*.rs",
]
[package.metadata.docs.rs]
features = ["defmt"]
rustdoc-args = ["--cfg", "docsrs"]
[features]
# Async (embedded-hal-async) is the default when no feature is specified.
# "async" may be listed explicitly for clarity; it acts as a no-op but is used
# as a required-feature guard for async examples and tests so that they are not
# compiled in blocking mode.
# "blocking" opts into the synchronous embedded-hal API.
# Enabling both simultaneously causes a compile error.
default = []
async = []
blocking = ["maybe-async/is_sync"]
defmt = ["dep:defmt"]
[dependencies]
defmt = { version = "1.0.1", optional = true }
embedded-hal = "1.0.0"
embedded-hal-async = "1.0.0"
maybe-async = "0.2.10"
[target.'cfg(not(target_os = "none"))'.dev-dependencies]
embedded-hal-mock = { version = "0.11.1", default-features = false, features = ["eh1", "embedded-hal-async"] }
[[test]]
name = "i2c_transactions_blocking"
path = "tests/i2c_transactions_blocking.rs"
required-features = ["blocking"]
[[test]]
name = "i2c_transactions_async"
path = "tests/i2c_transactions_async.rs"
required-features = ["async"]
[[test]]
name = "spi_transactions_blocking"
path = "tests/spi_transactions_blocking.rs"
required-features = ["blocking"]
[[test]]
name = "spi_transactions_async"
path = "tests/spi_transactions_async.rs"
required-features = ["async"]
[[example]]
name = "blocking_i2c_basic"
required-features = ["blocking"]
[[example]]
name = "async_i2c_basic"
required-features = ["async"]
[[example]]
name = "async_i2c_alt_config"
required-features = ["async"]
[[example]]
name = "async_i2c_flat"
required-features = ["async"]
[[example]]
name = "async_i2c_any_motion"
required-features = ["async"]
[[example]]
name = "async_i2c_no_motion"
required-features = ["async"]
[[example]]
name = "async_i2c_orientation"
required-features = ["async"]
[[example]]
name = "async_i2c_self_test"
required-features = ["async"]
[[example]]
name = "async_i2c_significant_motion"
required-features = ["async"]
[[example]]
name = "async_i2c_step_counter"
required-features = ["async"]
[[example]]
name = "async_i2c_tap"
required-features = ["async"]
[[example]]
name = "async_i2c_tilt"
required-features = ["async"]