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
pub use super::*;

macro_rules! impl_starlark_values {
    ($typ: ident) => {
        starlark_simple_value!($typ);

        #[starlark_value(type = stringify!($typ) )]
        impl<'v> StarlarkValue<'v> for $typ {}

        impl Display for $typ {
            fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
                write!(f, "{:?}", self)
            }
        }
    };
}

mod input;
mod rust_types;
mod task;
mod workflow;

pub use input::*;
pub use rust_types::*;
pub use task::*;
pub use workflow::*;

impl_starlark_values!(Depend);
impl_starlark_values!(Task);
impl_starlark_values!(Operation);
impl_starlark_values!(Input);
impl_starlark_values!(Workflow);