# 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 = "lis2dw12-pid-rs"
version = "0.2.0"
authors = ["Jérôme Hendrick <jerome.hendrick@gmail.com>"]
build = false
exclude = [
    ".devcontainer/",
    ".github/",
    ".gitmodules",
    "build.rs",
    "lis2dw12-pid/",
    "scripts/",
    "tests/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust driver for the LIS2DW12 accelerometer."
homepage = "https://github.com/JeromeHen/lis2dw12-pid-rs#readme"
documentation = "https://docs.rs/lis2dw12-pid-rs"
readme = "README.md"
keywords = [
    "embedded",
    "accelerometer",
    "lis2dw12",
    "no-std",
    "driver",
]
categories = ["embedded"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/JeromeHen/lis2dw12-pid-rs"

[features]
async = [
    "embedded-hal-async",
    "async-trait",
]
blocking = ["embedded-hal"]
default = ["async"]
shared-bus = ["embassy-sync"]

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

[dependencies.async-trait]
version = "0.1.89"
optional = true

[dependencies.bitflags]
version = "2.10.0"

[dependencies.embassy-sync]
version = "0.7.2"
optional = true

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

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

[dependencies.num_enum]
version = "0.7.5"
default-features = false

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

[build-dependencies.bindgen]
version = "0.72.1"

[build-dependencies.cc]
version = "1.2.49"
