feat: update with web assembly components
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-12-01 22:21:17 +01:00
parent 2387a70778
commit db4cc98643
14 changed files with 1500 additions and 25 deletions

View File

@@ -1,16 +1,23 @@
use apt::AptTask;
use plugin_task::PluginTask;
use super::task::IntoTask;
use super::{plugins::PluginStore, task::IntoTask};
pub struct Plan {}
pub mod apt;
pub mod plugin_task;
pub struct Plan {
store: PluginStore,
}
impl Plan {
pub fn new() -> Self {
Self {}
pub fn new(store: PluginStore) -> Self {
Self { store }
}
pub async fn tasks(&self) -> anyhow::Result<Vec<impl IntoTask>> {
Ok(vec![AptTask::new()])
Ok(vec![
AptTask::new().into_task(),
PluginTask::new("alloy@0.1.0", self.store.clone()).into_task(),
])
}
}
pub mod apt;