rustsec 0.32.0

Client library for the RustSec security advisory database
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.85"
name = "rustsec"
version = "0.32.0"
authors = ["Tony Arcieri <bascule@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Client library for the RustSec security advisory database"
homepage = "https://rustsec.org"
readme = "README.md"
keywords = [
    "audit",
    "rustsec",
    "security",
    "advisory",
    "vulnerability",
]
categories = [
    "api-bindings",
    "development-tools",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/rustsec/rustsec"
resolver = "2"

[package.metadata.docs.rs]
features = [
    "dependency-tree",
    "osv-export",
    "binary-scanning",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[package.metadata.cargo_check_external_types]
allowed_external_types = [
    "binfarce::Format",
    "cargo_lock",
    "cargo_lock::*",
    "cvss::*",
    "platforms",
    "platforms::*",
    "semver",
    "semver::*",
    "serde::*",
    "time::offset_date_time::OffsetDateTime",
    "url::Url",
]

[features]
binary-scanning = [
    "dep:auditable-info",
    "dep:auditable-serde",
    "dep:binfarce",
    "dep:quitters",
    "dep:once_cell",
]
default = ["gix-reqwest"]
dependency-tree = ["cargo-lock/dependency-tree"]
git = [
    "dep:tame-index",
    "dep:home",
    "dep:time",
    "dep:gix",
]
gix-curl = [
    "gix/blocking-http-transport-curl",
    "git",
]
gix-reqwest = [
    "gix/blocking-http-transport-reqwest-rust-tls",
    "git",
]
osv-export = ["git"]

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

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

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

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

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

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

[dependencies.auditable-info]
version = "0.10"
features = ["wasm"]
optional = true

[dependencies.auditable-serde]
version = "0.9"
optional = true

[dependencies.binfarce]
version = "0.2"
optional = true

[dependencies.cargo-lock]
version = "11"

[dependencies.cvss]
version = "2.2"
features = ["serde"]

[dependencies.fs-err]
version = "3"

[dependencies.gix]
version = "0.78"
features = [
    "worktree-mutation",
    "revision",
    "max-performance-safe",
]
optional = true
default-features = false

[dependencies.home]
version = "0.5"
optional = true

[dependencies.once_cell]
version = "1.15.0"
optional = true

[dependencies.platforms]
version = "3"
features = ["serde"]

[dependencies.quitters]
version = "0.1.0"
optional = true

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

[dependencies.serde]
version = "1"
features = ["serde_derive"]

[dependencies.tame-index]
version = "0.26"
features = ["sparse"]
optional = true
default-features = false

[dependencies.thiserror]
version = "2"

[dependencies.time]
version = "0.3"
features = [
    "formatting",
    "serde",
    "parsing",
]
optional = true
default-features = false

[dependencies.toml]
version = "0.9"

[dependencies.url]
version = "2"
features = ["serde"]

[dev-dependencies.once_cell]
version = "1.15.0"

[dev-dependencies.serde_json]
version = "1"

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