-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
86 lines (75 loc) · 2.16 KB
/
Cargo.toml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[package]
name = "redirectionio"
description = "Redirection IO Library to handle matching rule, redirect and filtering headers and body."
repository = "https://github.com/redirectionio/libredirectionio"
license = "MIT"
version = "2.11.2"
authors = ["Joel Wurtz <jwurtz@redirection.io>"]
edition = "2021"
build = "src/build.rs"
[lib]
name = "redirectionio"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
cbindgen = "0.27.0"
glob = "^0.3.1"
libtool = "0.1.1"
linked_hash_set = { version = "0.1.4", features = ["serde"] }
serde = { version = "1.0.215", features = ["derive"] }
serde_yaml = "0.9.34"
tera = "1.20.0"
[features]
default = ["compress", "router"]
compress = ["dep:brotli", "dep:flate2"]
router = []
dot = ["dep:dot_graph"]
wasmbind = []
[target.'cfg(target_arch = "wasm32")'.dependencies]
chrono = { version = "0.4.38", features = ["serde", "wasmbind"] }
futures-util = { version = "0.3.30", default-features = false }
getrandom = { version = "0.2.15", features = ["js"] }
log = "0.4.22"
serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.133"
wasm-bindgen = "0.2.95"
wasm-logger = "0.2.0"
[dependencies]
brotli = { version = "3.5.0", optional = true }
chrono = { version = "0.4.38", features = ["serde"] }
cidr = { version = "0.3.0", features = ["serde"] }
dot_graph = { version = "0.2.3", optional = true }
flate2 = { version = "1.0.35", optional = true }
heck = "0.5.0"
http = "0.2.12"
lazy_static = "1.5.0"
linked_hash_set = { version = "0.1.4", features = ["serde"] }
log = "0.4.22"
percent-encoding = "2.3.1"
rand = "0.8.5"
regex = "1.11.1"
scraper = "0.21.0"
serde = { version = "1.0.215", features = ["derive", "rc"] }
serde_json = "1.0.133"
stderrlog = "0.6.0"
tracing = "0.1.40"
url = "2.5.3"
[dev-dependencies]
pprof = { version = "0.14.0", features = ["flamegraph"] }
criterion = { version = "0.5.1", default-features = false }
[[bench]]
name = "match_rule_benchmark"
harness = false
[[bench]]
name = "build_router_rule_benchmark"
harness = false
[[bench]]
name = "filter_body_benchmark"
harness = false
[[bench]]
name = "test_examples_benchmark"
harness = false
[dependencies.web-sys]
version = "0.3.72"
features = [
"console",
]