-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add features to reduce dependencies #46
Comments
Thanks for creating this issue! By looking at the dependency tree, I think it should be possible to reduce the number of dependencies that are required for regular usage (i.e., non-standalone mode) by about 30%. Most dependencies seem to be added by |
Making isahc optional would also let users remove OpenSSL from their dependency tree since it doesn't play well with rust-cross. |
After skimming the code a little bit, I don't think Another approach is to replace every instance of |
Could isahc be potentially replaced by hyper's client capabilities, seeming as the code, at least in the ping case, is async? (see src/api/adapter/mod.rs#L84-L108) |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
With my team we are evaluating
httpmock
; it really looks like a great project.Anyway, our test compile-time increased substantially due to its number of dependencies.
Would it maybe be possible to reduce the dependencies using cargo features? For example, I guess
isahc
and some other "client-side" libraries are used only with a remote server; could they be made optional and enabled with aremote
feature?The text was updated successfully, but these errors were encountered: