[package]
name = "get-cwe"
version = "1.10.3"
edition = "2024"
authors.workspace = true
description.workspace = true
license-file.workspace = true
categories.workspace = true
readme = "README.md"
keywords.workspace = true
documentation = "https://docs.rs/get-cwe"
repository.workspace = true
homepage.workspace = true

[dependencies]
csv.workspace = true
rusqlite.workspace = true
fenir.workspace = true
termint.workspace = true
treelog.workspace = true

[dev-dependencies]
criterion = { version = "0.8.1", features = ["html_reports", "plotters"] }

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

[lib]

[[example]]
name = "show_cwe"
path = "examples/show_cwe.rs"

[lints]
workspace = true

[package.metadata.deb]
assets = [
    ["target/release/get-cwe", "usr/bin/", "555"],
    ["target/release/assets/get-cwe.1.gz", "usr/share/man/man1/", "444"]
]
changelog = "resources/changelog.md"
copyright = "2026, Tioben Neenot <tioben.neenot@laposte.net>"
depends = "$auto"
separate-debug-symbols = true
extended-description = "Explore the cwe data from local database"
license-file = ["resources/LICENSE.md"]
maintainer = "Tioben Neenot <tioben.neenot@laposte.net>"
priority = "optional"
revision = "1"
section = "utility"

[package.metadata.generate-rpm]
assets = [
    { source = "target/release/get-cwe", dest = "/usr/bin/", mode = "555" },
    { source = "resources/LICENSE.md", dest = "/usr/share/doc/get-cwe/LICENSE.md", mode = "644" },
    { source = "resources/changelog.md", dest = "/usr/share/doc/get-cwe/ChangeLog", mode = "644" },
    { source = "target/release/assets/get-cwe.1.gz", dest = "/usr/share/man/man1/", mode = "444" },
]
release = "1"
vendor = "Tioben Neenot <tioben.neenot@laposte.net>"
