aro-web 1.0.0

HTTP/ADR layer for the Aro web framework
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.0"
name = "aro-web"
version = "1.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP/ADR layer for the Aro web framework"
homepage = "https://github.com/Artemis-Cooperative/aro"
documentation = "https://docs.rs/aro-web"
readme = "README.md"
keywords = [
    "web",
    "http",
    "axum",
    "framework",
    "routing",
]
categories = ["web-programming::http-server"]
license = "MIT"
repository = "https://github.com/Artemis-Cooperative/aro"
resolver = "2"

[features]
compression = [
    "tower-http/compression-gzip",
    "tower-http/compression-br",
]
compression-full = [
    "compression",
    "tower-http/compression-zstd",
    "tower-http/compression-deflate",
]
decompression = [
    "tower-http/decompression-gzip",
    "tower-http/decompression-br",
]
decompression-full = [
    "decompression",
    "tower-http/decompression-zstd",
    "tower-http/decompression-deflate",
]
http2 = ["axum/http2"]
test-utils = []

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

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

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

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

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

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

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

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

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

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

[[test]]
name = "timeout_test"
path = "tests/timeout_test.rs"
required-features = ["test-utils"]

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

[dependencies.aro-core]
version = "1.0.0"

[dependencies.axum]
version = "0.8"

[dependencies.config]
version = "0.14"

[dependencies.dotenvy]
version = "0.15"

[dependencies.pastey]
version = "0.2"

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

[dependencies.serde_json]
version = "1"

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

[dependencies.tower]
version = "0.5"

[dependencies.tower-http]
version = "0.6"
features = [
    "cors",
    "request-id",
    "set-header",
    "timeout",
    "trace",
    "util",
]

[dependencies.tracing]
version = "0.1"

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

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

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

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

[dev-dependencies.tokio-stream]
version = "0.1"

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

[dev-dependencies.tracing-test]
version = "0.2"

[lints.clippy]
allow_attributes_without_reason = "warn"
as_conversions = "warn"
cargo_common_metadata = "allow"
cast_lossless = "deny"
cast_possible_truncation = "deny"
cast_possible_wrap = "deny"
cast_precision_loss = "warn"
cast_sign_loss = "deny"
checked_conversions = "deny"
dbg_macro = "deny"
expect_used = "deny"
fn_to_numeric_cast_any = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
panic = "deny"
panic_in_result_fn = "warn"
print_stderr = "deny"
print_stdout = "deny"
ptr_as_ptr = "deny"
ref_as_ptr = "deny"
return_self_not_must_use = "allow"
todo = "deny"
unimplemented = "deny"
unreachable = "deny"
unwrap_used = "deny"
wildcard_imports = "allow"

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

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

[lints.clippy.correctness]
level = "deny"
priority = -1

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

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

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

[lints.clippy.suspicious]
level = "deny"
priority = -1

[lints.rust]
missing_abi = "deny"
unsafe_code = "forbid"
unsafe_op_in_unsafe_fn = "deny"