device-driver 2.0.0

A toolkit to write better device drivers, faster
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.94"
name = "device-driver"
version = "2.0.0"
authors = ["Dion Dokter <dev@diondokter.nl>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A toolkit to write better device drivers, faster"
homepage = "https://device-driver.com"
readme = "README.md"
keywords = [
    "no_std",
    "device",
    "driver",
    "toolkit",
]
categories = [
    "embedded",
    "hardware-support",
    "no-std::no-alloc",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/diondokter/device-driver"
resolver = "2"

[features]
defmt = [
    "dep:defmt",
    "embedded-io?/defmt",
    "embedded-io-async?/defmt",
]
embedded-io-07 = [
    "dep:embedded-io",
    "dep:embedded-io-async",
]
macros = ["dep:device-driver-macros"]

[lib]
name = "device_driver"
path = "src/lib.rs"

[[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 = "bulk-register"
path = "tests/bulk-register.rs"

[[test]]
name = "docs-everywhere"
path = "tests/docs-everywhere.rs"

[[test]]
name = "endianness-respected"
path = "tests/endianness-respected.rs"

[[test]]
name = "large-register"
path = "tests/large-register.rs"

[[test]]
name = "register-access"
path = "tests/register-access.rs"

[[test]]
name = "type-conversions"
path = "tests/type-conversions.rs"

[dependencies.defmt]
version = "1.1.1"
optional = true

[dependencies.device-driver-macros]
version = "=2.0.0"
optional = true

[dependencies.embedded-io]
version = "0.7.1"
optional = true

[dependencies.embedded-io-async]
version = "0.7.0"
optional = true

[dev-dependencies.bitvec]
version = "1.1.1"
default-features = false

[dev-dependencies.rand]
version = "0.10.2"