[dependencies.defmt]
optional = true
version = "0.3"
[dependencies.device-driver-macros]
default-features = false
optional = true
version = "=1.0.4"
[dependencies.embedded-io]
version = "0.6.1"
[dependencies.embedded-io-async]
version = "0.6.1"
[dev-dependencies.bitvec]
default-features = false
version = "1.0.1"
[dev-dependencies.rand]
version = "0.9"
[features]
_macros = ["dep:device-driver-macros"]
default = ["dsl", "json", "yaml", "toml"]
defmt-03 = ["dep:defmt", "embedded-io/defmt-03"]
dsl = ["_macros", "device-driver-macros/dsl"]
json = ["_macros", "device-driver-macros/json"]
toml = ["_macros", "device-driver-macros/toml"]
yaml = ["_macros", "device-driver-macros/yaml"]
[lib]
name = "device_driver"
path = "src/lib.rs"
[package]
authors = ["Dion Dokter <diondokter@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["embedded", "hardware-support", "no-std::no-alloc", "no-std"]
description = "A toolkit to write better device drivers, faster"
edition = "2024"
homepage = "https://github.com/diondokter/device-driver"
keywords = ["no_std", "device", "driver", "toolkit"]
license = "MIT OR Apache-2.0"
name = "device-driver"
readme = "README.md"
repository = "https://github.com/diondokter/device-driver"
resolver = "2"
version = "1.0.4"
[[test]]
name = "basic-block"
path = "tests/basic-block.rs"
[[test]]
name = "basic-buffer"
path = "tests/basic-buffer.rs"
[[test]]
name = "basic-command"
path = "tests/basic-command.rs"
[[test]]
name = "basic-register"
path = "tests/basic-register.rs"
[[test]]
name = "basic-register-async"
path = "tests/basic-register-async.rs"
[[test]]
name = "basic-register-manifest"
path = "tests/basic-register-manifest.rs"
[[test]]
name = "bit-ops"
path = "tests/bit-ops.rs"
[[test]]
name = "cfg-register"
path = "tests/cfg-register.rs"
[[test]]
name = "docs-everywhere"
path = "tests/docs-everywhere.rs"
[[test]]
name = "duplicate-cfg-register"
path = "tests/duplicate-cfg-register.rs"
[[test]]
name = "endianness-respected"
path = "tests/endianness-respected.rs"
[[test]]
name = "enum-same-name"
path = "tests/enum-same-name.rs"
[[test]]
name = "refs"
path = "tests/refs.rs"
[[test]]
name = "type-conversions"
path = "tests/type-conversions.rs"