amaters-net 0.2.0

Network layer for AmateRS (Musubi)
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.85"
name = "amaters-net"
version = "0.2.0"
authors = ["COOLJAPAN OU (Team KitaSan) <contact@cooljapan.tech>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Network layer for AmateRS (Musubi)"
readme = "README.md"
keywords = [
    "grpc",
    "quic",
    "networking",
    "mtls",
]
categories = [
    "network-programming",
    "cryptography",
]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/amaters"
resolver = "2"

[features]
compression = ["tonic/gzip"]
compute = ["amaters-core/compute"]
default = ["mtls"]
mtls = [
    "dep:rustls",
    "dep:tokio-rustls",
    "dep:x509-parser",
    "dep:rcgen",
    "dep:webpki-roots",
    "dep:rustls-pemfile",
]

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

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

[dependencies.amaters-core]
version = "0.2.0"

[dependencies.async-stream]
version = "0.3"

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

[dependencies.blake3]
version = "1.8"

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

[dependencies.dashmap]
version = "6.1"

[dependencies.futures]
version = "0.3"

[dependencies.http]
version = "1.4"

[dependencies.jsonwebtoken]
version = "9.3"
features = ["use_pem"]

[dependencies.parking_lot]
version = "0.12"

[dependencies.prost]
version = "0.14"

[dependencies.rcgen]
version = "0.14"
optional = true

[dependencies.rustls]
version = "0.23"
features = ["ring"]
optional = true

[dependencies.rustls-pemfile]
version = "2.2"
optional = true

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

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.50"
features = ["full"]

[dependencies.tokio-rustls]
version = "0.26"
optional = true

[dependencies.tonic]
version = "0.14"
features = [
    "gzip",
    "transport",
    "tls-ring",
    "tls-webpki-roots",
]

[dependencies.tonic-prost]
version = "0.14"

[dependencies.tower]
version = "0.5"
features = ["util"]

[dependencies.tower-layer]
version = "0.3"

[dependencies.tower-service]
version = "0.3"

[dependencies.tracing]
version = "0.1"

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

[dependencies.webpki-roots]
version = "1.0"
optional = true

[dependencies.x509-parser]
version = "0.18"
optional = true

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

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

[dev-dependencies.tokio]
version = "1.50"
features = [
    "full",
    "full",
    "test-util",
]

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

[build-dependencies.prost-build]
version = "0.14"

[build-dependencies.tonic-build]
version = "0.14"

[build-dependencies.tonic-prost-build]
version = "0.14"

[lints.clippy]
expect_used = "allow"
too_many_arguments = "allow"
type_complexity = "allow"
unwrap_used = "warn"

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

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

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

[lints.rust]
dead_code = "allow"
unsafe_op_in_unsafe_fn = "warn"
unused_imports = "allow"
unused_mut = "allow"
unused_variables = "allow"