-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
51 lines (41 loc) · 1.79 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
[package]
name = "websocket-proxy"
version = "0.0.0"
edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "websocket_proxy"
path = "src/lib.rs"
required-features = ["server"]
[features]
default = ["cloudflare"]
cloudflare = ["cfg-if", "worker", "serde", "tokio/io-util"]
server = ["axum", "headers", "tokio/full", "tower-http", "tracing", "tracing-subscriber", "bytes", "bitcoin_hashes"]
[dependencies]
# Common dependency
tokio = { version = "^1.0", features = [], optional = true }
futures = { version = "0.3.28" }
async-trait = "0.1.68"
# Cloudflare
cfg-if = { version = "0.1.2", optional = true }
# TODO move to main branch once this merges in
#worker = { version = "0.0.13", features = ["queue"] }
worker = { git = "https://github.com/kflansburg/workers-rs.git", rev = "e05d615ba53896faa9f7ecf3db84715d472d1319", optional = true }
serde = { version = "^1.0", features = ["derive"], optional = true }
# Normal Binary Server
axum = { version ="0.6.15", features = ["ws", "headers"], optional = true }
headers = { version = "0.3.8", optional = true }
tower-http = { version = "0.4.0", features = ["fs", "trace"], optional = true }
tracing = { version = "0.1", optional = true }
tracing-subscriber = { version = "0.3.17", features = ["env-filter"], optional = true }
bytes = { version = "1.3.0", optional = true }
bitcoin_hashes = { version = "0.11", default-features = true, optional = true }
# The `console_error_panic_hook` crate provides better debugging of panics by
# logging them with `console.error`. This is great for development, but requires
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
# code size when deploying.
console_error_panic_hook = { version = "0.1.1", optional = true }
[profile.release]
# Tell `rustc` to optimize for small code size.
opt-level = "s"