scd4x 0.5.0

Rust driver for the Sensirion SCD4x series. Carbon Dioxide / Temperature / Humidity sensors.
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.85"
name = "scd4x"
version = "0.5.0"
authors = ["Hauke Jung <hauke.jung@outlook.de>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "scd4x-util"
description = "Rust driver for the Sensirion SCD4x series. Carbon Dioxide / Temperature / Humidity sensors."
documentation = "https://docs.rs/scd4x"
readme = "README.md"
keywords = [
    "scd40",
    "scd41",
    "sensirion",
    "driver",
    "embedded-hal-driver",
]
categories = [
    "embedded",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hauju/scd4x-rs.git"

[features]
default = []
defmt = ["dep:defmt"]
embedded-hal-async = [
    "dep:embedded-hal-async",
    "sensirion-i2c/embedded-hal-async",
]
scd41 = []
std = []
thiserror = [
    "dep:thiserror",
    "std",
]
util = [
    "dep:log",
    "dep:clap",
    "dep:simplelog",
    "dep:humantime",
    "dep:linux-embedded-hal",
]

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

[[bin]]
name = "scd4x-util"
path = "bin/main.rs"
required-features = ["util"]

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]
optional = true

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

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

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

[dependencies.humantime]
version = "2.2.0"
optional = true

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

[dependencies.log]
version = "0.4.27"
optional = true
default-features = false

[dependencies.sensirion-i2c]
version = "0.4.0"

[dependencies.simplelog]
version = "0.12.0"
optional = true

[dependencies.thiserror]
version = "2.0.12"
optional = true

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

[target.'cfg(any(target_os = "linux", target_os = "android"))'.dev-dependencies.linux-embedded-hal]
version = "0.4.0"