mirror of
https://github.com/openharmony/third_party_rust_hyper.git
synced 2026-07-01 19:54:17 -04:00
docs(ffi): document nightly requirement for FFI
Update the command to use `--crate-type`.
This commit is contained in:
committed by
Sean McArthur
parent
7eb396b773
commit
59d1ee1891
+2
-2
@@ -10,8 +10,8 @@ Because of that, it's only accessible if `--cfg hyper_unstable_ffi` is passed to
|
||||
|
||||
## Building
|
||||
|
||||
The C API is part of the Rust library, but isn't compiled by default. Using `cargo`, it can be compiled with the following command:
|
||||
The C API is part of the Rust library, but isn't compiled by default. Using a nightly release of `cargo`, starting with `nightly-2022-03-02`, it can be compiled with the following command:
|
||||
|
||||
```
|
||||
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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user