Improve many demo recipes

This commit is contained in:
Ribbon 2026-02-13 19:57:07 -03:00
parent ead8ee3f50
commit aaed7c3995
31 changed files with 75 additions and 18 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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