# 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 = "2021"
rust-version = "1.86.0"
name = "abootimg-oxide"
version = "0.3.0"
authors = ["Axel Karjalainen <axel@axka.fi>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Android boot image (boot.img) parser"
readme = "README.md"
categories = [
    "parser-implementations",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/axelkar/abootimg-oxide"

[package.metadata.docs.rs]
all-features = true
cargo-args = [
    "-Zunstable-options",
    "-Zrustdoc-scrape-examples",
]
rustc-args = [
    "--cfg",
    "docsrs",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["std"]
hash = ["dep:digest"]
std = ["binrw/std"]

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

[[example]]
name = "compute-hash-digest"
path = "examples/compute-hash-digest.rs"
doc-scrape-examples = true
required-features = [
    "std",
    "hash",
]

[[example]]
name = "extract-kernel"
path = "examples/extract-kernel.rs"
required-features = ["std"]

[dependencies.binrw]
version = "0.15.0"
features = ["verbose-backtrace"]
default-features = false

[dependencies.digest]
version = "0.10.7"
optional = true

[dependencies.document-features]
version = "0.2.12"

[dev-dependencies.expect-test-bytes]
version = "0.1.0"

[dev-dependencies.hex_fmt]
version = "0.3.0"

[dev-dependencies.sha1]
version = "0.10.6"

[dev-dependencies.sha2]
version = "0.10.9"

[lints.clippy]
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
implicit_clone = "warn"
pedantic = "warn"
should_panic_without_expect = "warn"
str_to_string = "warn"

[lints.rust]
missing_docs = "warn"
