Migrate some WIP demo recipes to "cargoexamples" and "cargopackages"

This commit is contained in:
Ribbon 2026-03-12 10:34:34 -03:00
parent 7e5bbda054
commit 7112ff5f40
22 changed files with 138 additions and 125 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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