Skip to content
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

(feat) update hyper to 0.14 #74

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sunng87
Copy link

@sunng87 sunng87 commented Mar 2, 2021

Fixes #73

@Fishrock123 Fishrock123 added this to the 7.0.0 milestone Mar 2, 2021
@Fishrock123
Copy link
Member

This doesn't compile. Can you make sure you run check and tests locally via:

cargo check --no-default-features --features=hyper_client

cargo test --no-default-features --features=hyper_client

@sunng87
Copy link
Author

sunng87 commented Mar 3, 2021

Sorry, let me check later today

@sunng87
Copy link
Author

sunng87 commented Mar 3, 2021

It seems the main branch doesn't compile on wasm either, due to error from getrandom.

@sunng87
Copy link
Author

sunng87 commented Mar 4, 2021

@Fishrock123 it compiles on all targets. However, because the getrandom dependency was introduced in http-types, I'm not sure if it's good to add target check here

@Fishrock123
Copy link
Member

@sunng87 Could you add a separate feature flag for this? That we we can land it sooner.

@sunng87
Copy link
Author

sunng87 commented Apr 23, 2021

@Fishrock123 I'm not quite sure if a feature flag could fix this. Could you please show me some detail about that?

@Firstyear
Copy link

I've just run into this via http-rs/surf#295, is there any action to follow this up?

@Fishrock123
Copy link
Member

this could work but needs to be under a versioned flag, e.g. hyper-014

@niklasad1
Copy link

niklasad1 commented Dec 7, 2021

@Fishrock123

Do you mean that you prefer a feature flag such as:

[features]
wasm_getrandom = ["getrandom/js"]
wasm_client = ["other features",  "wasm_getrandom"]

Instead of:

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2.2"
features = ["js"]

Otherwise, can you elaborate so we can get this merged soon? :)

@19h
Copy link

19h commented May 1, 2022

Please review this PR, it would be great to be able to use surf with Tokio 1.0 :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hyper 0.14 support
5 participants