2022-11-02 16:39:52 +00:00
|
|
|
[package]
|
|
|
|
edition = "2021"
|
|
|
|
name = "piped-proxy"
|
|
|
|
version = "0.1.0"
|
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
|
|
[dependencies]
|
2023-09-27 20:40:47 +00:00
|
|
|
# Web Requests & Async Runtime
|
2024-03-28 19:04:28 +00:00
|
|
|
tokio = { version = "1.37.0", features = ["full"] }
|
2024-02-04 04:26:29 +00:00
|
|
|
actix-web = "4.5.1"
|
2024-03-19 20:01:30 +00:00
|
|
|
reqwest = { version = "0.11.27", features = ["stream", "brotli", "gzip", "socks"], default-features = false }
|
2022-11-02 16:39:52 +00:00
|
|
|
qstring = "0.7.2"
|
2023-09-27 20:40:47 +00:00
|
|
|
|
|
|
|
# Alternate Allocator
|
2024-04-22 20:25:46 +00:00
|
|
|
mimalloc = { version = "0.1.41", optional = true }
|
2023-09-27 20:40:47 +00:00
|
|
|
|
|
|
|
# Transcoding Images to WebP/AVIF to save bandwidth
|
2024-03-31 03:04:50 +00:00
|
|
|
image = { version = "0.25.1", features = ["jpeg", "webp", "rayon"], default-features = false, optional = true }
|
2024-02-19 06:47:37 +00:00
|
|
|
libwebp-sys = { version = "0.9.5", optional = true }
|
2024-03-14 14:41:44 +00:00
|
|
|
ravif = { version = "0.11.5", optional = true }
|
2023-10-29 12:55:07 +00:00
|
|
|
rgb = { version = "0.8.37", optional = true }
|
2023-09-27 20:40:47 +00:00
|
|
|
|
2023-12-07 13:46:56 +00:00
|
|
|
once_cell = "1.19.0"
|
2024-03-23 05:29:25 +00:00
|
|
|
regex = "1.10.4"
|
2024-03-12 12:25:33 +00:00
|
|
|
blake3 = { version = "1.5.1", optional = true }
|
2024-03-22 21:03:47 +00:00
|
|
|
bytes = "1.6.0"
|
2023-12-24 16:57:31 +00:00
|
|
|
futures-util = "0.3.30"
|
2024-06-17 19:22:00 +00:00
|
|
|
listenfd = "1.0.1"
|
2023-07-13 10:46:17 +00:00
|
|
|
|
|
|
|
[features]
|
2023-11-17 15:04:42 +00:00
|
|
|
default = ["webp", "mimalloc", "reqwest-rustls", "qhash"]
|
2023-09-27 20:40:47 +00:00
|
|
|
|
|
|
|
reqwest-rustls = ["reqwest/rustls-tls"]
|
|
|
|
reqwest-native-tls = ["reqwest/default-tls"]
|
|
|
|
|
|
|
|
avif = ["dep:ravif", "dep:rgb", "dep:image"]
|
|
|
|
webp = ["dep:libwebp-sys", "dep:image"]
|
|
|
|
|
|
|
|
mimalloc = ["dep:mimalloc"]
|
2023-08-10 23:24:05 +00:00
|
|
|
|
2023-10-30 23:52:21 +00:00
|
|
|
optimized = ["libwebp-sys?/sse41", "libwebp-sys?/avx2", "libwebp-sys?/neon"]
|
|
|
|
|
2023-11-17 15:04:42 +00:00
|
|
|
qhash = ["blake3"]
|
|
|
|
|
2023-08-10 23:24:05 +00:00
|
|
|
[profile.release]
|
2023-09-27 20:40:47 +00:00
|
|
|
lto = true
|