axum/axum-extra/Cargo.toml
David Pedersen 96b353b556
Add Cached extractor (#565)
* extra: Add `Cached` extractor

`Cached` wraps another extractor and caches its result in request
extensions.

* Use newtype to avoid overriding extensions of the same type

* Rename type param
2021-11-25 10:14:31 +00:00

29 lines
769 B
TOML

[package]
categories = ["asynchronous", "network-programming", "web-programming"]
description = "Extra utilities for axum"
edition = "2018"
homepage = "https://github.com/tokio-rs/axum"
keywords = ["http", "web", "framework"]
license = "MIT"
name = "axum-extra"
readme = "README.md"
repository = "https://github.com/tokio-rs/axum"
version = "0.1.0"
[features]
erased-json = ["serde", "serde_json"]
[dependencies]
axum = { path = "../axum", version = "0.3" }
http = "0.2"
mime = "0.3"
tower-service = "0.3"
# optional dependencies
serde = { version = "1.0.130", optional = true }
serde_json = { version = "1.0.71", optional = true }
[dev-dependencies]
hyper = "0.14"
tokio = { version = "1.14", features = ["full"] }
tower = { version = "0.4", features = ["util"] }