probation 0.1.0

A filtering proxy for npm and PyPI that withholds packages until they are eligible.
# 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.96.0"
name = "probation"
version = "0.1.0"
build = false
exclude = [
    "/docs/plans",
    "/docs/adr",
    "/docs/backlog.md",
    "/docs/codebase-overview.md",
    "/.smtc",
    "/.claude",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A filtering proxy for npm and PyPI that withholds packages until they are eligible."
readme = "README.md"
keywords = [
    "npm",
    "pypi",
    "supply-chain",
    "proxy",
    "security",
]
categories = [
    "command-line-utilities",
    "web-programming::http-server",
]
license = "Apache-2.0"
repository = "https://github.com/postfix/probation"

[features]
test-support = []

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

[[bin]]
name = "probation"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.arc-swap]
version = "1.9.2"

[dependencies.async-trait]
version = "0.1.92"

[dependencies.axum]
version = "0.8.9"

[dependencies.bytes]
version = "1.12.1"

[dependencies.clap]
version = "4.6.7"
features = ["derive"]

[dependencies.fs4]
version = "1.1.0"

[dependencies.futures-util]
version = "0.3.34"

[dependencies.hex]
version = "0.4.3"

[dependencies.jiff]
version = "0.2.37"

[dependencies.lru]
version = "0.18.4"

[dependencies.nodejs-semver]
version = "5.0.0"

[dependencies.pep440_rs]
version = "0.7.3"

[dependencies.reqwest]
version = "0.13.5"
features = [
    "stream",
    "gzip",
    "brotli",
    "zstd",
]

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

[dependencies.serde_json]
version = "1.0.151"

[dependencies.sha1]
version = "0.11.0"

[dependencies.sha2]
version = "0.11.0"

[dependencies.ssri]
version = "9.2.0"

[dependencies.tempfile]
version = "3.27.0"

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

[dependencies.tokio-util]
version = "0.7.19"

[dependencies.toml]
version = "1.1.6"

[dependencies.tower]
version = "0.5.3"

[dependencies.tower-http]
version = "0.7.1"
features = [
    "trace",
    "limit",
]

[dependencies.tracing]
version = "0.1.44"

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

[dependencies.turso]
version = "0.7.2"

[dependencies.url]
version = "2.5.8"

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

[dev-dependencies.wiremock]
version = "0.6.5"