[rust] hide the docs of deprecated items

This commit is contained in:
joseLuís 2021-07-09 13:42:30 +02:00
parent b372a492ad
commit 2dd1e8812e
3 changed files with 5 additions and 1 deletions

View File

@ -77,7 +77,8 @@ fn main() {
} }
// Finish the builder and generate the builder. // Finish the builder and generate the builder.
let bindings = builder.generate() let bindings = builder
.generate()
// Unwrap the Result and panic on failure. // Unwrap the Result and panic on failure.
.expect("Unable to generate bindings"); .expect("Unable to generate bindings");

View File

@ -282,6 +282,7 @@ pub const NCALPHA_FG_RGB_MASK: u64 = crate::bindings::ffi::CELL_FG_RGB_MASK;
pub type NcChannels = u64; pub type NcChannels = u64;
#[deprecated] #[deprecated]
#[doc(hidden)]
pub type NcChannelPair = NcChannels; pub type NcChannelPair = NcChannels;
// NcRgb // NcRgb

View File

@ -85,12 +85,14 @@ pub use reimplemented::*;
pub type Nc = crate::bindings::ffi::notcurses; pub type Nc = crate::bindings::ffi::notcurses;
#[deprecated] #[deprecated]
#[doc(hidden)]
pub type Notcurses = Nc; pub type Notcurses = Nc;
/// Options struct for [`Notcurses`] /// Options struct for [`Notcurses`]
pub type NcOptions = crate::bindings::ffi::notcurses_options; pub type NcOptions = crate::bindings::ffi::notcurses_options;
#[deprecated] #[deprecated]
#[doc(hidden)]
pub type NotcursesOptions = NcOptions; pub type NotcursesOptions = NcOptions;
/// Do not call setlocale() /// Do not call setlocale()