[package]
edition = "2021"
name = "bq27441"
version = "0.1.0"
authors = ["Gerzain Mata <leftger@gmail.com>"]
build = "build.rs"
exclude = [
"examples/",
"tools/",
"generated_example.rs",
"target/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Blocking and async driver for the BQ27441 battery fuel gauge with I2C support"
readme = "README.md"
keywords = [
"battery",
"fuel-gauge",
"i2c",
"embedded-hal-driver",
]
categories = [
"embedded",
"hardware-support",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/leftger/bq27441"
[features]
async = ["dep:embedded-hal-async"]
default = []
defmt-03 = [
"dep:defmt",
"device-driver/defmt-03",
]
embassy = [
"async",
"defmt-03",
]
[lib]
name = "bq27441"
path = "src/lib.rs"
[dependencies.defmt]
version = "0.3"
optional = true
[dependencies.device-driver]
version = "1.0"
features = ["yaml"]
default-features = false
[dependencies.embedded-hal]
version = "1.0"
[dependencies.embedded-hal-async]
version = "1.0"
optional = true
[build-dependencies.device-driver-generation]
version = "1.0"
[build-dependencies.prettyplease]
version = "0.2"
[build-dependencies.proc-macro2]
version = "1.0"
[build-dependencies.syn]
version = "2.0"
features = ["full"]
[lints.clippy]
correctness = "forbid"
pedantic = "deny"
perf = "forbid"
style = "forbid"
suspicious = "forbid"
[lints.rust]
missing_docs = "deny"
unsafe_code = "deny"