You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, reqwest uses serde in three places that are not behind feature flags:
Request query parameters query<T>
Request form data form<T>
WASM header parsing
It would be nice to make serde usage entirely optional.
The two request methods could be moved to optional (enabled by default) features query, form.
And the WASM parsing could be replaced with native JS methods.
There's been asks in the past to change the behavior of the query/form methods:
This would at least provide an option to disable those built-in APIs.
For the WASM usage, the current approach converts headers to JSON, then parses them with serde_json, in order to extract them as strings.
I imagine there's a simpler way to do that without reaching for serde.
Note that serde would still be pulled in as a transitive dependency through url due to a bug.
But that should be resolved once servo/rust-url#1071 is released.
Activity