v0.1.0-pre.046

This commit is contained in:
2026-07-25 19:45:35 +02:00
parent 01764a485a
commit 417536e4c4
17 changed files with 1491 additions and 57 deletions

View File

@@ -1,5 +1,5 @@
// file: kb-app-demo-desktop/src/splash.rs
// version: 1
// version: 2
//! Splash-window payloads and startup sequencing helpers.
@@ -15,7 +15,10 @@ pub(crate) const SPLASH_CLOSE_WAIT_MS: u64 = 3100;
/// Command sent from Rust to the splash frontend.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize, TS)]
#[ts(export, export_to = "../frontend/ts/bindings/kb_app_demo_desktop/splash/SplashOrder.ts")]
#[ts(
export,
export_to = "../frontend/ts/bindings/kb_app_demo_desktop/splash/SplashOrder.ts"
)]
pub(crate) struct SplashOrder {
/// Command name.
pub(crate) order: std::string::String,
@@ -77,8 +80,8 @@ mod tests {
#[test]
fn splash_timing_is_ordered() {
assert!(super::SPLASH_MINIMUM_MS > 0);
assert!(super::SPLASH_FADE_MS > 0);
assert!(super::SPLASH_CLOSE_WAIT_MS >= u64::from(super::SPLASH_FADE_MS));
assert!(crate::SPLASH_MINIMUM_MS > 0);
assert!(crate::SPLASH_FADE_MS > 0);
assert!(crate::SPLASH_CLOSE_WAIT_MS >= u64::from(crate::SPLASH_FADE_MS));
}
}