Skip to content

Commit

Permalink
trigger: Re-export a few things to ease trigger development
Browse files Browse the repository at this point in the history
Signed-off-by: Lann Martin <[email protected]>
  • Loading branch information
lann committed Sep 25, 2024
1 parent a22119c commit cfcf9d1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/trigger/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ pub mod loader;
use std::future::Future;

use clap::Args;
use spin_core::Linker;
use spin_factors::RuntimeFactors;
pub use spin_core::Linker;
pub use spin_factors::RuntimeFactors;
use spin_factors_executor::{FactorsExecutorApp, FactorsInstanceBuilder};

pub use anyhow;
pub use clap::Parser;
pub use spin_app::App;

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

/// Type alias for [`spin_factors_executor::InstanceState`] specialized to a [`Trigger`].
type TriggerInstanceState<T, F> = spin_factors_executor::InstanceState<
pub type TriggerInstanceState<T, F> = spin_factors_executor::InstanceState<
<F as RuntimeFactors>::InstanceState,
<T as Trigger<F>>::InstanceState,
>;
Expand Down

0 comments on commit cfcf9d1

Please sign in to comment.