dtoolkit 0.2.0

A library for parsing and manipulating Flattened Device Tree (FDT) blobs.
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.88"
name = "dtoolkit"
version = "0.2.0"
authors = ["Mateusz Maćkowski <mmac@google.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A library for parsing and manipulating Flattened Device Tree (FDT) blobs."
homepage = "https://github.com/google/dtoolkit"
readme = "README.md"
keywords = [
    "device-tree",
    "fdt",
    "dtb",
    "dts",
    "parser",
]
categories = [
    "embedded",
    "encoding",
    "no-std::no-alloc",
    "parsing",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/google/dtoolkit"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
write = [
    "dep:indexmap",
    "dep:twox-hash",
]

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

[[test]]
name = "fdt"
path = "tests/fdt.rs"

[[test]]
name = "memreserve"
path = "tests/memreserve.rs"

[[test]]
name = "model"
path = "tests/model.rs"

[dependencies.indexmap]
version = "2"
optional = true
default-features = false

[dependencies.thiserror]
version = "2"
default-features = false

[dependencies.twox-hash]
version = "2"
features = ["xxhash64"]
optional = true
default-features = false

[dependencies.zerocopy]
version = "0.8.28"
features = ["derive"]

[lints.clippy]
undocumented_unsafe_blocks = "deny"
unwrap_used = "warn"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
deprecated-safe = "warn"
keyword-idents = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "deny"
unstable_features = "warn"
unused_import_braces = "warn"
unused_qualifications = "warn"