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
|
2023-11-09 22:55:53 +00:00
|
|
|
tokio = { version = "1.34.0", features = ["full"] }
|
2023-08-29 05:07:02 +00:00
|
|
|
actix-web = "4.4.0"
|
2023-10-03 16:08:53 +00:00
|
|
|
reqwest = { version = "0.11.22", 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
|
|
|
|
mimalloc = { version = "0.1.39", optional = true }
|
|
|
|
|
|
|
|
# Transcoding Images to WebP/AVIF to save bandwidth
|
2023-09-27 21:44:45 +00:00
|
|
|
image = { version = "0.24.7", features = ["jpeg", "jpeg_rayon", "webp"], default-features = false, optional = true }
|
2023-09-27 20:40:47 +00:00
|
|
|
libwebp-sys = { version = "0.9.4", optional = true }
|
2023-09-22 01:15:03 +00:00
|
|
|
ravif = { version = "0.11.3", 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
|
|
|
|
|
|
|
once_cell = "1.18.0"
|
2023-10-16 17:26:23 +00:00
|
|
|
regex = "1.10.2"
|
2023-11-17 15:04:42 +00:00
|
|
|
blake3 = { version = "1.5.0", features = ["rayon"], optional = true }
|
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
|