[package]
edition = "2024"
rust-version = "1.88"
name = "dbc-codegen"
version = "0.4.0"
authors = [
"Pascal Hertleif <pascal@technocreatives.com>",
"Marcel Buesing <buesing.marcel@googlemail.com>",
"Andres Vahter <andres@vahter.me>",
]
build = false
exclude = [
"fuzz/*",
"testing/*",
"tests/*",
"tests-snapshots/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CAN DBC code-gen for embedded Rust"
readme = "README.md"
keywords = [
"dbc",
"can",
"automotive",
"codegen",
"embedded",
]
categories = [
"embedded",
"automotive",
"network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/oxibus/dbc-codegen"
[package.metadata.docs.rs]
features = ["std"]
[features]
std = []
[lib]
name = "dbc_codegen"
path = "src/lib.rs"
[[example]]
name = "attribute_structs"
path = "examples/attribute_structs.rs"
[dependencies.anyhow]
version = "1.0.101"
[dependencies.can-dbc]
version = "10.0.0"
[dependencies.heck]
version = "0.5.0"
[dependencies.prettyplease]
version = "0.3.0"
[dependencies.quote]
version = "1.0.45"
[dependencies.syn]
version = "3.0.6"
[dependencies.typed-builder]
version = "0.23.0"
[dev-dependencies.bitvec]
version = "1.1.1"
[dev-dependencies.embedded-can]
version = "0.4.1"
[dev-dependencies.insta]
version = "1.48.0"
[dev-dependencies.test_each_file]
version = "0.3.6"
[dev-dependencies.trybuild]
version = "1.0.115"
[dev-dependencies.walkdir]
version = "2.5.0"
[lints.clippy]
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
disallowed_methods = "deny"
missing_errors_doc = "allow"
multiple_crate_versions = "allow"
panic_in_result_fn = "warn"
todo = "warn"
too_many_lines = "allow"
unwrap_used = "warn"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"
unused_qualifications = "warn"