# 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"
name = "sbom-tools"
version = "0.1.1"
authors = ["Binarly.io"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Semantic SBOM diff and analysis tool"
readme = "README.md"
keywords = [
    "sbom",
    "cyclonedx",
    "spdx",
    "diff",
    "security",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/binarly-io/sbom-tools"

[features]
default = ["enrichment"]
enrichment = [
    "reqwest",
    "sha2",
]
ml-matching = ["candle-core"]

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

[[bin]]
name = "sbom-tools"
path = "src/main.rs"

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

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

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

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

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

[[bench]]
name = "diff_benchmark"
path = "benches/diff_benchmark.rs"
harness = false

[[bench]]
name = "large_sbom"
path = "benches/large_sbom.rs"
harness = false

[dependencies.anyhow]
version = "1.0"

[dependencies.candle-core]
version = "0.9"
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "env",
]

[dependencies.clap_complete]
version = "4.5"

[dependencies.crossterm]
version = "0.29"

[dependencies.dirs]
version = "6.0.0"

[dependencies.indexmap]
version = "2.7"
features = ["serde"]

[dependencies.pathfinding]
version = "4"

[dependencies.quick-xml]
version = "0.39"
features = ["serialize"]

[dependencies.ratatui]
version = "0.30"
features = ["crossterm"]

[dependencies.rayon]
version = "1.10"

[dependencies.regex]
version = "1.10"

[dependencies.reqwest]
version = "0.13"
features = [
    "blocking",
    "json",
    "rustls",
]
optional = true
default-features = false

[dependencies.schemars]
version = "1.2"

[dependencies.semver]
version = "1.0"
features = ["serde"]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml_ng]
version = "0.10"

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.spdx]
version = "0.13"

[dependencies.strsim]
version = "0.11"

[dependencies.thiserror]
version = "2.0"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dependencies.unicode-width]
version = "0.2"

[dependencies.xxhash-rust]
version = "0.8"
features = ["xxh3"]

[dev-dependencies.criterion]
version = "0.8"

[dev-dependencies.proptest]
version = "1.5"

[dev-dependencies.tempfile]
version = "3.14"

[profile.release]
lto = true
codegen-units = 1
