Skip to content

Commit bd7928f

Browse files
authored
chore(ffi): Use stable rust for building C API (#2993)
1 parent 8ae73ca commit bd7928f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ jobs:
182182
uses: actions-rs/toolchain@v1
183183
with:
184184
profile: minimal
185-
toolchain: nightly
185+
toolchain: stable
186186
override: true
187187

188188
- name: Install cbindgen
@@ -197,7 +197,7 @@ jobs:
197197
RUSTFLAGS: --cfg hyper_unstable_ffi
198198
with:
199199
command: rustc
200-
args: --features client,http1,http2,ffi -Z unstable-options --crate-type cdylib
200+
args: --features client,http1,http2,ffi --crate-type cdylib
201201

202202
- name: Make Examples
203203
run: cd capi/examples && make client

capi/README.md

Lines changed: 2 additions & 2 deletions
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 a nightly release of `cargo`, starting with `nightly-2022-03-02`, 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 `cargo`, staring with `1.64.0`, it can be compiled with the following command:
1414

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

src/ffi/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
//! ## Building
2323
//!
2424
//! The C API is part of the Rust library, but isn't compiled by default. Using
25-
//! `cargo`, it can be compiled with the following command:
25+
//! `cargo`, staring with `1.64.0`, it can be compiled with the following command:
2626
//!
2727
//! ```notrust
28-
//! RUSTFLAGS="--cfg hyper_unstable_ffi" cargo build --features client,http1,http2,ffi
28+
//! RUSTFLAGS="--cfg hyper_unstable_ffi" cargo rustc --features client,http1,http2,ffi --crate-type cdylib
2929
//! ```
3030
3131
// We may eventually allow the FFI to be enabled without `client` or `http1`,

0 commit comments

Comments
 (0)