cushy/guide/guide-examples/examples/hello-world.rs
2024-01-07 15:57:23 -08:00

16 lines
298 B
Rust

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