[package]
name = "api-version"
description = "Axum middleware to add a version prefix to request paths based on a set of versions and an optional `x-api-version` header"
version = "0.3.8"
edition = "2024"
license = "Apache-2.0"
readme = "README.md"
homepage = "https://github.com/hseeberger/api-version"
repository = "https://github.com/hseeberger/api-version"
documentation = "https://docs.rs/api-version/latest/api_version/"
publish = true
[dependencies]
axum = { version = "0.8" }
axum-extra = { version = "0.12", features = [ "typed-header" ] }
futures = { version = "0.3" }
regex = { version = "1.12" }
tower = { version = "0.5" }
tracing = { version = "0.1" }
[dev-dependencies]
anyhow = { version = "1.0" }
assert_matches = { version = "1.5" }
futures = { version = "0.3" }
tokio = { version = "1", features = [ "macros", "rt-multi-thread" ] }