http-rs / surf

Fast and friendly HTTP client framework for async Rust
https://docs.rs/surf
Apache License 2.0
1.45k stars 119 forks source link

Allow building with `--all-features` #337

Closed misuzu closed 2 years ago

misuzu commented 2 years ago

h1-client-rustls is preferred when h1-client is also enabled.

I just want to use h1-client-rustls with sentry: https://github.com/getsentry/sentry-rust/pull/404 See https://github.com/rust-lang/cargo/issues/4328 and https://github.com/rust-lang/cargo/blob/master/src/doc/src/reference/features.md#feature-unification

Fishrock123 commented 2 years ago

--all-features does not work with Surf because it pulls in multiple conflicting defaults.

misuzu commented 2 years ago

--all-features does not work with Surf because it pulls in multiple conflicting defaults.

With this change, they aren't.