mirror of
https://github.com/danbulant/cushy
synced 2026-06-15 20:41:19 +00:00
16 lines
298 B
Rust
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();
|
|
}
|