devela/sys/env/
reexports.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
// devela::sys::env::reexports
//
//! Reexported items from `core`.
//

use crate::code::reexport;

reexport! { rust: core,
    doc: "Optionally inspects an environment variable at compile time.",
    option_env
}

// NOTE: the macro and the module have the same name
//
/// <span class='stab portability' title='re-exported from rust&#39;s `core`'>`core`</span>
/// Inspects an environment variable at compile time.
///
#[doc = "*Re-exported from [`core::env`][macro@crate::_core::env]*."]
#[doc = "\n\n---"]
///
/// The reason of the `_` suffix is to avoid conflicting with Rust's prelude
/// when glob importing from this crate. Since this macro has the same name
/// as its sibling module `core::env`, in order to be able to re-export
/// only the macro we have to wrap it with our own.
#[macro_export]
#[cfg_attr(cargo_primary_package, doc(hidden))]
macro_rules! env_ { ($($tt:tt)*) => { core::env![$($tt)*] } }
#[doc(inline)]
pub use env_;