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" ]
@@ -13,10 +17,30 @@ readme = "README.md"
13
17
edition = " 2021"
14
18
15
19
[features ]
16
- default = [" disk_storage" , " redis_storage " ]
20
+ default = [" disk_storage" , " redis_storage_nativetls " ]
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 = [" r2d2" , " tokio" , " redis" ]
34
+ redis_storage_nativetls = [
35
+ " redis_storage" ,
36
+ " redis/tls-native-tls" ,
37
+ " redis/tokio-native-tls-comp" ,
38
+ ]
39
+ redis_storage_rustls = [
40
+ " redis_storage" ,
41
+ " redis/tls-rustls" ,
42
+ " redis/tokio-rustls-comp" ,
43
+ ]
20
44
21
45
[dependencies ]
22
46
moka = { version = " 0.12" , features = [" sync" ] }
@@ -30,12 +54,12 @@ tracing = "0.1.40"
30
54
metrics = " 0.24"
31
55
32
56
# Optional dependencies
33
- rocksdb = { version = " 0.22" , optional = true , features = [" multi-threaded-cf" ] }
57
+ rocksdb = { version = " 0.22" , optional = true , features = [
58
+ " multi-threaded-cf" ,
59
+ ] }
34
60
redis = { version = " 0.27" , optional = true , features = [
35
61
" connection-manager" ,
36
62
" tokio-comp" ,
37
- " tls-native-tls" ,
38
- " tokio-native-tls-comp" ,
39
63
" script" ,
40
64
] }
41
65
r2d2 = { version = " 0.8" , optional = true }
@@ -53,7 +77,11 @@ tonic = { version = "0.12.3", optional = true }
53
77
tonic-reflection = { version = " 0.12.3" , optional = true }
54
78
prost = { version = " 0.13.3" , optional = true }
55
79
prost-types = { version = " 0.13.3" , optional = true }
56
- cel-interpreter = { git = " https://github.com/clarkmcc/cel-rust" , rev = " 5b02b08" , features = [" json" , " regex" , " chrono" ] }
80
+ cel-interpreter = { git = " https://github.com/clarkmcc/cel-rust" , rev = " 5b02b08" , features = [
81
+ " json" ,
82
+ " regex" ,
83
+ " chrono" ,
84
+ ] }
57
85
cel-parser = { git = " https://github.com/clarkmcc/cel-rust" , rev = " 5b02b08" }
58
86
59
87
[dev-dependencies ]
@@ -69,11 +97,7 @@ redis = { version = "0.27", features = [
69
97
paste = " 1"
70
98
rand = " 0.8"
71
99
tempfile = " 3.5.0"
72
- tokio = { version = " 1" , features = [
73
- " rt-multi-thread" ,
74
- " macros" ,
75
- " time" ,
76
- ] }
100
+ tokio = { version = " 1" , features = [" rt-multi-thread" , " macros" , " time" ] }
77
101
78
102
[build-dependencies ]
79
103
tonic-build = " 0.12"
0 commit comments