-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
91 lines (79 loc) · 2.33 KB
/
Cargo.toml
File metadata and controls
91 lines (79 loc) · 2.33 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
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
87
88
89
90
91
[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 = "3.1.0"
authors = ["Joel Wurtz <jwurtz@redirection.io>"]
edition = "2024"
build = "src/build.rs"
[lib]
name = "redirectionio"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
cbindgen = "0.29.2"
glob = "^0.3.3"
html-to-markdown-rs = "3.2.0"
libtool = "0.1.1"
linked_hash_set = { version = "0.1.6", features = ["serde"] }
serde = { version = "1.0.228", features = ["derive"] }
serde_yaml = "0.9.34"
tera = "1.20.1"
[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.44", features = ["serde", "wasmbind"] }
futures-util = { version = "0.3.32", default-features = false }
getrandom = { version = "0.4.2", features = ["wasm_js"] }
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.149"
wasm-bindgen = "0.2.118"
wasm-tracing = "2.1.0"
[dependencies]
brotli = { version = "8.0.2", optional = true }
chrono = { version = "0.4.44", features = ["serde"] }
cidr = { version = "0.3.2", features = ["serde"] }
dot_graph = { version = "0.2.3", optional = true }
flate2 = { version = "1.1.9", optional = true }
heck = "0.5.0"
html-to-markdown-rs = "3.2.0"
http = "1.4.0"
linked_hash_set = { version = "0.1.6", features = ["serde"] }
linked-hash-map = { version = "0.5.6", features = ["serde_impl"] }
lol_html = "2.7.2"
percent-encoding = "2.3.2"
rand = "0.10.1"
regex = "1.12.3"
serde = { version = "1.0.228", features = ["derive", "rc"] }
serde_json = "1.0.149"
tracing = "0.1.44"
tracing-subscriber = "0.3.23"
trusted-proxies = "0.3.0"
url = "2.5.8"
[dev-dependencies]
pprof = { version = "0.15.0", features = ["flamegraph"] }
criterion = { version = "0.8.2", 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
[[bench]]
name = "string_alloc_benchmark"
harness = false
[dependencies.web-sys]
version = "0.3.95"
features = [
"console",
]