inapt 0.3.2

A minimal Debian/Ubuntu APT repository proxy written in Rust. Exposes a valid APT repo structure over HTTP, sourcing .deb packages from GitHub Releases.
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"
name = "inapt"
version = "0.3.2"
authors = ["Jeremie Drouet <jeremie.drouet@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "inapt"
description = "A minimal Debian/Ubuntu APT repository proxy written in Rust. Exposes a valid APT repo structure over HTTP, sourcing .deb packages from GitHub Releases."
documentation = "https://docs.rs/inapt"
readme = "readme.md"
keywords = [
    "apt",
    "debian",
    "ubuntu",
    "proxy",
    "github",
]
categories = [
    "command-line-utilities",
    "network-programming",
    "web-programming::http-server",
]
license = "AGPL-3.0"
repository = "https://github.com/jdrouet/inapt"

[package.metadata.cargo-machete]
ignored = ["md-5"]

[package.metadata.deb]
name = "inapt"
maintainer-scripts = "package/scripts"
conf-files = ["/etc/default/inapt"]
assets = [
    [
    "target/release/inapt",
    "/usr/bin/",
    "755",
],
    [
    "package/systemd/inapt.default",
    "/etc/default/inapt",
    "600",
],
    [
    "package/config.toml",
    "/etc/inapt/config.toml.example",
    "600",
],
]

[package.metadata.deb.systemd-units]
unit-scripts = "package/systemd/"
enable = true
restart-after-upgrade = true
start = true

[features]
default = []
e2e-docker = []

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

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

[[bin]]
name = "inapt-genkey"
path = "src/bin/genkeys.rs"

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

[dependencies.anyhow]
version = "1.0"

[dependencies.ar]
version = "0.9"

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

[dependencies.axum]
version = "0.8"
features = [
    "http2",
    "tokio",
]
default-features = false

[dependencies.chrono]
version = "0.4"
features = [
    "now",
    "serde",
]
default-features = false

[dependencies.flate2]
version = "1"

[dependencies.futures]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.hostname]
version = "0.4"

[dependencies.http]
version = "1.4"

[dependencies.md-5]
version = "0.10"

[dependencies.opentelemetry]
version = "0.31"
default-features = false

[dependencies.opentelemetry-appender-tracing]
version = "0.31"
default-features = false

[dependencies.opentelemetry-otlp]
version = "0.31"
features = [
    "grpc-tonic",
    "tls-roots",
]

[dependencies.opentelemetry-semantic-conventions]
version = "0.31"
features = ["semconv_experimental"]
default-features = false

[dependencies.opentelemetry_sdk]
version = "0.31"
features = [
    "logs",
    "metrics",
    "rt-tokio",
    "trace",
]
default-features = false

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "rustls",
    "stream",
]
default-features = false

[dependencies.reqwest-middleware]
version = "0.5"
features = ["query"]

[dependencies.reqwest-retry]
version = "0.9"

[dependencies.reqwest-tracing]
version = "0.6"

[dependencies.sequoia-openpgp]
version = "2.1"
features = [
    "allow-experimental-crypto",
    "allow-variable-time-crypto",
    "crypto-rust",
]
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "sqlite",
]

[dependencies.tar]
version = "0.4"

[dependencies.temp-file]
version = "0.1"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.48"
features = [
    "fs",
    "macros",
    "net",
    "rt-multi-thread",
]
default-features = false

[dependencies.toml]
version = "0.9.8"

[dependencies.tower-http]
version = "0.6"
features = ["trace"]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-opentelemetry]
version = "0.32"
features = ["metrics"]
default-features = false

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

[dependencies.xz2]
version = "0.1"

[dependencies.zstd]
version = "0.13"

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

[dev-dependencies.bollard]
version = "0.20"

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

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

[dev-dependencies.similar-asserts]
version = "1.7"

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

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