1
1
[package ]
2
2
name = " limitador"
3
3
version = " 0.8.0-dev"
4
- authors = [
" David Ortiz <[email protected] >" ,
" Eguzki Astiz Lezaun <[email protected] >" ,
" Alex Snaps <[email protected] >" ]
4
+ authors = [
5
+ " David Ortiz <[email protected] >" ,
6
+ " Eguzki Astiz Lezaun <[email protected] >" ,
7
+
8
+ ]
5
9
license = " Apache-2.0"
6
10
keywords = [" rate-limiting" , " rate" , " limiter" ]
7
11
categories = [" web-programming" ]
@@ -15,8 +19,31 @@ edition = "2021"
15
19
[features ]
16
20
default = [" disk_storage" , " redis_storage" ]
17
21
disk_storage = [" rocksdb" ]
18
- distributed_storage = [" tokio" , " tokio-stream" , " h2" , " base64" , " uuid" , " tonic" , " tonic-reflection" , " prost" , " prost-types" ]
19
- redis_storage = [" redis" , " r2d2" , " tokio" ]
22
+ distributed_storage = [
23
+ " tokio" ,
24
+ " tokio-stream" ,
25
+ " h2" ,
26
+ " base64" ,
27
+ " uuid" ,
28
+ " tonic" ,
29
+ " tonic-reflection" ,
30
+ " prost" ,
31
+ " prost-types" ,
32
+ ]
33
+ redis_storage = [
34
+ " r2d2" ,
35
+ " tokio" ,
36
+ " redis" ,
37
+ " redis/tls-native-tls" ,
38
+ " redis/tokio-native-tls-comp" ,
39
+ ]
40
+ redis_storage_rustls = [
41
+ " r2d2" ,
42
+ " tokio" ,
43
+ " redis" ,
44
+ " redis/tls-rustls" ,
45
+ " redis/tokio-rustls-comp" ,
46
+ ]
20
47
21
48
[dependencies ]
22
49
moka = { version = " 0.12" , features = [" sync" ] }
@@ -30,12 +57,12 @@ tracing = "0.1.40"
30
57
metrics = " 0.24"
31
58
32
59
# Optional dependencies
33
- rocksdb = { version = " 0.22" , optional = true , features = [" multi-threaded-cf" ] }
60
+ rocksdb = { version = " 0.22" , optional = true , features = [
61
+ " multi-threaded-cf" ,
62
+ ] }
34
63
redis = { version = " 0.27" , optional = true , features = [
35
64
" connection-manager" ,
36
65
" tokio-comp" ,
37
- " tls-native-tls" ,
38
- " tokio-native-tls-comp" ,
39
66
" script" ,
40
67
] }
41
68
r2d2 = { version = " 0.8" , optional = true }
@@ -53,7 +80,11 @@ tonic = { version = "0.12.3", optional = true }
53
80
tonic-reflection = { version = " 0.12.3" , optional = true }
54
81
prost = { version = " 0.13.3" , optional = true }
55
82
prost-types = { version = " 0.13.3" , optional = true }
56
- cel-interpreter = { git = " https://github.com/clarkmcc/cel-rust" , rev = " 5b02b08" , features = [" json" , " regex" , " chrono" ] }
83
+ cel-interpreter = { git = " https://github.com/clarkmcc/cel-rust" , rev = " 5b02b08" , features = [
84
+ " json" ,
85
+ " regex" ,
86
+ " chrono" ,
87
+ ] }
57
88
cel-parser = { git = " https://github.com/clarkmcc/cel-rust" , rev = " 5b02b08" }
58
89
59
90
[dev-dependencies ]
@@ -69,11 +100,7 @@ redis = { version = "0.27", features = [
69
100
paste = " 1"
70
101
rand = " 0.8"
71
102
tempfile = " 3.5.0"
72
- tokio = { version = " 1" , features = [
73
- " rt-multi-thread" ,
74
- " macros" ,
75
- " time" ,
76
- ] }
103
+ tokio = { version = " 1" , features = [" rt-multi-thread" , " macros" , " time" ] }
77
104
78
105
[build-dependencies ]
79
106
tonic-build = " 0.12"
0 commit comments