# 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.93"
name = "sarif-viewer"
version = "0.1.4"
authors = ["Pierre Gronau <Pierre.Gronau@ndaal.eu>"]
build = false
include = [
    "Cargo.toml",
    "README.md",
    "src/**",
    "schemas/*.json",
    "data/samples/minimal.sarif",
    "data/samples/nvulnlookup-clean.sarif",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Offline viewer, validator and multi-format exporter for SARIF 2.1.0 and SARIF 2.2 (draft) — single binary, schema-validated import/export"
homepage = "https://gitlab.com/vPierre/ndaal_public_sarif_viewer"
readme = "README.md"
keywords = [
    "sarif",
    "static-analysis",
    "viewer",
    "security",
    "validation",
]
categories = [
    "visualization",
    "command-line-utilities",
    "web-programming::http-server",
]
license = "Apache-2.0 AND MIT AND OFL-1.1"
repository = "https://gitlab.com/vPierre/ndaal_public_sarif_viewer"

[package.metadata.binstall]
pkg-url = "{ repo }/-/releases/v{ version }/downloads/{ name }-{ version }-{ target }{ binary-ext }"
pkg-fmt = "bin"

[package.metadata.binstall.overrides.x86_64-unknown-linux-gnu]
pkg-url = "{ repo }/-/releases/v{ version }/downloads/{ name }-{ version }-x86_64-unknown-linux-musl"

[package.metadata.binstall.overrides.aarch64-unknown-linux-gnu]
pkg-url = "{ repo }/-/releases/v{ version }/downloads/{ name }-{ version }-aarch64-unknown-linux-musl"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-url = "{ repo }/-/releases/v{ version }/downloads/{ name }-{ version }-x86_64-pc-windows-gnu.exe"

[package.metadata.binstall.overrides.aarch64-pc-windows-msvc]
pkg-url = "{ repo }/-/releases/v{ version }/downloads/{ name }-{ version }-aarch64-pc-windows-gnullvm.exe"

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

[[bin]]
name = "sarif-viewer"
path = "src/main.rs"

[dependencies.anyhow]
version = "1"

[dependencies.blake3]
version = "1.8.5"

[dependencies.bytes]
version = "1"

[dependencies.cap-std]
version = "4"

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

[dependencies.h3]
version = "=0.0.8"

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

[dependencies.http]
version = "1"

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

[dependencies.hyper]
version = "1"
features = [
    "http1",
    "server",
]

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

[dependencies.jsonschema]
version = "0.46"

[dependencies.lo_core]
version = "0.4.8"

[dependencies.lo_writer]
version = "0.4.8"

[dependencies.matchit]
version = "0.9"

[dependencies.quinn]
version = "0.11"
features = [
    "runtime-tokio",
    "log",
    "rustls-aws-lc-rs",
]
default-features = false

[dependencies.rcgen]
version = "0.14"

[dependencies.rustls]
version = "0.23"
features = [
    "aws_lc_rs",
    "prefer-post-quantum",
    "logging",
    "std",
]
default-features = false

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

[dependencies.serde_json]
version = "1"
features = ["preserve_order"]

[dependencies.sha2]
version = "0.10"

[dependencies.sha3]
version = "0.10"

[dependencies.time]
version = "0.3"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "net",
    "signal",
    "sync",
    "time",
]

[dependencies.tokio-rustls]
version = "0.26"
features = [
    "logging",
    "aws_lc_rs",
]
default-features = false

[dependencies.tracing]
version = "0.1"

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

[dependencies.ttf-parser]
version = "0.25"
features = ["std"]
default-features = false

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

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

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

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

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

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "rt-multi-thread",
    "macros",
]

[lints.clippy]
arithmetic_side_effects = "deny"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
exit = "deny"
expect_used = "deny"
indexing_slicing = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
panic = "deny"
panic_in_result_fn = "deny"
todo = "deny"
unimplemented = "deny"
unreachable = "deny"
unwrap_used = "deny"

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

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

[lints.rust]
unsafe_code = "forbid"
unused_must_use = "deny"

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
