diff --git a/recipes/wip/demos/albedo/recipe.toml b/recipes/wip/demos/albedo/recipe.toml index f62a3782f..47a46d429 100644 --- a/recipes/wip/demos/albedo/recipe.toml +++ b/recipes/wip/demos/albedo/recipe.toml @@ -3,8 +3,7 @@ git = "https://github.com/albedo-engine/albedo" shallow_clone = true [build] -template = "custom" -script = """ -DYNAMIC_INIT -cookbook_cargo_examples gpu_picking -""" +template = "cargo" +cargoexamples = [ + "gpu_picking" +] diff --git a/recipes/wip/demos/appcui/recipe.toml b/recipes/wip/demos/appcui/recipe.toml index dda3c9275..e1ee204af 100644 --- a/recipes/wip/demos/appcui/recipe.toml +++ b/recipes/wip/demos/appcui/recipe.toml @@ -3,8 +3,7 @@ git = "https://github.com/gdt050579/AppCUI-rs" shallow_clone = true [build] -template = "custom" -script = """ -DYNAMIC_INIT -cookbook_cargo_packages examples -""" +template = "cargo" +cargopackages = [ + "examples" +] diff --git a/recipes/wip/demos/avian/recipe.toml b/recipes/wip/demos/avian/recipe.toml index b9d1755e4..273dc8a6f 100644 --- a/recipes/wip/demos/avian/recipe.toml +++ b/recipes/wip/demos/avian/recipe.toml @@ -3,8 +3,11 @@ 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 -""" +template = "cargo" +cargoexamples = [ + "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 1472d3e8f..e3b4fa110 100644 --- a/recipes/wip/demos/avt/recipe.toml +++ b/recipes/wip/demos/avt/recipe.toml @@ -3,8 +3,7 @@ git = "https://github.com/asciinema/avt" shallow_clone = true [build] -template = "custom" -script = """ -DYNAMIC_INIT -cookbook_cargo_examples text -""" +template = "cargo" +cargoexamples = [ + "text" +] diff --git a/recipes/wip/demos/bevy/recipe.toml b/recipes/wip/demos/bevy/recipe.toml index d1107a6a3..30187e208 100644 --- a/recipes/wip/demos/bevy/recipe.toml +++ b/recipes/wip/demos/bevy/recipe.toml @@ -3,8 +3,7 @@ git = "https://github.com/bevyengine/bevy" shallow_clone = true [build] -template = "custom" -script = """ -DYNAMIC_INIT -cookbook_cargo_examples hello_world -""" +template = "cargo" +cargoexamples = [ + "hello_world" +] diff --git a/recipes/wip/demos/blade/recipe.toml b/recipes/wip/demos/blade/recipe.toml index 87da1575d..5f3cac9a9 100644 --- a/recipes/wip/demos/blade/recipe.toml +++ b/recipes/wip/demos/blade/recipe.toml @@ -3,8 +3,10 @@ git = "https://github.com/kvark/blade" shallow_clone = true [build] -template = "custom" -script = """ -DYNAMIC_INIT -cookbook_cargo_examples bunnymark particle ray-query scene -""" +template = "cargo" +cargoexamples = [ + "bunnymark", + "particle", + "ray-query", + "scene", +] diff --git a/recipes/wip/demos/blitz/recipe.toml b/recipes/wip/demos/blitz/recipe.toml index a5cd21d19..069eade07 100644 --- a/recipes/wip/demos/blitz/recipe.toml +++ b/recipes/wip/demos/blitz/recipe.toml @@ -3,11 +3,11 @@ git = "https://github.com/DioxusLabs/blitz" shallow_clone = true [build] -template = "custom" +template = "cargo" +cargoexamples = [ + "url", + "markdown", +] dependencies = [ "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 0c9322d7f..726ce7740 100644 --- a/recipes/wip/demos/blockish/recipe.toml +++ b/recipes/wip/demos/blockish/recipe.toml @@ -3,8 +3,9 @@ git = "https://github.com/yazgoo/blockish" shallow_clone = true [build] -template = "custom" -script = """ -DYNAMIC_INIT -cookbook_cargo_examples euc gif tiny-skia -""" +template = "cargo" +cargoexamples = [ + "euc", + "gif", + "tiny-skia", +] diff --git a/recipes/wip/demos/blue-engine/recipe.toml b/recipes/wip/demos/blue-engine/recipe.toml index 3661719e6..dae7490aa 100644 --- a/recipes/wip/demos/blue-engine/recipe.toml +++ b/recipes/wip/demos/blue-engine/recipe.toml @@ -3,8 +3,11 @@ git = "https://github.com/AryanpurTech/BlueEngine" shallow_clone = true [build] -template = "custom" -script = """ -DYNAMIC_INIT -cookbook_cargo_examples triangle square cube rotate_around wireframe -""" +template = "cargo" +cargoexamples = [ + "triangle", + "square", + "cube", + "rotate_around", + "wireframe", +] diff --git a/recipes/wip/demos/bones/recipe.toml b/recipes/wip/demos/bones/recipe.toml index f49400ea6..e671b284e 100644 --- a/recipes/wip/demos/bones/recipe.toml +++ b/recipes/wip/demos/bones/recipe.toml @@ -3,8 +3,7 @@ git = "https://github.com/fishfolk/bones" shallow_clone = true [build] -template = "custom" -script = """ -DYNAMIC_INIT -cookbook_cargo_packages demo_hello_world -""" +template = "cargo" +cargopackages = [ + "demo_hello_world", +] diff --git a/recipes/wip/demos/colored/recipe.toml b/recipes/wip/demos/colored/recipe.toml index a2ab90029..d06a27cf5 100644 --- a/recipes/wip/demos/colored/recipe.toml +++ b/recipes/wip/demos/colored/recipe.toml @@ -3,8 +3,11 @@ 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 -""" +template = "cargo" +cargoexamples = [ + "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 347d93f4b..8b34686f6 100644 --- a/recipes/wip/demos/comfy/recipe.toml +++ b/recipes/wip/demos/comfy/recipe.toml @@ -3,10 +3,20 @@ git = "https://github.com/darthdeus/comfy" shallow_clone = true [build] -template = "custom" -script = """ -DYNAMIC_INIT -cookbook_cargo_examples animated_shapes animated_sprites animated_text \ -bloom circle colors egui fragment-shader lighting music shapes \ -single_particle sprite text -""" +template = "cargo" +cargoexamples = [ + "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 cc9a0ea6b..9faaf179e 100644 --- a/recipes/wip/demos/console-rs/recipe.toml +++ b/recipes/wip/demos/console-rs/recipe.toml @@ -3,8 +3,11 @@ 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 -""" +template = "cargo" +cargoexamples = [ + "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 d5284c63c..4128fb859 100644 --- a/recipes/wip/demos/contrast-renderer/recipe.toml +++ b/recipes/wip/demos/contrast-renderer/recipe.toml @@ -3,8 +3,7 @@ git = "https://github.com/Lichtso/contrast_renderer" shallow_clone = true [build] -template = "custom" -script = """ -DYNAMIC_INIT -cookbook_cargo_examples showcase -""" +template = "cargo" +cargoexamples = [ + "showcase", +] diff --git a/recipes/wip/demos/cubecl/recipe.toml b/recipes/wip/demos/cubecl/recipe.toml index 1b6ae9368..7c75e54aa 100644 --- a/recipes/wip/demos/cubecl/recipe.toml +++ b/recipes/wip/demos/cubecl/recipe.toml @@ -3,18 +3,8 @@ 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" \ - --package "${package}" \ - --release - --no-default-features - --wgpu - mkdir -pv "${COOKBOOK_STAGE}/usr/bin" - cp -v \ - "target/${TARGET}/release/${package}" \ - "${COOKBOOK_STAGE}/usr/bin/${package}" -""" +template = "cargo" +cargopackages = [ + "gelu" +] +cargoflags = ["--no-default-features --wgpu"] diff --git a/recipes/wip/demos/dioxus-examples/recipe.toml b/recipes/wip/demos/dioxus-examples/recipe.toml index be45275c3..76e83f34e 100644 --- a/recipes/wip/demos/dioxus-examples/recipe.toml +++ b/recipes/wip/demos/dioxus-examples/recipe.toml @@ -3,10 +3,15 @@ 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 -""" +template = "cargo" +cargoexamples = [ + "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 c18473b17..baa19b866 100644 --- a/recipes/wip/demos/doomfire/recipe.toml +++ b/recipes/wip/demos/doomfire/recipe.toml @@ -3,8 +3,7 @@ git = "https://github.com/r-marques/doomfire" shallow_clone = true [build] -template = "custom" -script = """ -DYNAMIC_INIT -cookbook_cargo_examples doomfire-minifb -""" +template = "cargo" +cargoexamples = [ + "doomfire-minifb", +] diff --git a/recipes/wip/demos/egui/recipe.toml b/recipes/wip/demos/egui/recipe.toml index 27c386766..8903904ea 100644 --- a/recipes/wip/demos/egui/recipe.toml +++ b/recipes/wip/demos/egui/recipe.toml @@ -3,8 +3,7 @@ git = "https://github.com/emilk/egui" shallow_clone = true [build] -template = "custom" -script = """ -DYNAMIC_INIT -cookbook_cargo_packages hello_world -""" +template = "cargo" +cargoexamples = [ + "hello_world" +] diff --git a/recipes/wip/demos/euc/recipe.toml b/recipes/wip/demos/euc/recipe.toml index 8b33f83d5..494ea2eb0 100644 --- a/recipes/wip/demos/euc/recipe.toml +++ b/recipes/wip/demos/euc/recipe.toml @@ -3,9 +3,11 @@ git = "https://github.com/zesterer/euc" shallow_clone = true [build] -template = "custom" -script = """ -DYNAMIC_INIT -cookbook_cargo_examples spinning_cube teapot texture_mapping \ -triangle wireframes -""" +template = "cargo" +cargoexamples = [ + "spinning_cube", + "teapot", + "texture_mapping", + "triangle", + "wireframes", +] diff --git a/recipes/wip/demos/feoxdb/recipe.toml b/recipes/wip/demos/feoxdb/recipe.toml index 9cb46103c..7f119895c 100644 --- a/recipes/wip/demos/feoxdb/recipe.toml +++ b/recipes/wip/demos/feoxdb/recipe.toml @@ -3,8 +3,8 @@ git = "https://github.com/mehrantsi/FeOxDB" shallow_clone = true [build] -template = "custom" -script = """ -DYNAMIC_INIT -cookbook_cargo_examples basic_usage deterministic_test -""" +template = "cargo" +cargoexamples = [ + "basic_usage", + "deterministic_test", +] diff --git a/recipes/wip/demos/ferris-says/recipe.toml b/recipes/wip/demos/ferris-says/recipe.toml index ca071e4e1..7175d4998 100644 --- a/recipes/wip/demos/ferris-says/recipe.toml +++ b/recipes/wip/demos/ferris-says/recipe.toml @@ -3,8 +3,7 @@ git = "https://github.com/rust-lang/ferris-says" shallow_clone = true [build] -template = "custom" -script = """ -DYNAMIC_INIT -cookbook_cargo_packages fsays -""" +template = "cargo" +cargopackages = [ + "fsays", +] diff --git a/recipes/wip/demos/firewheel/recipe.toml b/recipes/wip/demos/firewheel/recipe.toml index f97d8079c..f3f285fac 100644 --- a/recipes/wip/demos/firewheel/recipe.toml +++ b/recipes/wip/demos/firewheel/recipe.toml @@ -3,8 +3,8 @@ git = "https://github.com/BillyDM/firewheel" shallow_clone = true [build] -template = "custom" -script = """ -DYNAMIC_INIT -cookbook_cargo_examples beep_test play_sample -""" +template = "cargo" +cargoexamples = [ + "beep_test", + "play_sample", +]