New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up dependencies #164
Conversation
Remove dependencies that had been moved into http-client. Use the http-client features for curl/wasm/h1. Remove mentions of hyper entirely as it is not currently implemented.
middleware-logger = [] | ||
encoding = ["encoding_rs"] | ||
# requires web-sys for TextDecoder on wasm | ||
encoding = ["encoding_rs", "web-sys"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this also pull in web-sys
on non-wasm targets? I believe if wasm-client
has been enabled then web-sys
is already available.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
web-sys is still listed as a dependency for wasm targets only—appears to work as expected this way. actually web-sys is no longer directly used by surf for the wasm-client feature, so we can remove it from there
"AbortSignal", | ||
"Headers", | ||
"ObserverCallback", | ||
"ReferrerPolicy", | ||
"Request", | ||
"RequestCache", | ||
"RequestCredentials", | ||
"RequestInit", | ||
"RequestMode", | ||
"RequestRedirect", | ||
"Response", | ||
"TextDecoder", | ||
"Window", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wow; are these features no longer needed? That's huge!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They're all specified in http-client :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall!
http-client/*_client
features for curl/wasm/h1.native-client
andh1-client
on CI.