Craft Anything: understand how any software works, and craft your own.
Rust
A plain HTML and CSS request builds a static site instead of a Rust app (#225)
muraa-pb36007cf8ba1
diff --git a/crates/ai/src/rebuild/stacks.toml b/crates/ai/src/rebuild/stacks.tomlindex 4dceabad..23c60e65 100644--- a/crates/ai/src/rebuild/stacks.toml+++ b/crates/ai/src/rebuild/stacks.toml@@ -37,6 +37,11 @@ asked_by = [" in typescript", " in react", " with react", " in javascript", " viuses = ["vite"]steps = "Use Vite + React + TypeScript. Create the project files directly in app/ (package.json with scripts \"build\": \"tsc -b && vite build\" or \"vite build\", vite.config.ts with base './', index.html, src/). Then run `npm install` and `npm run build` from app/ until it succeeds; the output must be app/dist and must work when served as static files."+[[stack]]+name = "Plain HTML and CSS"+asked_by = [" html and css ", " plain html ", " no frameworks ", " no javascript ", " no build step ", " static html "]+steps = "Use plain HTML, CSS and a little JavaScript only if the page needs it: no framework, no bundler, no build step. Create the project directly in app/: index.html at the top, one .css file (and .js only if needed) beside it, with each other page at its own path (about.html, contact.html). Link the stylesheet with a relative path. Then check that the pages open and look right when served as static files; there is nothing to build."+[[stack]]name = "Rust (console)"uses = []