csaf-core 0.3.1

CSAF storage, validation, sidecar generation, import/export
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.93.0"
name = "csaf-core"
version = "0.3.1"
authors = ["Pierre Gronau <Pierre.Gronau@ndaal.eu>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CSAF storage, validation, sidecar generation, import/export"
homepage = "https://gitlab.com/vPierre/ndaal_public_csaf_crud"
documentation = "https://gitlab.com/vPierre/ndaal_public_csaf_crud"
readme = "README.md"
keywords = [
    "csaf",
    "security",
    "advisory",
    "vex",
    "oasis",
]
categories = [
    "command-line-utilities",
    "web-programming::http-server",
]
license = "Apache-2.0"
repository = "https://gitlab.com/vPierre/ndaal_public_csaf_crud"
resolver = "2"

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

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

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

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

[dependencies.csaf-models]
version = "0.3.1"

[dependencies.redb]
version = "2"

[dependencies.regex]
version = "1"

[dependencies.rusqlite]
version = "0.39"
features = [
    "bundled",
    "backup",
]

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.sha3]
version = "0.10"

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
]

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

[dev-dependencies.argon2]
version = "0.5"
features = ["std"]

[dev-dependencies.askama]
version = "0.15"

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

[dev-dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]

[dev-dependencies.h3]
version = "0.0.8"

[dev-dependencies.h3-quinn]
version = "0.0.10"

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

[dev-dependencies.http-body-util]
version = "0.1"

[dev-dependencies.hyper]
version = "1"
features = ["full"]

[dev-dependencies.hyper-util]
version = "0.1"
features = [
    "tokio",
    "server-auto",
    "http1",
    "http2",
]

[dev-dependencies.matchit]
version = "0.9"

[dev-dependencies.mime_guess]
version = "2"

[dev-dependencies.quinn]
version = "0.11"

[dev-dependencies.rcgen]
version = "0.14"

[dev-dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "logging",
    "tls12",
]
default-features = false

[dev-dependencies.sysinfo]
version = "0.38"

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

[dev-dependencies.time]
version = "0.3"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[dev-dependencies.tokio-rustls]
version = "0.26"

[dev-dependencies.tracing]
version = "0.1"

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

[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
derive_partial_eq_without_eq = "allow"
doc_markdown = "allow"
expect_used = "warn"
indexing_slicing = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
panic = "warn"
unwrap_used = "warn"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"