cushy/guide/guide-examples/examples/hello-world.rs
Jonathan Johnson cda13c42a2
Guide intro + KeyEvent
Also fixed virtual window's refresh handling.
2024-01-06 14:46:48 -08:00

16 lines
283 B
Rust

// ANCHOR: example
use cushy::Run;
fn main() -> cushy::Result {
"Hello, World!".run()
}
// ANCHOR_END: example
#[test]
fn book() {
fn hello_world() -> impl MakeWidget {
"Hello, World!"
}
guide_examples::book_example!(hello_world).untested_still_frame();
}