[workspace]
members = [
"crates/libsubatomic",
"crates/satm",
"crates/kiritan",
"crates/kuchiyose",
]
[profile.release-optimized]
inherits = "release"
opt-level = 3
lto = "fat"
codegen-units = 1
debug = true
[package]
name = "subatomic-server"
version = "1.1.5"
edition = "2024"
license = "AGPL-3.0-or-later"
description = "Modern package delivery system for RPMs"
repository = "https://github.com/FyraLabs/subatomic"
readme = "README.md"
keywords = ["fedora", "dnf", "rpm", "repodata", "createrepo"]
categories = [
"web-programming::http-server",
"command-line-utilities",
"database",
"caching",
]
[[bin]]
name = "subatomic"
path = "src/main.rs"
[dependencies]
axum = { version = "0.8.9", features = ["http2", "macros", "multipart"] }
crossbeam-channel = { workspace = true }
dotenvy = { workspace = true }
figment = { version = "0.10.19", features = ["toml", "env"] }
futures-util = "0.3.33"
hex.workspace = true
jsonwebtoken = { version = "11.0.0", features = ["aws_lc_rs"] }
kuchiyose = { workspace = true }
libsubatomic = { workspace = true }
num_cpus = "1.17.0"
object_store.workspace = true
rayon = { workspace = true }
rust-multipart-rfc7578_2 = "0.9.0"
serde = { workspace = true }
serde_json = { workspace = true }
signal-hook = "0.4.4"
srmw = { version = "0.2.0", package = "srmw-sendable" }
tempfile.workspace = true
thiserror = { workspace = true }
tokio = { workspace = true }
tokio-util = { version = "0.7.19", features = ["compat"] }
tracing = { workspace = true }
tracing-logfmt = { workspace = true }
tracing-subscriber = { workspace = true }
sentry = { version = "0.49.3", features = [
"tower",
"tower-axum-matched-path",
"tracing",
] }
[dependencies.sqlx]
version = "0.9.0"
features = ["postgres", "runtime-tokio", "tls-native-tls", "migrate"]
[workspace.dependencies]
assert_cmd = "2.2.2"
clap-verbosity-flag = { version = "3.0.4", features = [
"tracing",
], default-features = false }
crossbeam-channel = "0.5.16"
dotenvy = "0.15.7"
hex = "0.4.3"
kuchiyose = { path = "./crates/kuchiyose/", package = "libsubatomic-kuchiyose", version = "1.1.2" }
libsubatomic = { path = "./crates/libsubatomic/", version = "1.2.0" }
object_store = { version = "0.14.1", features = ["aws"] }
pgp = "0.20.0"
rayon = "1.12.0"
serde = { version = "1.0.229", features = ["derive"] }
serde_json = "1.0.151"
tempfile = "3.27.0"
thiserror = "2.0.19"
tracing = "0.1.44"
tracing-logfmt = "0.3.7"
zstd = "0.14.2"
[workspace.dependencies.tracing-subscriber]
version = "0.3.23"
features = ["env-filter", "tracing-log"]
[workspace.dependencies.tokio]
version = "1.53.1"
default-features = false
features = ["rt-multi-thread", "macros"]
[dev-dependencies]
http-body-util = "0.1.5"
rust-multipart-rfc7578_2 = "0.9.0"
tower = "0.5.3"
[lints]
workspace = true
[workspace.lints.clippy]
complexity = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
suspicious = { level = "warn", priority = -1 }
cargo = { level = "warn", priority = -1 }
disallowed_macros = "deny"
excessive_nesting = "warn"
assertions_on_result_states = "warn"
clone_on_ref_ptr = "warn"
create_dir = "warn"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
field_scoped_visibility_modifiers = "deny"
format_push_string = "warn"
get_unwrap = "warn"
if_then_some_else_none = "warn"
impl_trait_in_params = "warn"
infinite_loop = "deny"
let_underscore_must_use = "deny"
let_underscore_untyped = "warn"
needless_raw_strings = "warn"
rc_buffer = "warn"
rc_mutex = "deny"
redundant_type_annotations = "warn"
renamed_function_params = "warn"
rest_pat_in_fully_bound_structs = "warn"
semicolon_outside_block = "warn"
str_to_string = "warn"
string_lit_chars_any = "warn"
tests_outside_test_module = "warn"
todo = "warn"
try_err = "warn"
undocumented_unsafe_blocks = "deny"
unimplemented = "warn"
unneeded_field_pattern = "warn"
unwrap_in_result = "warn"
needless_for_each = "allow"
equatable_if_let = "allow"