devela/media/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// devela::media
//
//! Multimedia functionality.
#![doc = crate::doc_!(modules: crate; media: audio, color, draw, font, image)]
#![doc = crate::doc_!(newline)]
//
// safety
#![cfg_attr(feature = "safe_media", forbid(unsafe_code))]

#[cfg(media··)]
#[cfg_attr(feature = "nightly_doc", doc(cfg(media··)))]
mod error;
#[cfg(feature = "audio")]
#[cfg_attr(feature = "nightly_doc", doc(cfg(feature = "audio")))]
pub mod audio;
#[cfg(feature = "color")]
#[cfg_attr(feature = "nightly_doc", doc(cfg(feature = "color")))]
pub mod color;
#[cfg(feature = "draw")]
#[cfg_attr(feature = "nightly_doc", doc(cfg(feature = "draw")))]
pub mod draw;
#[cfg(feature = "font")]
#[cfg_attr(feature = "nightly_doc", doc(cfg(feature = "font")))]
pub mod font;
#[cfg(feature = "image")]
#[cfg_attr(feature = "nightly_doc", doc(cfg(feature = "image")))]
pub mod image;
#[cfg(feature = "midi")]
#[cfg_attr(feature = "nightly_doc", doc(cfg(feature = "midi")))]
pub mod midi;

crate::items! { // structural access: _pub_mods, _all, _always
    #[allow(unused)] #[doc(hidden)] #[doc(no_inline)]
    pub use {_always::*, _pub_mods::*};

    mod _pub_mods {
        #[cfg(media··)] pub use super::error::*;
        #[cfg(feature = "audio")] pub use super::audio::_all::*;
        #[cfg(feature = "color")] pub use super::color::_all::*;
        #[cfg(feature = "draw")]  pub use super::draw::_all::*;
        #[cfg(feature = "font")]  pub use super::font::_all::*;
        #[cfg(feature = "image")] pub use super::image::_all::*;
        #[cfg(feature = "midi")]  pub use super::midi::_all::*;
    }
    pub(super) mod _all { #![allow(unused)]
        #[doc(inline)]
        pub use super::_pub_mods::*;
    }
    pub(super) mod _always { #![allow(unused)]
        #[cfg(feature = "audio")] pub use super::audio::_always::*;
        #[cfg(feature = "color")] pub use super::color::_always::*;
        #[cfg(feature = "draw")]  pub use super::draw::_always::*;
        #[cfg(feature = "font")]  pub use super::font::_always::*;
        #[cfg(feature = "image")] pub use super::image::_always::*;
        #[cfg(feature = "midi")]  pub use super::midi::_always::*;
    }
}