ghactions/
lib.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
#![doc = include_str!("../README.md")]
#![allow(dead_code)]
#![allow(unused_imports)]
#![deny(missing_docs)]

pub use ghactions_core::logging::init_logger;
#[cfg(feature = "toolcache")]
pub use ghactions_core::toolcache::ToolCache;
pub use ghactions_core::ActionTrait;
pub use ghactions_core::ActionsError;
#[cfg(feature = "log")]
pub use ghactions_core::{errorf, group, groupend, setoutput};
pub use ghactions_derive::Actions;

/// Prelude module to re-export the most commonly used types
pub mod prelude {
    // Derive Macros
    pub use ghactions_derive::Actions;

    // Traits
    pub use ghactions_core::ActionTrait;

    // Structs / Functions
    pub use ghactions_core::errors::ActionsError;

    #[cfg(feature = "toolcache")]
    pub use ghactions_core::toolcache::ToolCache;
    #[cfg(feature = "log")]
    pub use ghactions_core::{errorf, group, groupend, setoutput};
    #[cfg(feature = "log")]
    pub use log::{debug, error, info, trace, warn};
}