# 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"
name = "get-cwe"
version = "1.10.3"
authors = ["Tioben Neenot <tioben.neenot@laposte.net>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tools for CVE managing, exploring and collect some data about their weaknesses and classifications"
homepage = "https://gitlab.com/cyberactivity/tyr"
documentation = "https://docs.rs/get-cwe"
readme = "README.md"
keywords = [
    "cyber",
    "tyr",
    "cli",
    "nvd",
    "mitre",
]
categories = ["command-line-utilities"]
license-file = "LICENSE"
repository = "https://gitlab.com/cyberactivity/tyr"

[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]
release = "1"
vendor = "Tioben Neenot <tioben.neenot@laposte.net>"

[[package.metadata.generate-rpm.assets]]
source = "target/release/get-cwe"
dest = "/usr/bin/"
mode = "555"

[[package.metadata.generate-rpm.assets]]
source = "resources/LICENSE.md"
dest = "/usr/share/doc/get-cwe/LICENSE.md"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "resources/changelog.md"
dest = "/usr/share/doc/get-cwe/ChangeLog"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "target/release/assets/get-cwe.1.gz"
dest = "/usr/share/man/man1/"
mode = "444"

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

[[bin]]
name = "get-cwe"
path = "src/main.rs"

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

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

[dependencies.csv]
version = "1.4.0"

[dependencies.fenir]
version = "3.0.4"

[dependencies.rusqlite]
version = "0.38.0"
features = [
    "bundled",
    "chrono",
]

[dependencies.termint]
version = "0.6.1"
features = ["all"]

[dependencies.treelog]
version = "0.0.6"

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

[lints.rust]
unsafe_code = "forbid"
