Remove the Rust/WASM crate and its build step
Test and deploy / test (push) Successful in 26s
Test and deploy / deploy (push) Successful in 38s
Weekly Maintenance / maintenance (push) Successful in 2m38s

Nothing live used it: main.js awaited the wasm init() on every page load,
but the only consumer, components/util/wasm/AutoScroll.vue, was never
imported. Dropping it removes the rust:slim + wasm-pack stage from the vue
image, the two Vite plugins that existed only for it, and the src/wasm/
guard in `make check-vue`, so a fresh clone builds without a Rust toolchain.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-15 21:11:09 +01:00
co-authored by Claude Opus 5.5
parent 65fddfcfa2
commit 4533b55da0
20 changed files with 25 additions and 1039 deletions
+3 -8
View File
@@ -44,7 +44,7 @@ has to be a bare uvicorn.
```
src/
main.js entry point — awaits the wasm init, then mounts <App>
main.js entry point — mounts <App>
App.vue empty shell; all chrome lives in the layouts
router/index.js route table + the single admin route guard
graphql.js the entire GraphQL client (one axios POST)
@@ -55,8 +55,6 @@ src/
views/ page components, one directory per area
assets/styles.css design tokens + base styles (see Styling)
js/ small shared helpers
wasm/ GENERATED by `npm run build:wasm`; gitignored, do not edit
crates/stp_wasm the Rust source for the above
```
## Routing
@@ -317,10 +315,8 @@ renders any page's boxes.
- **Production** (`npm run build`): `dist/` is built into the nginx container
and served as static files, with nginx doing the same reverse-proxying.
Note `npm run build` runs `build:wasm` first, which needs **wasm-pack** on the
PATH. If you only want the Vue bundle and `src/wasm/` is already populated,
`npm run build:js` (plain `vite build`) skips that step. It is also the local
check that the app still compiles — there is no test runner or linter.
`npm run build` is a plain `vite build`. It is also the local check that the
app still compiles — there is no test runner or linter.
## Live vs legacy views
@@ -340,7 +336,6 @@ in its header comment; the summary:
| `views/CV/CV{General,Backend,Frontend,Security,Electrical,Hospitality,Analyst,Temp}.vue` | commented out of `CV.vue`'s list; unreachable |
| `views/unused/CoverLetters.vue` | **live** despite the directory — it is the "Cover Letter" tab on `/cv` |
| `views/unused/Notes.vue` | no route points at it; not imported |
| `components/util/wasm/AutoScroll.vue` | Rust port of the JS AutoScroll; not imported |
| `components/util/{MusicPlayer,ObjectTable}.vue` | not imported |
| `components/elle/Elle.vue`, `components/borders/UtenaFrame.vue` | decorative; not imported |
| `stores/models.js`, `js/mobile-automata.mjs` | not imported |