StratoSDK is a framework with a declarative approach similar to Flutter/React, written and designed entirely for Rust.
| 1 | use futures_util::future::LocalBoxFuture; |
| 2 | |
| 3 | use crate::{assets::AssetProvider, integration::TestDriver, platform, AppContext}; |
| 4 | |
| 5 | pub struct App; |
| 6 | |
| 7 | impl App { |
| 8 | #[allow(dead_code)] |
| 9 | pub(in crate::platform) fn new( |
| 10 | _callbacks: platform::app::AppCallbacks, |
| 11 | _assets: Box<dyn AssetProvider>, |
| 12 | _test_driver: Option<&TestDriver>, |
| 13 | ) -> Self { |
| 14 | unimplemented!(); |
| 15 | } |
| 16 | |
| 17 | #[allow(dead_code)] |
| 18 | pub(in crate::platform) fn run( |
| 19 | self, |
| 20 | _init_fn: impl FnOnce(&mut AppContext, LocalBoxFuture<'static, crate::App>), |
| 21 | ) { |
| 22 | unimplemented!(); |
| 23 | } |
| 24 | } |
| 25 |