chore: strip actix-web features (#1713)
Some checks are pending
Glean probe-scraper / glean-probe-scraper (push) Waiting to run

while providing an optional actix-compress feature

also disables actix-web's cookies and unicode features

Closes STOR-256
This commit is contained in:
Philip Jenvey 2025-07-02 14:04:43 -07:00 committed by GitHub
parent f01c21fef4
commit dd546f028e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 15 deletions

14
Cargo.lock generated
View File

@ -92,7 +92,6 @@ dependencies = [
"bytestring",
"cfg-if",
"http 0.2.12",
"regex",
"regex-lite",
"serde 1.0.218",
"tracing",
@ -166,7 +165,6 @@ dependencies = [
"bytes",
"bytestring",
"cfg-if",
"cookie",
"derive_more",
"encoding_rs",
"futures-core",
@ -178,7 +176,6 @@ dependencies = [
"mime",
"once_cell",
"pin-project-lite",
"regex",
"regex-lite",
"serde 1.0.218",
"serde_json",
@ -638,17 +635,6 @@ version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e"
[[package]]
name = "cookie"
version = "0.16.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e859cd57d0710d9e06c381b550c06e76992472a8c6d527aecd2fc673dcc231fb"
dependencies = [
"percent-encoding 2.3.1",
"time",
"version_check",
]
[[package]]
name = "core-foundation-sys"
version = "0.8.7"

View File

@ -29,7 +29,7 @@ rust-version = "1.86"
license = "MPL-2.0"
[workspace.dependencies]
actix-web = "4"
actix-web = { version = "4", default-features = false, features = ["compat", "http2", "macros"] }
docopt = "1.1"
base64 = "0.22"

View File

@ -63,3 +63,4 @@ no_auth = []
py_verifier = ["tokenserver-auth/py"]
mysql = ["syncstorage-db/mysql"]
spanner = ["syncstorage-db/spanner"]
actix-compress = ["actix-web/compress-brotli", "actix-web/compress-gzip", "actix-web/compress-zstd"]