From 2dd1e8812e6ce4e4fd65aedb146cba29d42e81a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?joseLu=C3=ADs?= Date: Fri, 9 Jul 2021 13:42:30 +0200 Subject: [PATCH] [rust] hide the docs of deprecated items --- rust/build/build.rs | 3 ++- rust/src/channel/mod.rs | 1 + rust/src/notcurses/mod.rs | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/rust/build/build.rs b/rust/build/build.rs index 175c739d9..7a9ebf2af 100644 --- a/rust/build/build.rs +++ b/rust/build/build.rs @@ -77,7 +77,8 @@ fn main() { } // Finish the builder and generate the builder. - let bindings = builder.generate() + let bindings = builder + .generate() // Unwrap the Result and panic on failure. .expect("Unable to generate bindings"); diff --git a/rust/src/channel/mod.rs b/rust/src/channel/mod.rs index 6fdf98c2d..4e9a45bae 100644 --- a/rust/src/channel/mod.rs +++ b/rust/src/channel/mod.rs @@ -282,6 +282,7 @@ pub const NCALPHA_FG_RGB_MASK: u64 = crate::bindings::ffi::CELL_FG_RGB_MASK; pub type NcChannels = u64; #[deprecated] +#[doc(hidden)] pub type NcChannelPair = NcChannels; // NcRgb diff --git a/rust/src/notcurses/mod.rs b/rust/src/notcurses/mod.rs index 446b31df0..047d6013b 100644 --- a/rust/src/notcurses/mod.rs +++ b/rust/src/notcurses/mod.rs @@ -85,12 +85,14 @@ pub use reimplemented::*; pub type Nc = crate::bindings::ffi::notcurses; #[deprecated] +#[doc(hidden)] pub type Notcurses = Nc; /// Options struct for [`Notcurses`] pub type NcOptions = crate::bindings::ffi::notcurses_options; #[deprecated] +#[doc(hidden)] pub type NotcursesOptions = NcOptions; /// Do not call setlocale()