ic-md 0.2.0

Driver for the iC-Haus iC-MD 48-Bit quadrature counter with SPI interface.
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"
name = "ic-md"
version = "0.2.0"
authors = ["Reto Trappitsch <reto@galactic-forensics.space>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Driver for the iC-Haus iC-MD 48-Bit quadrature counter with SPI interface."
documentation = "https://docs.rs/ic-md"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/trappitsch/ic-md"

[package.metadata.docs.rs]
features = ["docs"]

[features]
async = ["dep:embedded-hal-async"]
blocking = []
default = ["blocking"]
defmt = ["dep:defmt"]
docs = [
    "async",
    "blocking",
]

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

[[example]]
name = "counter_readout"
path = "examples/counter_readout.rs"
required-features = ["blocking"]

[[example]]
name = "counter_readout_async"
path = "examples/counter_readout_async.rs"
required-features = ["async"]

[[test]]
name = "configure_counter"
path = "tests/configure_counter.rs"
required-features = ["blocking"]

[[test]]
name = "negative_numbers"
path = "tests/negative_numbers.rs"
required-features = ["blocking"]

[[test]]
name = "simple"
path = "tests/simple.rs"
required-features = ["blocking"]

[[test]]
name = "status"
path = "tests/status.rs"
required-features = ["blocking"]

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

[dependencies.device-driver]
version = "2"
features = ["macros"]

[dependencies.embedded-hal]
version = "1"

[dependencies.embedded-hal-async]
version = "1"
optional = true

[dev-dependencies.embedded-hal-mock]
version = "0.11.1"

[dev-dependencies.pico-de-gallo-hal]
version = "0.7.0"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
    "rt-multi-thread",
]