hyperium / hyper

An HTTP library for Rust
https://hyper.rs
MIT License
14.08k stars 1.55k forks source link

chore(dependencies): enable futures-util/alloc for tests #3601

Closed seanmonstar closed 3 months ago

seanmonstar commented 3 months ago

Closes #3599

seanmonstar commented 3 months ago

Hm, so the syntax to enable this on an optional feature works in newest Cargo, but the Cargo from 1.63 only understands half of it:

does not have feature futures-util. It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it does not have an implicit feature with that name.

Using ffi = ["dep:futures-util/alloc"] causes an error in all Cargo versions. How did one do this before it was "fixed"? Is Rust 1.63 just left out in the rain?

seanmonstar commented 3 months ago

Following advice in this issue: https://github.com/rust-lang/cargo/issues/10788

Changed to be futures-util?/alloc. 🤷