diff --git a/recipes/wip/demos/gfx-shader-watch/recipe.toml b/recipes/wip/demos/gfx-shader-watch/recipe.toml index 22564a19..f6bb1f47 100644 --- a/recipes/wip/demos/gfx-shader-watch/recipe.toml +++ b/recipes/wip/demos/gfx-shader-watch/recipe.toml @@ -1,8 +1,10 @@ #TODO glutin crate error [source] git = "https://github.com/alexheretic/gfx-shader-watch" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples watch-shaders """ diff --git a/recipes/wip/demos/ggez/recipe.toml b/recipes/wip/demos/ggez/recipe.toml index 542ad8e5..546e1b32 100644 --- a/recipes/wip/demos/ggez/recipe.toml +++ b/recipes/wip/demos/ggez/recipe.toml @@ -1,8 +1,11 @@ -#TODO require rustc 1.81 +#TODO not compiled or tested [source] git = "https://github.com/ggez/ggez" +shallow_clone = true [build] template = "custom" script = """ -cookbook_cargo_examples 02_hello_world 04_snake cube hello_canvas input_test shader shadows sounds text vertex_shader +DYNAMIC_INIT +cookbook_cargo_examples 02_hello_world 04_snake cube \ +hello_canvas input_test shader shadows sounds text vertex_shader """ diff --git a/recipes/wip/demos/globe-rs/recipe.toml b/recipes/wip/demos/globe-rs/recipe.toml index 624312f7..cc14a04f 100644 --- a/recipes/wip/demos/globe-rs/recipe.toml +++ b/recipes/wip/demos/globe-rs/recipe.toml @@ -1,9 +1,11 @@ #TODO update the mio crate version (after cargo update) [source] git = "https://github.com/adamsky/globe" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_packages globe-cli mv "${COOKBOOK_STAGE}/usr/bin/globe" "${COOKBOOK_STAGE}/usr/bin/globe-rs" """ diff --git a/recipes/wip/demos/hotline/recipe.toml b/recipes/wip/demos/hotline/recipe.toml index d6cae287..6b2ca40e 100644 --- a/recipes/wip/demos/hotline/recipe.toml +++ b/recipes/wip/demos/hotline/recipe.toml @@ -1,8 +1,10 @@ #TODO hot-lib-reloader crate error [source] git = "https://github.com/polymonster/hotline" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples triangle """ diff --git a/recipes/wip/demos/iced-7guis/recipe.toml b/recipes/wip/demos/iced-7guis/recipe.toml index 655cea56..40d0ad9b 100644 --- a/recipes/wip/demos/iced-7guis/recipe.toml +++ b/recipes/wip/demos/iced-7guis/recipe.toml @@ -1,5 +1,6 @@ -#TODO require rustc 1.80.1 +#TODO not compiled or tested [source] git = "https://github.com/dcampbell24/iced_7guis" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/demos/if-watch/recipe.toml b/recipes/wip/demos/if-watch/recipe.toml index be84f4aa..3e507a6a 100644 --- a/recipes/wip/demos/if-watch/recipe.toml +++ b/recipes/wip/demos/if-watch/recipe.toml @@ -1,8 +1,10 @@ #TODO require the "smol" feature flag [source] git = "https://github.com/mxinden/if-watch" +shallow_clone = true [build] template = "custom" script = """ -cookbook_cargo_examples if_watch +DYNAMIC_INIT +cookbook_cargo --example if_watch -F smol """ diff --git a/recipes/wip/demos/imgui-examples/recipe.toml b/recipes/wip/demos/imgui-examples/recipe.toml index 560d8ce6..ace76bd3 100644 --- a/recipes/wip/demos/imgui-examples/recipe.toml +++ b/recipes/wip/demos/imgui-examples/recipe.toml @@ -1,6 +1,10 @@ -#TODO build sdl2 opengl examples, see: https://github.com/ocornut/imgui/pull/3027 +#TODO not compiled or tested +#TODO discover minimum dependencies from cmake log +# pull request: https://github.com/ocornut/imgui/pull/3027 [source] git = "https://github.com/Qix-/imgui" branch = "cmake" +shallow_clone = true [build] template = "cmake" +#dependencies = ["sdl2"] diff --git a/recipes/wip/demos/iocraft/recipe.toml b/recipes/wip/demos/iocraft/recipe.toml index 18ad8f48..e60170b9 100644 --- a/recipes/wip/demos/iocraft/recipe.toml +++ b/recipes/wip/demos/iocraft/recipe.toml @@ -1,9 +1,11 @@ #TODO not compiled or tested [source] git = "https://github.com/ccbrown/iocraft" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples borders calculator counter \ fullscreen hello_world overlap progress_bar scrolling \ table use_input use_output weather diff --git a/recipes/wip/demos/kira/recipe.toml b/recipes/wip/demos/kira/recipe.toml index 0d5a8bc9..cf0c4f75 100644 --- a/recipes/wip/demos/kira/recipe.toml +++ b/recipes/wip/demos/kira/recipe.toml @@ -1,8 +1,11 @@ #TODO ahash crate error [source] git = "https://github.com/tesselode/kira-examples" +shallow_clone = true [build] template = "custom" script = """ -cookbook_cargo_packages dynamic-music ghost-noise metronome score-counter spatial-audio simple-sound-playback +DYNAMIC_INIT +cookbook_cargo_packages dynamic-music ghost-noise metronome \ +score-counter spatial-audio simple-sound-playback """ diff --git a/recipes/wip/demos/kiss3d/recipe.toml b/recipes/wip/demos/kiss3d/recipe.toml index 8d957859..f38e2192 100644 --- a/recipes/wip/demos/kiss3d/recipe.toml +++ b/recipes/wip/demos/kiss3d/recipe.toml @@ -1,8 +1,12 @@ #TODO winit crate error (even after cargo update) [source] git = "https://github.com/sebcrozet/kiss3d" +shallow_clone = true [build] template = "custom" script = """ -cookbook_cargo_examples camera cube lines multi_windows planar_lines points post_processing primitives primitives2d procedural rectangle screenshot stereo text texturing ui window +DYNAMIC_INIT +cookbook_cargo_examples camera cube lines multi_windows planar_lines \ +points post_processing primitives primitives2d procedural rectangle \ +screenshot stereo text texturing ui window """ diff --git a/recipes/wip/demos/lenia/recipe.toml b/recipes/wip/demos/lenia/recipe.toml index fa5768ac..92d4fcd3 100644 --- a/recipes/wip/demos/lenia/recipe.toml +++ b/recipes/wip/demos/lenia/recipe.toml @@ -1,5 +1,6 @@ #TODO winit crate error (after cargo update) [source] git = "https://github.com/BirdbrainEngineer/lenia" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/demos/lyon/recipe.toml b/recipes/wip/demos/lyon/recipe.toml index 78479f9e..8b146e6b 100644 --- a/recipes/wip/demos/lyon/recipe.toml +++ b/recipes/wip/demos/lyon/recipe.toml @@ -1,10 +1,11 @@ #TODO compiled but not tested -#TODO fix the packaging #TODO move to the "graphics" category [source] git = "https://github.com/nical/lyon" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_packages lyon_cli wgpu-example svg-rendering-example """ diff --git a/recipes/wip/demos/macroquad/recipe.toml b/recipes/wip/demos/macroquad/recipe.toml index d7d56592..1459f6c2 100644 --- a/recipes/wip/demos/macroquad/recipe.toml +++ b/recipes/wip/demos/macroquad/recipe.toml @@ -1,8 +1,11 @@ #TODO compiled but not tested [source] git = "https://github.com/not-fl3/macroquad" +shallow_clone = true [build] template = "custom" script = """ -cookbook_cargo_examples 3d basic_shapes camera first_person particles_example platformer shadertoy snake text ui +DYNAMIC_INIT +cookbook_cargo_examples 3d basic_shapes camera first_person \ +particles_example platformer shadertoy snake text ui """ diff --git a/recipes/wip/demos/mage/recipe.toml b/recipes/wip/demos/mage/recipe.toml index 9a14f3e9..412bbc6a 100644 --- a/recipes/wip/demos/mage/recipe.toml +++ b/recipes/wip/demos/mage/recipe.toml @@ -1,8 +1,10 @@ #TODO compiled but not tested [source] git = "https://github.com/baad-c0de/mage-core" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples basic hello """ diff --git a/recipes/wip/demos/mousefood/recipe.toml b/recipes/wip/demos/mousefood/recipe.toml index b2214ef9..a0a82c5c 100644 --- a/recipes/wip/demos/mousefood/recipe.toml +++ b/recipes/wip/demos/mousefood/recipe.toml @@ -2,12 +2,14 @@ #TODO maybe need a patch to use the sdl2 dependency from redox [source] git = "https://github.com/j-g00da/mousefood" +shallow_clone = true [build] template = "custom" dependencies = [ "sdl2", ] script = """ +DYNAMIC_INIT recipe="$(basename "${COOKBOOK_RECIPE}")" for example in simulator do diff --git a/recipes/wip/demos/nibble/recipe.toml b/recipes/wip/demos/nibble/recipe.toml index 586247a2..7198424a 100644 --- a/recipes/wip/demos/nibble/recipe.toml +++ b/recipes/wip/demos/nibble/recipe.toml @@ -1,5 +1,6 @@ #TODO not compiled or tested [source] git = "https://github.com/Vaishnav-Sabari-Girish/nibble" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/demos/notan/recipe.toml b/recipes/wip/demos/notan/recipe.toml index 6a73d375..9c0fbeaa 100644 --- a/recipes/wip/demos/notan/recipe.toml +++ b/recipes/wip/demos/notan/recipe.toml @@ -1,9 +1,11 @@ #TODO environment leak on CMake [source] git = "https://github.com/Nazariglez/notan" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples renderer_cube draw_path_flower \ game_pong game_of_life """ diff --git a/recipes/wip/demos/pingora/recipe.toml b/recipes/wip/demos/pingora/recipe.toml index 27ff7561..11672a21 100644 --- a/recipes/wip/demos/pingora/recipe.toml +++ b/recipes/wip/demos/pingora/recipe.toml @@ -1,8 +1,10 @@ #TODO jemalloc-sys crate error [source] git = "https://github.com/cloudflare/pingora" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples server client """ diff --git a/recipes/wip/demos/pipes-rs/recipe.toml b/recipes/wip/demos/pipes-rs/recipe.toml index 9759825e..8611a49c 100644 --- a/recipes/wip/demos/pipes-rs/recipe.toml +++ b/recipes/wip/demos/pipes-rs/recipe.toml @@ -1,8 +1,10 @@ #TODO libmalloc-sys crate error [source] git = "https://github.com/lhvy/pipes-rs" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_packages pipes-rs """ diff --git a/recipes/wip/demos/piston/recipe.toml b/recipes/wip/demos/piston/recipe.toml index d8816796..d17e3c80 100644 --- a/recipes/wip/demos/piston/recipe.toml +++ b/recipes/wip/demos/piston/recipe.toml @@ -1,8 +1,11 @@ #TODO glutin crate error [source] git = "https://github.com/pistondevelopers/piston-examples" +shallow_clone = true [build] template = "custom" script = """ -cookbook_cargo_examples cube hello_world image multi_window shapes snake sprite +DYNAMIC_INIT +cookbook_cargo_examples cube hello_world image multi_window \ +shapes snake sprite """ diff --git a/recipes/wip/demos/pix-engine/recipe.toml b/recipes/wip/demos/pix-engine/recipe.toml index 48111894..d5aaf0f0 100644 --- a/recipes/wip/demos/pix-engine/recipe.toml +++ b/recipes/wip/demos/pix-engine/recipe.toml @@ -1,6 +1,7 @@ #TODO not compiled or tested [source] git = "https://github.com/lukexor/pix-engine" +shallow_clone = true [build] template = "custom" dependencies = [ @@ -11,5 +12,8 @@ dependencies = [ "sdl-gfx", ] script = """ -cookbook_cargo_examples maze 2d_raycasting 3d_raycasting asteroids colors fluid_simulation gui hello_world image light matrix shapes textures tree windows +DYNAMIC_INIT +cookbook_cargo_examples maze 2d_raycasting 3d_raycasting \ +asteroids colors fluid_simulation gui hello_world image \ +light matrix shapes textures tree windows """ diff --git a/recipes/wip/demos/pixels/recipe.toml b/recipes/wip/demos/pixels/recipe.toml index c6ca5a0d..ec637e69 100644 --- a/recipes/wip/demos/pixels/recipe.toml +++ b/recipes/wip/demos/pixels/recipe.toml @@ -1,8 +1,11 @@ #TODO webbrowser crate error [source] git = "https://github.com/parasyte/pixels" +shallow_clone = true [build] template = "custom" script = """ -cookbook_cargo_packages conway invaders minimal-egui minimal-winit tiny-skia-winit +DYNAMIC_INIT +cookbook_cargo_packages conway invaders minimal-egui \ +minimal-winit tiny-skia-winit """ diff --git a/recipes/wip/demos/rain/recipe.toml b/recipes/wip/demos/rain/recipe.toml index f9b7e0be..2ec43f25 100644 --- a/recipes/wip/demos/rain/recipe.toml +++ b/recipes/wip/demos/rain/recipe.toml @@ -1,8 +1,10 @@ #TODO compilation error [source] git = "https://github.com/saschagrunert/rain" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples demo """ diff --git a/recipes/wip/demos/rapier/recipe.toml b/recipes/wip/demos/rapier/recipe.toml index 6dbe1077..cae50ae1 100644 --- a/recipes/wip/demos/rapier/recipe.toml +++ b/recipes/wip/demos/rapier/recipe.toml @@ -1,9 +1,11 @@ #TODO x11rb, rustix and webbrowser crates error [source] git = "https://github.com/dimforge/rapier" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_packages rapier-examples-2d rapier-examples-3d \ rapier-examples-3d-f64 """ diff --git a/recipes/wip/demos/ratzilla/recipe.toml b/recipes/wip/demos/ratzilla/recipe.toml index 80dd86b1..b6753f58 100644 --- a/recipes/wip/demos/ratzilla/recipe.toml +++ b/recipes/wip/demos/ratzilla/recipe.toml @@ -1,9 +1,11 @@ #TODO compiled but not tested [source] git = "https://github.com/orhun/ratzilla" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT recipe="$(basename "${COOKBOOK_RECIPE}")" function build_from_dir { prog_name=$1 diff --git a/recipes/wip/demos/rend3/recipe.toml b/recipes/wip/demos/rend3/recipe.toml index 87b59d63..17a06ea9 100644 --- a/recipes/wip/demos/rend3/recipe.toml +++ b/recipes/wip/demos/rend3/recipe.toml @@ -1,8 +1,10 @@ #TODO webbrowser crate error [source] git = "https://github.com/BVE-Reborn/rend3" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_packages rend3-examples-package """ diff --git a/recipes/wip/demos/renderling/recipe.toml b/recipes/wip/demos/renderling/recipe.toml index d8c9aeea..178c6516 100644 --- a/recipes/wip/demos/renderling/recipe.toml +++ b/recipes/wip/demos/renderling/recipe.toml @@ -1,8 +1,10 @@ #TODO compiled but not tested [source] git = "https://github.com/schell/renderling" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_packages example """ diff --git a/recipes/wip/demos/reticulum-rs/recipe.toml b/recipes/wip/demos/reticulum-rs/recipe.toml index f4064148..97f0cf81 100644 --- a/recipes/wip/demos/reticulum-rs/recipe.toml +++ b/recipes/wip/demos/reticulum-rs/recipe.toml @@ -1,9 +1,11 @@ #TODO not compiled or tested -# the protobuf compiler needs to be installed +# require protobuf [source] git = "https://github.com/BeechatNetworkSystemsLtd/Reticulum-rs" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples tcp_client kaonic_client """ diff --git a/recipes/wip/demos/rootvg/recipe.toml b/recipes/wip/demos/rootvg/recipe.toml index 611dcd55..f2ef09e8 100644 --- a/recipes/wip/demos/rootvg/recipe.toml +++ b/recipes/wip/demos/rootvg/recipe.toml @@ -1,8 +1,10 @@ #TODO compiled but not tested [source] git = "https://github.com/MeadowlarkDAW/rootvg" +shallow_clone = true [build] template = "custom" script = """ +DYNAMIC_INIT cookbook_cargo_examples demo """ diff --git a/recipes/wip/demos/rpt/recipe.toml b/recipes/wip/demos/rpt/recipe.toml index 91658f4a..09d72696 100644 --- a/recipes/wip/demos/rpt/recipe.toml +++ b/recipes/wip/demos/rpt/recipe.toml @@ -1,8 +1,12 @@ #TODO compiled but not tested [source] git = "https://github.com/ekzhang/rpt" +shallow_clone = true [build] template = "custom" script = """ -cookbook_cargo_examples basic cylinder fractal_spheres fractal_teapots glass marbles metal rustacean sphere spheres teapot +DYNAMIC_INIT +cookbook_cargo_examples basic cylinder fractal_spheres \ +fractal_teapots glass marbles metal rustacean sphere \ +spheres teapot """