rust: show inline documentation for curated bindings

dankamongmen/clock_nanosleep_portable
joseLuís 4 years ago
parent 27628e961a
commit d82f0934b3

@ -1,20 +1,21 @@
//! bindgen generated bindings //! Curated re-exports of the bindgen generated bindings,
//!
//! The full list of bindings is under the bindgen submodule
//! //!
// //
// WARNING: DO NOT EXECUTE RUSTFMT ON THIS FILE. // WARNING: DO NOT EXECUTE RUSTFMT ON THIS FILE.
// Custom formatting permits easier maintenance. // Custom formatting permits easier maintenance.
// //
#![allow(dead_code)]
// [clippy & bindgen](https://github.com/rust-lang/rust-bindgen/issues/1470) // [clippy & bindgen](https://github.com/rust-lang/rust-bindgen/issues/1470)
#[allow(clippy::all)] #[allow(clippy::all)]
pub mod bindings { pub mod bindgen {
include!(concat!(env!("OUT_DIR"), "/bindings.rs")); include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
} }
// Miscellaneous --------------------------------------------------------------- // Miscellaneous ---------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// structs // structs
_IO_FILE, _IO_FILE,
__va_list_tag, __va_list_tag,
@ -24,7 +25,8 @@ pub use bindings::{
}; };
// align ----------------------------------------------------------------------- // align -----------------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// type definitions // type definitions
ncalign_e, ncalign_e,
@ -36,7 +38,8 @@ pub use bindings::{
}; };
// ncblit --------------------------------------------------------------------- // ncblit ---------------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// type definitions // type definitions
ncblitter_e, ncblitter_e,
@ -53,7 +56,8 @@ pub use bindings::{
}; };
// cell ------------------------------------------------------------------------ // cell ------------------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// structs // structs
cell, cell,
@ -83,13 +87,15 @@ pub use bindings::{
}; };
// channel --------------------------------------------------------------------- // channel ---------------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// constants // constants
CHANNEL_ALPHA_MASK CHANNEL_ALPHA_MASK
}; };
// ncbox ----------------------------------------------------------------------- // ncbox -----------------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// constants // constants
NCBOXCORNER_MASK, NCBOXCORNER_MASK,
NCBOXCORNER_SHIFT, NCBOXCORNER_SHIFT,
@ -104,7 +110,8 @@ pub use bindings::{
}; };
// ncdirect -------------------------------------------------------------------- // ncdirect --------------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// structs // structs
ncdirect, ncdirect,
@ -155,7 +162,8 @@ pub use bindings::{
// ncfadectx ------------------------------------------------------------------- // ncfadectx -------------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// structs // structs
ncfadectx, ncfadectx,
@ -166,13 +174,15 @@ pub use bindings::{
}; };
// ncinput --------------------------------------------------------------------- // ncinput ---------------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// structs // structs
ncinput, ncinput,
}; };
// ncloglevel ------------------------------------------------------------------ // ncloglevel ------------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// type definitions // type definitions
ncloglevel_e, ncloglevel_e,
@ -189,7 +199,8 @@ pub use bindings::{
}; };
// ncfdplane ------------------------------------------------------------------- // ncfdplane -------------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// structs // structs
ncfdplane, ncfdplane,
ncfdplane_options, ncfdplane_options,
@ -201,7 +212,8 @@ pub use bindings::{
}; };
// ncmenu ---------------------------------------------------------------------- // ncmenu ----------------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
ncmenu, ncmenu,
ncmenu_item, ncmenu_item,
ncmenu_options, ncmenu_options,
@ -228,13 +240,15 @@ pub use bindings::{
}; };
// ncmetric // ncmetric
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// structs // structs
ncmetric ncmetric
}; };
// ncmultiselector // ncmultiselector
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// structs // structs
ncmultiselector, ncmultiselector,
ncmselector_item, ncmselector_item,
@ -249,7 +263,8 @@ pub use bindings::{
}; };
// ncplane // ncplane
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
ncplane, ncplane,
// functions // functions
@ -356,7 +371,8 @@ pub use bindings::{
}; };
// ncplot // ncplot
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// structs // structs
ncdplot, // f64 ncdplot, // f64
ncuplot, // u64 ncuplot, // u64
@ -386,7 +402,8 @@ pub use bindings::{
}; };
// ncreader // ncreader
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
ncreader, ncreader,
ncreader_options, ncreader_options,
@ -411,7 +428,8 @@ pub use bindings::{
}; };
// ncreel // ncreel
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
ncreel, ncreel,
ncreel_options, ncreel_options,
@ -434,7 +452,8 @@ pub use bindings::{
}; };
// ncscale // ncscale
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// type definitions // type definitions
ncscale_e, ncscale_e,
@ -445,7 +464,8 @@ pub use bindings::{
}; };
// ncselector ------------------------------------------------------------------ // ncselector ------------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// structs // structs
ncselector, ncselector,
ncselector_item, ncselector_item,
@ -464,13 +484,15 @@ pub use bindings::{
}; };
// ncstats --------------------------------------------------------------------- // ncstats ---------------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// structs // structs
ncstats, ncstats,
}; };
// ncstyle --------------------------------------------------------------------- // ncstyle ---------------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// constants // constants
NCSTYLE_BLINK, NCSTYLE_BLINK,
NCSTYLE_BOLD, NCSTYLE_BOLD,
@ -486,7 +508,8 @@ pub use bindings::{
}; };
// nctablet -------------------------------------------------------------------- // nctablet --------------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// structs // structs
nctablet, nctablet,
@ -497,7 +520,8 @@ pub use bindings::{
}; };
// ncvisual -------------------------------------------------------------------- // ncvisual --------------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// structs // structs
ncvisual, ncvisual,
ncvisual_options, ncvisual_options,
@ -523,7 +547,8 @@ pub use bindings::{
}; };
// notcurses ------------------------------------------------------------------- // notcurses -------------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// structs // structs
notcurses, notcurses,
notcurses_options, notcurses_options,
@ -580,7 +605,8 @@ pub use bindings::{
}; };
// palette --------------------------------------------------------------------- // palette ---------------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// structs // structs
palette256, palette256,
@ -594,7 +620,8 @@ pub use bindings::{
}; };
// sig ------------------------------------------------------------------------- // sig -------------------------------------------------------------------------
pub use bindings::{ #[doc(inline)]
pub use bindgen::{
// type definitions // type definitions
sigset_t, sigset_t,

@ -7,7 +7,9 @@
pub mod bindings; pub mod bindings;
pub mod types; pub mod types;
#[doc(inline)]
pub use bindings::*; pub use bindings::*;
#[doc(inline)]
pub use types::*; pub use types::*;
#[macro_use] #[macro_use]

Loading…
Cancel
Save