Commit Graph
5 Commits
Author SHA1 Message Date
FredApps bf379a3937 web: only read .wasm files under the repo or CARGO_TARGET_DIR in the size report 2026-11-28 09:16:22 +01:00
FredApps c1a395f3fa web: size-optimize the wasm profile and report the biggest contributors
The web build's wasm has been over the 24 MiB gate in packaging/web/package.sh
since the nightly Release dry run of 23 Nov. This change brings it down by about
4.2 MB; it does not bring it under the gate on its own.

- Cargo.toml: the wasm-release profile uses opt-level "z" instead of "s". The
  crates that rely on inlining (fearless_simd, vello_cpu, vello_common,
  craft-image-codecs, texturecraft-core) stay at "s", because they come out
  larger at "z". The per-pixel crates stay at opt-level 3.
- packaging/web/wasm_size_report.py: lists the wasm's sections and its largest
  crates and functions.
- packaging/web/package.sh: when the size gate fails, it prints that report.
2026-11-28 08:23:58 +01:00
Dylan M. Taylor 21b3046648 packaging: use [[ for bash tests (SonarCloud S7688) (#403)
* packaging: use [[ for bash tests (SonarCloud S7688)

Behaviour-preserving: `[[ ]]` in place of `[ ]` for bash tests (SonarCloud shell:S7688). Every script has a bash shebang; no test uses `-a`/`-o`, escaped parentheses or an unquoted pattern on the right of `=`. `bash -n` passes on each script; the rest is left to CI.

Clears all 70 open issues: `packaging/{linux,macos,freebsd,web}/*.sh`.

* packaging/web: parse the wasm size override as base 10 under [[

Inside [[ ]], -gt evaluates its operands arithmetically: a leading zero reads as octal and other text as an expression. Read the override as a base-10 number, as photocraft does.
2026-11-10 18:58:27 -05:00
bflatastic b55a63a390 Mark the packaging scripts executable
The shared release workflow runs them directly, so without the executable bit the
Linux, macOS and Web release jobs stop with "Permission denied".
2026-11-02 00:34:47 +07:00
bflatasticandClaude Opus 5.5 ec859420d5 TextureCraft: clean-room 3D texture painting in pure Rust
An open-source, clean-room implementation of a Substance 3D Painter-style texturing
workflow, written in pure Rust with egui and wgpu.

- Layer stack with 32 blend modes, masks, generators, content effects and anchor points
- Painting, projection, smudge, clone, path, lasso fill, particle brush and quick mask
- 43 procedural materials, 17 smart materials and 10 smart masks
- Mesh map baking with high-poly, cage and match-by-name support
- PBR viewport with HDR environments, TAA and a path-traced Rendering mode
- glTF, FBX, COLLADA, OBJ, PLY and STL import; texture export presets; OBJ and GLB export
- Dockable Painter-style UI, shortcut editor, web build, MCP server and CLI

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 01:33:13 +07:00