Skip to content

Commit cfcf9d1

Browse files
committed
trigger: Re-export a few things to ease trigger development
Signed-off-by: Lann Martin <[email protected]>
1 parent a22119c commit cfcf9d1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

crates/trigger/src/lib.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ pub mod loader;
44
use std::future::Future;
55

66
use clap::Args;
7-
use spin_core::Linker;
8-
use spin_factors::RuntimeFactors;
7+
pub use spin_core::Linker;
8+
pub use spin_factors::RuntimeFactors;
99
use spin_factors_executor::{FactorsExecutorApp, FactorsInstanceBuilder};
1010

11+
pub use anyhow;
12+
pub use clap::Parser;
1113
pub use spin_app::App;
1214

1315
/// Type alias for a [`spin_factors_executor::FactorsExecutorApp`] specialized to a [`Trigger`].
@@ -21,7 +23,7 @@ pub type TriggerInstanceBuilder<'a, T, F> =
2123
pub type Store<T, F> = spin_core::Store<TriggerInstanceState<T, F>>;
2224

2325
/// Type alias for [`spin_factors_executor::InstanceState`] specialized to a [`Trigger`].
24-
type TriggerInstanceState<T, F> = spin_factors_executor::InstanceState<
26+
pub type TriggerInstanceState<T, F> = spin_factors_executor::InstanceState<
2527
<F as RuntimeFactors>::InstanceState,
2628
<T as Trigger<F>>::InstanceState,
2729
>;

0 commit comments

Comments
 (0)