kitgit

tirbofish/dropbear · commit

e9c9f39d9b438a559bb12d6c69a35a0e35948d62

refactor: got redback-runtime compilable

Unverified

Thribhu K <4tkbytes@pm.me> · 2026-02-17 06:20

view full diff

diff --git a/Cargo.toml b/Cargo.toml
index 1e5e384..ca1cbaa 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -87,6 +87,7 @@ bitflags = "2.10"
 features = "0.10"
 puffin_http = "0.16"
 dyn-clone = "1.0"
+downcast-rs = "2.0"
 
 [workspace.dependencies.image]
 version = "0.24"
diff --git a/crates/eucalyptus-core/Cargo.toml b/crates/eucalyptus-core/Cargo.toml
index bf8ce15..d91d577 100644
--- a/crates/eucalyptus-core/Cargo.toml
+++ b/crates/eucalyptus-core/Cargo.toml
@@ -46,6 +46,7 @@ bytemuck.workspace = true
 thiserror.workspace = true
 combine.workspace = true
 dyn-clone.workspace = true
+downcast-rs.workspace = true
 
 [features]
 default = []
diff --git a/crates/eucalyptus-core/src/animation/mod.rs b/crates/eucalyptus-core/src/animation/mod.rs
index 3d4303b..ef925a1 100644
--- a/crates/eucalyptus-core/src/animation/mod.rs
+++ b/crates/eucalyptus-core/src/animation/mod.rs
@@ -30,8 +30,11 @@ impl Component for AnimationComponent {
         Ok((Self::default(), ))
     }
 
-    async fn init(ser: Self::SerializedForm, _graphics: Arc<SharedGraphicsContext>) -> anyhow::Result<Self::RequiredComponentTypes> {
-        Ok((ser, ))
+    fn init<'a>(
+        ser: &'a Self::SerializedForm,
+        _graphics: Arc<SharedGraphicsContext>,
+    ) -> std::pin::Pin<Box<dyn std::future::Future<Output = anyhow::Result<Self::RequiredComponentTypes>> + Send + 'a>> {
+        Box::pin(async move { Ok((ser.clone(), )) })
     }
 
     fn update_component(&mut self, world: &World, entity: Entity, dt: f32, graphics: Arc<SharedGraphicsContext>) {
diff --git a/crates/eucalyptus-core/src/camera.rs b/crates/eucalyptus-core/src/camera.rs
index 5f9a49b..6e38fe5 100644
--- a/crates/eucalyptus-core/src/camera.rs
+++ b/crates/eucalyptus-core/src/camera.rs
@@ -45,10 +45,18 @@ impl Component for Camera {
         Ok((cam, comp))
     }
 

Large diffs are not rendered by default. Showing the first 50 of 1820 lines. Show full diff