-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
41 lines (36 loc) · 1.22 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
[package]
name = "async-html-rewriter"
version = "0.1.0"
edition = "2021"
authors = ["Patrice Billaut <[email protected]>"]
description = "Asynchronous HTML rewriting library."
repository = "https://github.com/pbillaut/async-html-rewriter-rs"
license = "MIT"
keywords = ["async", "html", "rewriting", "streaming"]
categories = ["network-programming", "web-programming", "web-programming::http-server"]
[dependencies]
atomic-waker = "1.1"
bytes = "1.7"
crossbeam-queue = "0.3"
futures-core = "0.3"
lol_html = "1.2"
pin-project-lite = "0.2"
thiserror = "1.0"
tokio = { version = "1.40", features = ["io-util"] }
tokio-stream = "0.1"
# Optional Dependencies
http-body = { version = "1.0", optional = true }
http-body-util = { version = "0.1", optional = true }
hyper = { version = "1.4", optional = true }
tokio-util = { version = "0.7", features = ["io"], optional = true }
[dev-dependencies]
criterion = { version = "0.5", features = ["async", "async_tokio"] }
tokio = { version = "1.40", features = ["macros", "io-util"] }
tokio-test = "0.4"
[features]
bench = ["tokio/rt-multi-thread"]
hyper = ["dep:http-body", "dep:http-body-util", "dep:hyper", "dep:tokio-util"]
[[bench]]
name = "bench_main"
harness = false
required-features = ["bench"]