Skip to content

Commit 8dfeb73

Browse files
committed
docs(ffi): add unstable feature flag to module in docsrs
1 parent 194e6f9 commit 8dfeb73

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/ffi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
//! `cargo`, staring with `1.64.0`, it can be compiled with the following command:
2626
//!
2727
//! ```notrust
28-
//! RUSTFLAGS="--cfg hyper_unstable_ffi" cargo rustc --features client,http1,http2,ffi --crate-type cdylib
28+
//! RUSTFLAGS="--cfg hyper_unstable_ffi" cargo rustc --crate-type cdylib --features client,http1,http2,ffi
2929
//! ```
3030
3131
// We may eventually allow the FFI to be enabled without `client` or `http1`,

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ pub mod service;
7979
pub mod upgrade;
8080

8181
#[cfg(feature = "ffi")]
82+
#[cfg_attr(docsrs, doc(cfg(all(feature = "ffi", hyper_unstable_ffi))))]
8283
pub mod ffi;
8384

8485
cfg_proto! {

0 commit comments

Comments
 (0)