tmp108 0.6.0

Platform-agnostic Rust driver for the TMP108 temperature sensor.
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.0"
name = "tmp108"
version = "0.6.0"
authors = ["Felipe Balbi <febalbi@microsoft.com>"]
build = false
include = [
    "/**/*.rs",
    "/Cargo.toml",
    "/README.md",
    "/LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Platform-agnostic Rust driver for the TMP108 temperature sensor."
homepage = "https://github.com/OpenDevicePartnership/tmp108"
documentation = "https://docs.rs/tmp108"
readme = "README.md"
keywords = [
    "temperature",
    "sensor",
    "i2c",
    "driver",
    "embedded-hal-driver",
]
categories = [
    "embedded",
    "hardware-support",
    "no-std",
]
license = "MIT"
repository = "https://github.com/OpenDevicePartnership/tmp108"

[features]
async = ["dep:embedded-hal-async"]
embedded-sensors-hal = ["dep:embedded-sensors-hal"]
embedded-sensors-hal-async = [
    "dep:embedded-sensors-hal-async",
    "async",
]

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

[[example]]
name = "alert_comparator"
path = "examples/alert_comparator.rs"

[[example]]
name = "alert_interrupt"
path = "examples/alert_interrupt.rs"

[[example]]
name = "continuous"
path = "examples/continuous.rs"

[[example]]
name = "oneshot"
path = "examples/oneshot.rs"

[[example]]
name = "sensor_trait"
path = "examples/sensor_trait.rs"

[[test]]
name = "reexports"
path = "tests/reexports.rs"

[dependencies.device-driver]
version = "2.1.0"
default-features = false

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

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

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

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

[dev-dependencies.anyhow]
version = "1.0.100"

[dev-dependencies.assert_approx_eq]
version = "1.1.0"

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

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

[dev-dependencies.pico-de-gallo-lib]
version = "0.5.0"

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

[lints.clippy]
correctness = "deny"
pedantic = "deny"
perf = "deny"
style = "deny"
suspicious = "deny"

[lints.rust]
missing_docs = "deny"
unsafe_code = "deny"