From aaed7c3995ff92fce22239dda0a545d5a7ae1bf8 Mon Sep 17 00:00:00 2001 From: Ribbon Date: Fri, 13 Feb 2026 19:57:07 -0300 Subject: [PATCH] Improve many demo recipes --- recipes/wip/demos/albedo/recipe.toml | 2 ++ recipes/wip/demos/appcui/recipe.toml | 2 ++ recipes/wip/demos/avian/recipe.toml | 4 +++- recipes/wip/demos/avt/recipe.toml | 2 ++ recipes/wip/demos/bevy/recipe.toml | 2 ++ recipes/wip/demos/blade/recipe.toml | 2 ++ recipes/wip/demos/blitz/recipe.toml | 4 +++- recipes/wip/demos/blockish/recipe.toml | 2 ++ recipes/wip/demos/blockishfire/recipe.toml | 1 + recipes/wip/demos/blue-engine/recipe.toml | 2 ++ recipes/wip/demos/bones/recipe.toml | 2 ++ recipes/wip/demos/colored/recipe.toml | 2 ++ recipes/wip/demos/comfy/recipe.toml | 6 +++++- recipes/wip/demos/console-rs/recipe.toml | 2 ++ recipes/wip/demos/contrast-renderer/recipe.toml | 2 ++ recipes/wip/demos/cubecl/recipe.toml | 2 ++ recipes/wip/demos/dioxus-examples/recipe.toml | 2 ++ recipes/wip/demos/doomfire/recipe.toml | 2 ++ recipes/wip/demos/egui/recipe.toml | 2 ++ recipes/wip/demos/euc/recipe.toml | 5 ++++- recipes/wip/demos/feoxdb/recipe.toml | 2 ++ recipes/wip/demos/ferris-says/recipe.toml | 2 ++ recipes/wip/demos/firewheel/recipe.toml | 2 ++ recipes/wip/demos/firework-rs/recipe.toml | 12 +++--------- recipes/wip/demos/fonterator/recipe.toml | 6 ++++-- recipes/wip/demos/fractal-rs/recipe.toml | 2 ++ recipes/wip/demos/freya/recipe.toml | 4 +++- recipes/wip/demos/fundsp/recipe.toml | 7 +++++-- recipes/wip/demos/funutd/recipe.toml | 2 ++ recipes/wip/demos/fyrox/recipe.toml | 2 ++ recipes/wip/demos/genpdf-rs/recipe.toml | 2 ++ 31 files changed, 75 insertions(+), 18 deletions(-) diff --git a/recipes/wip/demos/albedo/recipe.toml b/recipes/wip/demos/albedo/recipe.toml index 2b11feef0..f62a3782f 100644 --- a/recipes/wip/demos/albedo/recipe.toml +++ b/recipes/wip/demos/albedo/recipe.toml @@ -1,8 +1,10 @@ #TODO nanorand crate error [source] git = "https://github.com/albedo-engine/albedo" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples gpu_picking """ diff --git a/recipes/wip/demos/appcui/recipe.toml b/recipes/wip/demos/appcui/recipe.toml index 53a0a4243..dda3c9275 100644 --- a/recipes/wip/demos/appcui/recipe.toml +++ b/recipes/wip/demos/appcui/recipe.toml @@ -1,8 +1,10 @@ #TODO compiled but not tested [source] git = "https://github.com/gdt050579/AppCUI-rs" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_packages examples """ diff --git a/recipes/wip/demos/avian/recipe.toml b/recipes/wip/demos/avian/recipe.toml index 7343d2b6d..b9d1755e4 100644 --- a/recipes/wip/demos/avian/recipe.toml +++ b/recipes/wip/demos/avian/recipe.toml @@ -1,8 +1,10 @@ -#TODO requires rustc 1.82.0 +#TODO not compiled or tested [source] git = "https://github.com/Jondolf/avian" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples chain_2d many_shapes ray_caster chain_3d cubes """ diff --git a/recipes/wip/demos/avt/recipe.toml b/recipes/wip/demos/avt/recipe.toml index 39e7f7163..1472d3e8f 100644 --- a/recipes/wip/demos/avt/recipe.toml +++ b/recipes/wip/demos/avt/recipe.toml @@ -1,8 +1,10 @@ #TODO compiled but not tested [source] git = "https://github.com/asciinema/avt" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples text """ diff --git a/recipes/wip/demos/bevy/recipe.toml b/recipes/wip/demos/bevy/recipe.toml index a314e0725..d1107a6a3 100644 --- a/recipes/wip/demos/bevy/recipe.toml +++ b/recipes/wip/demos/bevy/recipe.toml @@ -1,8 +1,10 @@ #TODO async-io crate error [source] git = "https://github.com/bevyengine/bevy" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples hello_world """ diff --git a/recipes/wip/demos/blade/recipe.toml b/recipes/wip/demos/blade/recipe.toml index 15c6c1f42..87da1575d 100644 --- a/recipes/wip/demos/blade/recipe.toml +++ b/recipes/wip/demos/blade/recipe.toml @@ -1,8 +1,10 @@ #TODO x11rb and rustix crates error [source] git = "https://github.com/kvark/blade" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples bunnymark particle ray-query scene """ diff --git a/recipes/wip/demos/blitz/recipe.toml b/recipes/wip/demos/blitz/recipe.toml index a11aeeb65..a5cd21d19 100644 --- a/recipes/wip/demos/blitz/recipe.toml +++ b/recipes/wip/demos/blitz/recipe.toml @@ -1,11 +1,13 @@ #TODO fontique crate error [source] git = "https://github.com/DioxusLabs/blitz" +shallow_clone = true [build] template = "custom" dependencies = [ - "openssl1", + "openssl3", ] script = """ +DYNAMIC_INIT cookbook_cargo_examples url markdown """ diff --git a/recipes/wip/demos/blockish/recipe.toml b/recipes/wip/demos/blockish/recipe.toml index 30fdd578a..0c9322d7f 100644 --- a/recipes/wip/demos/blockish/recipe.toml +++ b/recipes/wip/demos/blockish/recipe.toml @@ -1,8 +1,10 @@ #TODO glutin crate error [source] git = "https://github.com/yazgoo/blockish" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples euc gif tiny-skia """ diff --git a/recipes/wip/demos/blockishfire/recipe.toml b/recipes/wip/demos/blockishfire/recipe.toml index 120cabefe..2239621a4 100644 --- a/recipes/wip/demos/blockishfire/recipe.toml +++ b/recipes/wip/demos/blockishfire/recipe.toml @@ -1,5 +1,6 @@ #TODO outdated redox_syscall crate (cargo update don't fix it) [source] git = "https://github.com/yazgoo/blockishfire" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/demos/blue-engine/recipe.toml b/recipes/wip/demos/blue-engine/recipe.toml index 477d74702..3661719e6 100644 --- a/recipes/wip/demos/blue-engine/recipe.toml +++ b/recipes/wip/demos/blue-engine/recipe.toml @@ -1,8 +1,10 @@ #TODO compiled but not tested [source] git = "https://github.com/AryanpurTech/BlueEngine" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples triangle square cube rotate_around wireframe """ diff --git a/recipes/wip/demos/bones/recipe.toml b/recipes/wip/demos/bones/recipe.toml index cf348e622..f49400ea6 100644 --- a/recipes/wip/demos/bones/recipe.toml +++ b/recipes/wip/demos/bones/recipe.toml @@ -1,8 +1,10 @@ #TODO iroh-quinn-udp crate error [source] git = "https://github.com/fishfolk/bones" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_packages demo_hello_world """ diff --git a/recipes/wip/demos/colored/recipe.toml b/recipes/wip/demos/colored/recipe.toml index 73cc848f3..a2ab90029 100644 --- a/recipes/wip/demos/colored/recipe.toml +++ b/recipes/wip/demos/colored/recipe.toml @@ -1,8 +1,10 @@ #TODO compiled but not tested [source] git = "https://github.com/colored-rs/colored" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples control custom_colors dynamic_colors most_simple nested_colors """ diff --git a/recipes/wip/demos/comfy/recipe.toml b/recipes/wip/demos/comfy/recipe.toml index 23b165575..347d93f4b 100644 --- a/recipes/wip/demos/comfy/recipe.toml +++ b/recipes/wip/demos/comfy/recipe.toml @@ -1,8 +1,12 @@ #TODO compiled but not tested [source] git = "https://github.com/darthdeus/comfy" +shallow_clone = true [build] template = "custom" script = """ -cookbook_cargo_examples animated_shapes animated_sprites animated_text bloom circle colors egui fragment-shader lighting music shapes single_particle sprite text +DYNAMIC_INIT +cookbook_cargo_examples animated_shapes animated_sprites animated_text \ +bloom circle colors egui fragment-shader lighting music shapes \ +single_particle sprite text """ diff --git a/recipes/wip/demos/console-rs/recipe.toml b/recipes/wip/demos/console-rs/recipe.toml index 874259927..cc9a0ea6b 100644 --- a/recipes/wip/demos/console-rs/recipe.toml +++ b/recipes/wip/demos/console-rs/recipe.toml @@ -1,8 +1,10 @@ #TODO compiled but not tested [source] git = "https://github.com/console-rs/console" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples colors colors256 cursor_at keyboard term """ diff --git a/recipes/wip/demos/contrast-renderer/recipe.toml b/recipes/wip/demos/contrast-renderer/recipe.toml index a2b8426e6..d5284c63c 100644 --- a/recipes/wip/demos/contrast-renderer/recipe.toml +++ b/recipes/wip/demos/contrast-renderer/recipe.toml @@ -1,8 +1,10 @@ #TODO compiled but not tested [source] git = "https://github.com/Lichtso/contrast_renderer" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples showcase """ diff --git a/recipes/wip/demos/cubecl/recipe.toml b/recipes/wip/demos/cubecl/recipe.toml index 94699865e..1b6ae9368 100644 --- a/recipes/wip/demos/cubecl/recipe.toml +++ b/recipes/wip/demos/cubecl/recipe.toml @@ -1,9 +1,11 @@ #TODO cubecl-macros crate error [source] git = "https://github.com/tracel-ai/cubecl" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT package=gelu "${COOKBOOK_CARGO}" build \ --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \ diff --git a/recipes/wip/demos/dioxus-examples/recipe.toml b/recipes/wip/demos/dioxus-examples/recipe.toml index ec46366b9..be45275c3 100644 --- a/recipes/wip/demos/dioxus-examples/recipe.toml +++ b/recipes/wip/demos/dioxus-examples/recipe.toml @@ -1,9 +1,11 @@ #TODO wry crate error [source] git = "https://github.com/DioxusLabs/dioxus" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples calculator clock counters \ file_explorer hello_world multiwindow popup window_event \ window_zoom diff --git a/recipes/wip/demos/doomfire/recipe.toml b/recipes/wip/demos/doomfire/recipe.toml index ab79f6a30..c18473b17 100644 --- a/recipes/wip/demos/doomfire/recipe.toml +++ b/recipes/wip/demos/doomfire/recipe.toml @@ -1,8 +1,10 @@ #TODO discover how to build the "doomfire-minifb" example [source] git = "https://github.com/r-marques/doomfire" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples doomfire-minifb """ diff --git a/recipes/wip/demos/egui/recipe.toml b/recipes/wip/demos/egui/recipe.toml index d4a6089b0..27c386766 100644 --- a/recipes/wip/demos/egui/recipe.toml +++ b/recipes/wip/demos/egui/recipe.toml @@ -1,8 +1,10 @@ #TODO glutin crate error [source] git = "https://github.com/emilk/egui" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_packages hello_world """ diff --git a/recipes/wip/demos/euc/recipe.toml b/recipes/wip/demos/euc/recipe.toml index da60f8a54..8b33f83d5 100644 --- a/recipes/wip/demos/euc/recipe.toml +++ b/recipes/wip/demos/euc/recipe.toml @@ -1,8 +1,11 @@ #TODO minifb crate error [source] git = "https://github.com/zesterer/euc" +shallow_clone = true [build] template = "custom" script = """ -cookbook_cargo_examples spinning_cube teapot texture_mapping triangle wireframes +DYNAMIC_INIT +cookbook_cargo_examples spinning_cube teapot texture_mapping \ +triangle wireframes """ diff --git a/recipes/wip/demos/feoxdb/recipe.toml b/recipes/wip/demos/feoxdb/recipe.toml index 84b8e46c4..9cb46103c 100644 --- a/recipes/wip/demos/feoxdb/recipe.toml +++ b/recipes/wip/demos/feoxdb/recipe.toml @@ -1,8 +1,10 @@ #TODO not compiled or tested [source] git = "https://github.com/mehrantsi/FeOxDB" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples basic_usage deterministic_test """ diff --git a/recipes/wip/demos/ferris-says/recipe.toml b/recipes/wip/demos/ferris-says/recipe.toml index 4bf90364e..ca071e4e1 100644 --- a/recipes/wip/demos/ferris-says/recipe.toml +++ b/recipes/wip/demos/ferris-says/recipe.toml @@ -1,8 +1,10 @@ #TODO compiled but not tested [source] git = "https://github.com/rust-lang/ferris-says" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_packages fsays """ diff --git a/recipes/wip/demos/firewheel/recipe.toml b/recipes/wip/demos/firewheel/recipe.toml index e79a248ad..f97d8079c 100644 --- a/recipes/wip/demos/firewheel/recipe.toml +++ b/recipes/wip/demos/firewheel/recipe.toml @@ -1,8 +1,10 @@ #TODO not compiled or tested [source] git = "https://github.com/BillyDM/firewheel" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples beep_test play_sample """ diff --git a/recipes/wip/demos/firework-rs/recipe.toml b/recipes/wip/demos/firework-rs/recipe.toml index f1bd17a6b..605134a92 100644 --- a/recipes/wip/demos/firework-rs/recipe.toml +++ b/recipes/wip/demos/firework-rs/recipe.toml @@ -1,17 +1,11 @@ #TODO fix the script [source] git = "https://github.com/Wayoung7/firework-rs" +shallow_clone = true [build] template = "custom" script = """ -package=firework-rs -"${COOKBOOK_CARGO}" build \ - --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \ - --package "${package}" \ - --release - mkdir -pv "${COOKBOOK_STAGE}/usr/bin" - cp -v \ - "target/${TARGET}/release/${package}" \ - "${COOKBOOK_STAGE}/usr/bin/${package}" +DYNAMIC_INIT +cookbook_cargo_packages firework-rs cookbook_cargo_examples fountain heart vortex """ diff --git a/recipes/wip/demos/fonterator/recipe.toml b/recipes/wip/demos/fonterator/recipe.toml index ae463a62e..ccbbfec10 100644 --- a/recipes/wip/demos/fonterator/recipe.toml +++ b/recipes/wip/demos/fonterator/recipe.toml @@ -1,9 +1,11 @@ -#TODO write a script that can use multiple examples and the "monospace-font" flag +#TODO not compiled or tested [source] git = "https://github.com/ardaku/fonterator" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT recipe="$(basename "${COOKBOOK_RECIPE}")" examples="main directions image raster" for example in "${examples}" @@ -12,7 +14,7 @@ for example in "${examples}" --manifest-path "${COOKBOOK_SOURCE}/${PACKAGE_PATH}/Cargo.toml" \ --example "${example}" \ --release \ - --features "monospace-font" + --features "monospace-font" mkdir -pv "${COOKBOOK_STAGE}/usr/bin" cp -v \ "target/${TARGET}/${build_type}/examples/${example}" \ diff --git a/recipes/wip/demos/fractal-rs/recipe.toml b/recipes/wip/demos/fractal-rs/recipe.toml index f31f377d3..8d829247f 100644 --- a/recipes/wip/demos/fractal-rs/recipe.toml +++ b/recipes/wip/demos/fractal-rs/recipe.toml @@ -1,8 +1,10 @@ #TODO glutin crate error [source] git = "https://github.com/aetherknight/fractal-rs" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_packages fractal-piston """ diff --git a/recipes/wip/demos/freya/recipe.toml b/recipes/wip/demos/freya/recipe.toml index b6dbaf889..43bc47694 100644 --- a/recipes/wip/demos/freya/recipe.toml +++ b/recipes/wip/demos/freya/recipe.toml @@ -1,13 +1,15 @@ #TODO not compiled or tested [source] git = "https://github.com/marc2332/freya" +shallow_clone = true [build] template = "custom" dependencies = [ - "openssl1", + "openssl3", "gtk3", ] script = """ +DYNAMIC_INIT cookbook_cargo_examples animated_position animated_tabs animation \ button camera checkbox clock counter drag drag_drop dynamic_theme \ file_explorer frameless_window gradient graph highlight image image_viewer \ diff --git a/recipes/wip/demos/fundsp/recipe.toml b/recipes/wip/demos/fundsp/recipe.toml index 3ddd0d97a..d6deeecb0 100644 --- a/recipes/wip/demos/fundsp/recipe.toml +++ b/recipes/wip/demos/fundsp/recipe.toml @@ -1,11 +1,14 @@ -#TODO can't find the fontconfig files +#TODO not compiled or tested [source] git = "https://github.com/SamiPerttu/fundsp" +shallow_clone = true [build] template = "custom" dependencies = [ "fontconfig", ] script = """ -cookbook_cargo_examples beep file grain grain2 keys network optimize peek plot sequence type +DYNAMIC_INIT +cookbook_cargo_examples beep file grain grain2 keys network \ +optimize peek plot sequence type """ diff --git a/recipes/wip/demos/funutd/recipe.toml b/recipes/wip/demos/funutd/recipe.toml index cafac2540..af17040ba 100644 --- a/recipes/wip/demos/funutd/recipe.toml +++ b/recipes/wip/demos/funutd/recipe.toml @@ -1,8 +1,10 @@ #TODO rfd crate error [source] git = "https://github.com/SamiPerttu/funutd" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples editor """ diff --git a/recipes/wip/demos/fyrox/recipe.toml b/recipes/wip/demos/fyrox/recipe.toml index ba3c1057b..11c643f4c 100644 --- a/recipes/wip/demos/fyrox/recipe.toml +++ b/recipes/wip/demos/fyrox/recipe.toml @@ -1,9 +1,11 @@ #TODO glutin crate error [source] git = "https://github.com/FyroxEngine/Fyrox-demo-projects" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT COOKBOOK_SOURCE="${COOKBOOK_SOURCE}/ui" cookbook_cargo_packages executor """ diff --git a/recipes/wip/demos/genpdf-rs/recipe.toml b/recipes/wip/demos/genpdf-rs/recipe.toml index 20fc1c827..4032da865 100644 --- a/recipes/wip/demos/genpdf-rs/recipe.toml +++ b/recipes/wip/demos/genpdf-rs/recipe.toml @@ -1,8 +1,10 @@ #TODO not compiled or tested [source] git = "https://git.sr.ht/~ireas/genpdf-rs" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples demo """