mirror of
https://github.com/curl/curl.git
synced 2026-05-20 08:06:22 +03:00
docs/HYPER.md: updated to reflect current hyper build needs
This commit is contained in:
parent
2207066446
commit
f7d9a76ca7
1 changed files with 7 additions and 2 deletions
|
|
@ -18,11 +18,16 @@ The C API for Hyper is brand new and is still under development.
|
|||
|
||||
## build curl with hyper
|
||||
|
||||
Build hyper and enable the C API:
|
||||
Since March 3 2022, hyper needs the nightly rustc to build, which you may need
|
||||
to install first with:
|
||||
|
||||
% rustup toolchain install nightly
|
||||
|
||||
Then build hyper and enable its C API like this:
|
||||
|
||||
% git clone https://github.com/hyperium/hyper
|
||||
% cd hyper
|
||||
% RUSTFLAGS="--cfg hyper_unstable_ffi" cargo build --features client,http1,http2,ffi
|
||||
% RUSTFLAGS="--cfg hyper_unstable_ffi" cargo +nightly rustc --features client,http1,http2,ffi -Z unstable-options --crate-type cdylib
|
||||
|
||||
Build curl to use hyper's C API:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue