partial tower/tower-http sentry and gzip/brotli compression
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
3103ad2205
commit
b437e47d8c
3 changed files with 53 additions and 6 deletions
11
Cargo.toml
11
Cargo.toml
|
@ -135,12 +135,10 @@ features = ["jpeg", "png", "gif", "webp"]
|
|||
version = "0.4.21"
|
||||
default-features = false
|
||||
features = ["max_level_trace", "release_max_level_info"]
|
||||
|
||||
[dependencies.tracing]
|
||||
version = "0.1.40"
|
||||
default-features = false
|
||||
features = ["max_level_trace", "release_max_level_info"]
|
||||
|
||||
[dependencies.tracing-subscriber]
|
||||
version = "0.3.18"
|
||||
features = ["env-filter"]
|
||||
|
@ -178,6 +176,9 @@ features = ["backtrace", "contexts", "debug-images", "panic", "rustls", "tower",
|
|||
[dependencies.sentry-tracing]
|
||||
version = "0.32.2"
|
||||
optional = true
|
||||
[dependencies.sentry-tower]
|
||||
version = "0.32.2"
|
||||
optional = true
|
||||
|
||||
# optional jemalloc usage
|
||||
[dependencies.tikv-jemallocator]
|
||||
|
@ -300,11 +301,11 @@ rocksdb = ["rust-rocksdb", "num_cpus"]
|
|||
jemalloc = ["tikv-jemalloc-ctl", "tikv-jemallocator"]
|
||||
sqlite = ["rusqlite", "parking_lot", "thread_local", "num_cpus"]
|
||||
systemd = ["sd-notify"]
|
||||
sentry_telemetry = ["sentry", "sentry-tracing"]
|
||||
sentry_telemetry = ["sentry", "sentry-tracing", "sentry-tower"]
|
||||
|
||||
#gzip_compression = ["tower-http/compression-gzip"]
|
||||
gzip_compression = ["tower-http/compression-gzip", "reqwest/gzip"]
|
||||
zstd_compression = ["tower-http/compression-zstd"]
|
||||
#brotli_compression = ["tower-http/compression-br"]
|
||||
brotli_compression = ["tower-http/compression-br", "reqwest/brotli"]
|
||||
#all_compression = ["tower-http/compression-full"] # all compression algos
|
||||
|
||||
sha256_media = ["sha2"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue