mirror of
https://github.com/danbulant/cushy
synced 2026-05-20 04:38:56 +00:00
Undocumented and unsupported, but this allows generating example images. This push is testing that the image makes it through CI. Refs #125
16 lines
284 B
Rust
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();
|
|
}
|