echo_library/types/
mod.rs1pub use super::*;
2
3macro_rules! impl_starlark_values {
4 ($typ: ident) => {
5 starlark_simple_value!($typ);
6
7 #[starlark_value(type = stringify!($typ) )]
8 impl<'v> StarlarkValue<'v> for $typ {}
9
10 impl Display for $typ {
11 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
12 write!(f, "{:?}", self)
13 }
14 }
15 };
16}
17
18mod input;
19mod rust_types;
20mod task;
21mod workflow;
22
23pub use input::*;
24pub use rust_types::*;
25pub use task::*;
26pub use workflow::*;
27
28impl_starlark_values!(Depend);
29impl_starlark_values!(Task);
30impl_starlark_values!(Operation);
31impl_starlark_values!(Input);
32impl_starlark_values!(Workflow);