Skip to content

xtask web: the site leaves <target>/web to cargo; the release zip ships only the site (#793) - #888

Closed
vbasky wants to merge 1 commit into
storytold:mainfrom
vbasky:fix/793-web-zip-clean
Closed

vbasky wants to merge 1 commit into
storytold:mainfrom
vbasky:fix/793-web-zip-clean

Conversation

@vbasky

@vbasky vbasky commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

The web profile puts cargo's host artifacts (build-script and proc-macro deps/, build/, examples/, incremental/, .fingerprint/) in <target>/web — exactly where cargo xtask web wrote the site, so packaging/web/package.sh zipped both: 0.5.0's 191 MB unpacked asset held ~113 MB of build junk next to the site. None of it is referenced by anything; it just doubles the download.

The site now lives in <target>/web-site/; package.sh, docs and usage strings follow. Verified end to end: a real cargo xtask web + package.sh --skip-build run here, with the old collision demonstrated first (ls target/web → build deps examples incremental) and the resulting zip listing only site files and the docs bundle (6.8 MB of the local font-less build).

…wn web/ dir (storytold#793).

The web profile's host artifacts (build-script and proc-macro deps/, build/, examples/,
incremental/, .fingerprint/) live in <target>/web, exactly where cargo xtask web wrote the
site. The release zip copied the site directory with cargo's 113 MB of artifacts in it
(deps/ 90 MB, build/ 22 MB measured on 0.5.0), none of it referenced by the app.

The site now lives in <target>/web-site; packaging/web/package.sh, docs and the usage
strings follow. Verified end to end here: cargo xtask web, then package.sh --skip-build,
and the resulting zip lists only site files and the docs bundle.

Copy link
Copy Markdown
Member

Closing as a duplicate of #848, which landed in #975. Your two extra target/web → target/web-site doc fixes (apps/lightcraft-web/src/lib.rs, docs/localization-zh-hans.md) went in with it, credited to you. Thanks!


Generated by Claude Code

@bflatastic bflatastic closed this Oct 11, 2026
valenfys pushed a commit to valenfys/lightcraft that referenced this pull request Oct 11, 2026
…get/web-site (from storytold#888)

Co-Authored-By: Vikram Bhaskaran <vikram.bhaskaran@outlook.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BKWB9TCnvzJHV6xMLAj2J4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants