detritus-server 0.1.0

Detritus telemetry and crash ingestion server
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.88"
name = "detritus-server"
version = "0.1.0"
authors = ["Can H. Tartanoglu <gpg@rotas.mozmail.com>"]
build = false
include = [
    "Cargo.toml",
    "LICENSE",
    "README.md",
    "examples/**",
    "src/**",
    "tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Detritus telemetry and crash ingestion server"
homepage = "https://codeberg.org/caniko/rs-detritus"
documentation = "https://docs.rs/detritus-server"
readme = "README.md"
keywords = [
    "observability",
    "otlp",
    "crash-reporting",
    "server",
    "telemetry",
]
categories = [
    "command-line-utilities",
    "web-programming",
    "network-programming",
]
license = "Apache-2.0"
repository = "https://codeberg.org/caniko/rs-detritus"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

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

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

[[example]]
name = "embed_server"
path = "examples/embed_server.rs"

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

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

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

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

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

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

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

[dependencies.argon2]
version = "0.5"

[dependencies.axum]
version = "0.8"
features = [
    "multipart",
    "http2",
]

[dependencies.bytes]
version = "1"

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

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

[dependencies.detritus-protocol]
version = "0.1.0"
features = ["multipart"]

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

[dependencies.hex]
version = "0.4"

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

[dependencies.jsonschema]
version = "0.46"
default-features = false

[dependencies.multer]
version = "3"

[dependencies.prometheus]
version = "0.14"

[dependencies.rustls]
version = "0.23"
features = [
    "std",
    "tls12",
    "aws_lc_rs",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.subtle]
version = "2"

[dependencies.thiserror]
version = "2.0"

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

[dependencies.toml]
version = "0.9"

[dependencies.tonic]
version = "0.13"

[dependencies.tower]
version = "0.5"

[dependencies.tower-http]
version = "0.6"
features = [
    "compression-gzip",
    "decompression-gzip",
    "trace",
    "limit",
]

[dependencies.tracing]
version = "0.1"

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

[dependencies.uuid]
version = "1.10"
features = ["v4"]

[dev-dependencies.filetime]
version = "0.2"

[dev-dependencies.reqwest]
version = "0.13.3"
features = [
    "rustls-no-provider",
    "http2",
    "json",
    "multipart",
]
default-features = false

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

[dev-dependencies.zstd]
version = "0.13"

[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
option_if_let_else = "allow"
or_fun_call = "allow"
redundant_pub_crate = "allow"
result_large_err = "allow"
return_self_not_must_use = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
suboptimal_flops = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"

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

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

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

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

[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_crate_dependencies = "allow"

[lints.rust.future_incompatible]
level = "warn"
priority = -1

[lints.rust.nonstandard_style]
level = "warn"
priority = -1

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1