From a5d260609ddaa46936e75d81f6831e115bcb25e3 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Sat, 12 Aug 2023 06:18:19 +1000 Subject: [PATCH] docs/HYPER.md: update hyper build instructions Nightly Rust and `-Z unstable-options` are not needed. The instructions here now match the hyper docs exactly: https://github.com/hyperium/hyper/commit/bd7928f3dd6a8461f0f0fdf7ee0fd95c2f156f88 Closes #11662 --- docs/HYPER.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/HYPER.md b/docs/HYPER.md index 62d0f67e2b..c2c55ab4cb 100644 --- a/docs/HYPER.md +++ b/docs/HYPER.md @@ -18,16 +18,11 @@ The C API for Hyper is brand new and is still under development. ## build curl with hyper -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: +Using Rust 1.64.0 or later, build hyper and enable its C API like this: % git clone https://github.com/hyperium/hyper % cd hyper - % RUSTFLAGS="--cfg hyper_unstable_ffi" cargo +nightly rustc --features client,http1,http2,ffi -Z unstable-options --crate-type cdylib + % RUSTFLAGS="--cfg hyper_unstable_ffi" cargo rustc --features client,http1,http2,ffi --crate-type cdylib Also, `--release` can be added for a release (optimized) build. -- 2.47.3