forked from benwis/tower-governor
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
40 lines (36 loc) · 1.38 KB
/
Cargo.toml
File metadata and controls
40 lines (36 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[package]
name = "jsonrpsee-tower-governor"
authors = ["Ben Wishovich <ben@benw.is>"]
description = "A rate-limiting middleware for Tower backed by the governor crate that allows configurable key based and global limits"
repository = "https://github.com/benwis/tower-governor"
license = "MIT OR Apache-2.0"
readme = "README.md"
version = "0.7.0"
edition = "2021"
keywords = ["jsonrpsee", "tower", "tonic", "rate-limit", "governor"]
categories = ["web-programming::http-server"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
forwarded-header-value = "0.1.1"
governor = "0.8.0"
http = "1.0.0"
pin-project = "1.0.12"
thiserror = "2.0.0"
tower = "0.5.1"
tracing = { version = "0.1.37", features = ["attributes"] }
hyper = "1.3"
axum = { version = "0.7", optional = true }
jsonrpsee = { version = "0.24.9", features = ["full"] }
[dev-dependencies]
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
reqwest = { version = "0.12", default-features = false, features = ["json"] }
serde_json = "1.0.89"
tower = { version = "0.4.13", features = ["util"] }
tower-http = { version = "0.5.2", features = ["trace"] }
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
[features]
default = ["axum"]
# Enables support for axum web framework
axum = ["dep:axum"]
# Enables tracing output for this middleware
tracing = []