api-tools 0.7.0

An API tools library for Rust
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 = "api-tools"
version = "0.7.0"
authors = ["Fabien Bellanger <valentil@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An API tools library for Rust"
homepage = "https://github.com/fabienbellanger/api-tools"
documentation = "https://docs.rs/api-tools"
readme = "README.md"
keywords = [
    "API",
    "Axum",
    "Layer",
    "Metrics",
    "Tools",
]
license = "MIT"
repository = "https://github.com/fabienbellanger/api-tools"

[package.metadata.docs.rs]
all-features = true

[features]
axum = []
default = []
full = [
    "axum",
    "prometheus",
]
prometheus = [
    "dep:metrics",
    "dep:metrics-exporter-prometheus",
    "dep:sysinfo",
]

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

[dependencies.axum]
version = "0.8.8"

[dependencies.bytes]
version = "1.11.1"

[dependencies.bytesize]
version = "2.3.1"

[dependencies.chrono]
version = "0.4.43"
features = [
    "clock",
    "std",
    "serde",
]
default-features = false

[dependencies.chrono-tz]
version = "0.10.4"

[dependencies.futures]
version = "0.3.31"

[dependencies.http-auth-basic]
version = "0.3.7"

[dependencies.hyper]
version = "1.8.1"

[dependencies.jsonwebtoken]
version = "10.3.0"
features = ["rust_crypto"]

[dependencies.metrics]
version = "0.24.3"
optional = true

[dependencies.metrics-exporter-prometheus]
version = "0.18.1"
optional = true

[dependencies.mime]
version = "0.3.17"

[dependencies.opentelemetry]
version = "0.31.0"

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.serde_urlencoded]
version = "0.7.1"

[dependencies.sysinfo]
version = "0.38.1"
optional = true

[dependencies.thiserror]
version = "2.0.18"

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

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

[dependencies.tower-http]
version = "0.6.8"
features = [
    "cors",
    "fs",
    "request-id",
    "util",
    "set-header",
]

[dependencies.tracing]
version = "0.1.44"

[dependencies.tracing-opentelemetry]
version = "0.32.1"

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

[dev-dependencies.base64]
version = "0.22.1"