atproto Thingiverse but good
10

Configure Feed

Select the types of activity you want to include in your feed.

build: optimize web release profile + wasm-opt pass

Orual (Jun 29, 2026, 7:06 PM EDT) 9b195aeb fa4b845f

+21 -1
+3
Cargo.toml
··· 171 171 [profile.web-release] 172 172 inherits = "release" 173 173 opt-level = "z" 174 + debug = false 174 175 lto = "fat" 175 176 codegen-units = 1 176 177 strip = "symbols" 178 + panic = "abort" 179 + incremental = false
+18 -1
justfile
··· 53 53 # Start the Dioxus dev server. 54 54 serve *ARGS: 55 55 dx serve {{ ARGS }} 56 - # Build the Dioxus app for web. 56 + # Build the Dioxus app for web (debug). 57 57 build-web: 58 58 dx build --platform web 59 + # Build the Dioxus app for web (release, optimized). Strips debug symbols and runs wasm-opt. 60 + build-web-release: 61 + #!/usr/bin/env bash 62 + set -e 63 + dx build --platform web --release --debug-symbols=false 64 + if command -v wasm-opt &>/dev/null; then 65 + WASM=$(find target/dx/polymodel/release/web/public -name "polymodel_bg*.wasm" -print -quit 2>/dev/null) 66 + if [ -n "$WASM" ]; then 67 + echo "==> Running wasm-opt on $WASM" 68 + BEFORE=$(stat -c%s "$WASM") 69 + wasm-opt "$WASM" -Oz --enable-bulk-memory --enable-simd --enable-nontrapping-float-to-int --enable-sign-ext -o "$WASM" || { echo "==> wasm-opt failed, keeping unoptimized wasm"; exit 0; } 70 + AFTER=$(stat -c%s "$WASM") 71 + echo " $BEFORE -> $AFTER bytes" 72 + fi 73 + else 74 + echo "==> wasm-opt not found, skipping optimization" 75 + fi 59 76 # Regenerate crates/polymodel-api from authored lexicons via the local Jacquard checkout. 60 77 generate-api: 61 78 nix run ../jacquard