Skip to content

Commit 9646b69

Browse files
committed
docs(ffi): document nightly requirement for FFI
Update the command to use `--crate-type`.
1 parent 7e76824 commit 9646b69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

capi/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Because of that, it's only accessible if `--cfg hyper_unstable_ffi` is passed to
1010

1111
## Building
1212

13-
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:
13+
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:
1414

1515
```
16-
RUSTFLAGS="--cfg hyper_unstable_ffi" cargo build --features client,http1,http2,ffi
16+
RUSTFLAGS="--cfg hyper_unstable_ffi" cargo +nightly rustc --features client,http1,http2,ffi -Z unstable-options --crate-type cdylib
1717
```

0 commit comments

Comments
 (0)