# 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.90.0"
name = "mdf4-rs"
version = "0.3.2"
authors = ["Sigma Tactical Group contributors <https://github.com/sigmatactical-org>"]
build = false
exclude = [
    ".github/",
    "examples/",
    "tests/",
    "benches/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "mdf4-rs is a Rust library for working with Measurement Data Format (ASAM MDF4) files."
homepage = "https://github.com/sigmatactical-org/mdf4-rs"
documentation = "https://docs.rs/mdf4-rs"
readme = "README.md"
keywords = [
    "mdf4",
    "can",
    "dbc",
    "automotive",
    "no_std",
]
categories = [
    "parsing",
    "embedded",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/sigmatactical-org/mdf4-rs"

[features]
alloc = []
can = ["dep:embedded-can"]
compression = [
    "dep:miniz_oxide",
    "alloc",
]
dbc = [
    "dep:dbc-rs",
    "alloc",
]
default = [
    "std",
    "can",
    "dbc",
]
serde = ["dep:serde"]
std = [
    "alloc",
    "serde",
    "serde_json",
    "dbc-rs?/std",
]

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

[dependencies.dbc-rs]
version = "0.5.2"
features = ["alloc"]
optional = true
default-features = false

[dependencies.embedded-can]
version = "0.4.1"
optional = true

[dependencies.miniz_oxide]
version = "0.9"
features = ["with-alloc"]
optional = true
default-features = false

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "alloc",
]
optional = true
default-features = false

[dependencies.serde_json]
version = "1.0"
optional = true

[dev-dependencies.dbc-rs]
version = "0.5.2"
features = ["std"]
default-features = false

[dev-dependencies.embedded-can]
version = "0.4.1"

[dev-dependencies.miniz_oxide]
version = "0.9"

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

[lints.clippy]
collapsible_if = "allow"
uninlined_format_args = "allow"

[lints.rust]
unsafe_code = "forbid"
