From 8dfeb73b2cb851aab456a67a95b0c8bf3c784c14 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Thu, 27 Jul 2023 16:24:16 -0400 Subject: [PATCH] docs(ffi): add unstable feature flag to module in docsrs --- src/ffi/mod.rs | 2 +- src/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ffi/mod.rs b/src/ffi/mod.rs index 83d18a9a41..8dd8a5b9ab 100644 --- a/src/ffi/mod.rs +++ b/src/ffi/mod.rs @@ -25,7 +25,7 @@ //! `cargo`, staring with `1.64.0`, it can be compiled with the following command: //! //! ```notrust -//! RUSTFLAGS="--cfg hyper_unstable_ffi" cargo rustc --features client,http1,http2,ffi --crate-type cdylib +//! RUSTFLAGS="--cfg hyper_unstable_ffi" cargo rustc --crate-type cdylib --features client,http1,http2,ffi //! ``` // We may eventually allow the FFI to be enabled without `client` or `http1`, diff --git a/src/lib.rs b/src/lib.rs index 054beb225a..7de04debc3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -79,6 +79,7 @@ pub mod service; pub mod upgrade; #[cfg(feature = "ffi")] +#[cfg_attr(docsrs, doc(cfg(all(feature = "ffi", hyper_unstable_ffi))))] pub mod ffi; cfg_proto! {