# 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 = "blackbox-logger"
version = "0.1.4"
authors = ["Martin Budden"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Betaflight compatible blackbox flight data recorder."
readme = "README.md"
keywords = [
    "blackbox",
    "no-std",
    "betaflight",
]
categories = [
    "embedded",
    "mathematics",
    "no-std",
    "science::robotics",
    "aerospace::drones",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/martinbudden/crate-blackbox-logger"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--html-in-header",
    "katex-header.html",
]

[features]
barometer = []
default = [
    "libm",
    "dshot_telemetry",
    "gps",
]
dshot_telemetry = []
eight_motors = []
gps = []
libm = ["vqm/libm"]
magnetometer = []
no_align = ["vqm/no_align"]
rangefinder = []
serde = [
    "dep:serde",
    "postcard?/use-defmt",
    "vqm/serde",
]
servos = []
simd = ["vqm/simd"]
std = [
    "embassy-executor/platform-std",
    "vqm/std",
]

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

[dependencies.embassy-executor]
version = "0.10.0"
features = [
    "platform-std",
    "executor-thread",
]

[dependencies.embassy-futures]
version = "0.1.2"

[dependencies.postcard]
version = "1.1.3"
features = ["embedded-io"]
optional = true
default-features = false

[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true
default-features = false

[dependencies.simple-bitset]
version = "0.1.0"

[dependencies.vqm]
version = "0.1.8"

[dev-dependencies.approx]
version = "0.5.1"
default-features = false

[dev-dependencies.pollster]
version = "0.4.0"

[build-dependencies.rustc_version]
version = "0.4.1"

[profile.debugging]
debug = 2
inherits = "dev"

[profile.dev]
opt-level = 0
lto = false
codegen-units = 256
debug = "line-tables-only"
debug-assertions = true
rpath = false
panic = "unwind"
overflow-checks = true
incremental = true
strip = "none"

[profile.dev.package."*"]
debug = 0

[profile.release]
opt-level = 3
lto = false
codegen-units = 16
debug = 0
debug-assertions = false
rpath = false
panic = "abort"
overflow-checks = false
incremental = false
strip = "none"

[profile.release-lto]
lto = true
inherits = "release"
