[package]
edition = "2024"
rust-version = "1.85"
name = "bmi323-driver"
version = "0.1.0"
authors = ["Janne Snabb"]
build = false
include = [
"/Cargo.toml",
"/LICENSE",
"/README.md",
"/examples/*.rs",
"/src/*.rs",
"/tests/*.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generic no_std driver for the Bosch BMI323 IMU"
documentation = "https://docs.rs/bmi323-driver"
readme = "README.md"
keywords = [
"bmi323",
"imu",
"embedded-hal",
"embassy",
"sensor",
]
categories = [
"embedded",
"hardware-support",
"no-std",
]
license = "MIT"
repository = "https://github.com/snabb/bmi323-driver"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = []
defmt = ["dep:defmt"]
[lib]
name = "bmi323_driver"
path = "src/lib.rs"
[[example]]
name = "async_i2c_alt_config"
path = "examples/async_i2c_alt_config.rs"
[[example]]
name = "async_i2c_flat"
path = "examples/async_i2c_flat.rs"
[[example]]
name = "async_i2c_interrupt"
path = "examples/async_i2c_interrupt.rs"
[[example]]
name = "async_i2c_no_motion"
path = "examples/async_i2c_no_motion.rs"
[[example]]
name = "async_i2c_orientation"
path = "examples/async_i2c_orientation.rs"
[[example]]
name = "async_i2c_self_test"
path = "examples/async_i2c_self_test.rs"
[[example]]
name = "async_i2c_significant_motion"
path = "examples/async_i2c_significant_motion.rs"
[[example]]
name = "async_i2c_step_counter"
path = "examples/async_i2c_step_counter.rs"
[[example]]
name = "async_i2c_tap"
path = "examples/async_i2c_tap.rs"
[[example]]
name = "async_i2c_tilt"
path = "examples/async_i2c_tilt.rs"
[[example]]
name = "blocking_i2c_basic"
path = "examples/blocking_i2c_basic.rs"
[[test]]
name = "async_i2c_transactions"
path = "tests/async_i2c_transactions.rs"
[[test]]
name = "async_spi_transactions"
path = "tests/async_spi_transactions.rs"
[[test]]
name = "blocking_i2c_transactions"
path = "tests/blocking_i2c_transactions.rs"
[[test]]
name = "blocking_spi_transactions"
path = "tests/blocking_spi_transactions.rs"
[dependencies.defmt]
version = "1.0.1"
optional = true
[dependencies.embedded-hal]
version = "1.0.0"
[dependencies.embedded-hal-async]
version = "1.0.0"
[target.'cfg(not(target_os = "none"))'.dev-dependencies.embedded-hal-mock]
version = "0.11.1"
features = [
"eh1",
"embedded-hal-async",
]
default-features = false