cushy/guide/guide-examples/examples/hello-world.rs
Jonathan Johnson 15b8b3e452
Moved example generation into cushy
Undocumented and unsupported, but this allows generating example images.

This push is testing that the image makes it through CI.

Refs #125
2024-05-12 07:58:09 -07:00

16 lines
284 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!"
}
cushy::example!(hello_world).untested_still_frame();
}