detritus-protocol 0.1.0

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

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

[features]
default = ["multipart"]
multipart = [
    "dep:bytes",
    "dep:futures-util",
    "dep:multer",
    "dep:tokio",
]

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

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

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

[dependencies.bytes]
version = "1"
optional = true

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

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

[dependencies.multer]
version = "3"
optional = true

[dependencies.prost]
version = "0.13"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "sync",
    "time",
    "io-util",
]
optional = true

[dependencies.tonic]
version = "0.13"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "sync",
    "time",
    "macros",
    "rt",
]

[build-dependencies.protoc-bin-vendored]
version = "3"

[build-dependencies.tonic-build]
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