Improve many more demo recipes

This commit is contained in:
Ribbon 2026-02-13 21:02:20 -03:00
parent aaed7c3995
commit 616c16edaa
30 changed files with 83 additions and 14 deletions

View File

@ -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
"""

View File

@ -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
"""

View File

@ -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"
"""

View File

@ -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
"""

View File

@ -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"

View File

@ -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
"""

View File

@ -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"]

View File

@ -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

View File

@ -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
"""

View File

@ -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
"""

View File

@ -1,5 +1,6 @@
#TODO winit crate error (after cargo update)
[source]
git = "https://github.com/BirdbrainEngineer/lenia"
shallow_clone = true
[build]
template = "cargo"

View File

@ -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
"""

View File

@ -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
"""

View File

@ -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
"""

View File

@ -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

View File

@ -1,5 +1,6 @@
#TODO not compiled or tested
[source]
git = "https://github.com/Vaishnav-Sabari-Girish/nibble"
shallow_clone = true
[build]
template = "cargo"

View File

@ -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
"""

View File

@ -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
"""

View File

@ -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
"""

View File

@ -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
"""

View File

@ -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
"""

View File

@ -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
"""

View File

@ -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
"""

View File

@ -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
"""

View File

@ -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

View File

@ -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
"""

View File

@ -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
"""

View File

@ -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
"""

View File

@ -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
"""

View File

@ -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
"""