mirror of
https://github.com/TeamPiped/piped-proxy.git
synced 2024-08-14 23:50:45 +00:00
46 lines
1.3 KiB
TOML
46 lines
1.3 KiB
TOML
[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]
|
|
# Web Requests & Async Runtime
|
|
tokio = { version = "1.35.0", features = ["full"] }
|
|
actix-web = "4.4.0"
|
|
reqwest = { version = "0.11.22", features = ["stream", "brotli", "gzip", "socks"], default-features = false }
|
|
qstring = "0.7.2"
|
|
|
|
# Alternate Allocator
|
|
mimalloc = { version = "0.1.39", optional = true }
|
|
|
|
# Transcoding Images to WebP/AVIF to save bandwidth
|
|
image = { version = "0.24.7", features = ["jpeg", "jpeg_rayon", "webp"], default-features = false, optional = true }
|
|
libwebp-sys = { version = "0.9.4", optional = true }
|
|
ravif = { version = "0.11.3", optional = true }
|
|
rgb = { version = "0.8.37", optional = true }
|
|
|
|
once_cell = "1.19.0"
|
|
regex = "1.10.2"
|
|
blake3 = { version = "1.5.0", optional = true }
|
|
bytes = "1.5.0"
|
|
futures-util = "0.3.29"
|
|
|
|
[features]
|
|
default = ["webp", "mimalloc", "reqwest-rustls", "qhash"]
|
|
|
|
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"]
|
|
|
|
optimized = ["libwebp-sys?/sse41", "libwebp-sys?/avx2", "libwebp-sys?/neon"]
|
|
|
|
qhash = ["blake3"]
|
|
|
|
[profile.release]
|
|
lto = true
|