mirror of
https://github.com/curl/curl.git
synced 2026-07-24 19:57:25 +03:00
parent
889c071d3c
commit
686951f7be
1 changed files with 3 additions and 1 deletions
|
|
@ -29,12 +29,14 @@ Then build hyper and enable its C API like this:
|
|||
% cd hyper
|
||||
% RUSTFLAGS="--cfg hyper_unstable_ffi" cargo +nightly rustc --features client,http1,http2,ffi -Z unstable-options --crate-type cdylib
|
||||
|
||||
Also, `--release` can be added for a release (optimized) build.
|
||||
|
||||
Build curl to use hyper's C API:
|
||||
|
||||
% git clone https://github.com/curl/curl
|
||||
% cd curl
|
||||
% autoreconf -fi
|
||||
% ./configure --with-hyper=<hyper dir>
|
||||
% ./configure LDFLAGS="-Wl,-rpath,<hyper-dir>/target/debug -Wl,-rpath,<hyper-dir>/target/release" --with-openssl --with-hyper=<hyper-dir>
|
||||
% make
|
||||
|
||||
# using Hyper internally
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue