π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Build Cast WASM without reference types
Manav Rathi9a781bec1847
diff --git a/rust/bindings/wasm/cast/rust-toolchain.toml b/rust/bindings/wasm/cast/rust-toolchain.tomlnew file mode 100644index 0000000000..10429b5aa4--- /dev/null+++ b/rust/bindings/wasm/cast/rust-toolchain.toml@@ -0,0 +1,6 @@+[toolchain]+# Chromecast browsers don't support newer WASM features and need -Z build-std.+channel = "nightly-2026-08-13"+components = ["rust-src"]+targets = ["wasm32-unknown-unknown"]+profile = "minimal"diff --git a/web/package.json b/web/package.jsonindex 53a8d89db7..5da992470f 100644--- a/web/package.json+++ b/web/package.json@@ -14,7 +14,7 @@"build:albums": "npm run build:wasm && npm exec --workspace albums -- next build --webpack","build:auth": "npm run build:wasm && npm exec --workspace auth -- next build --webpack","build:cast": "npm run build:wasm && npm run build:cast-wasm && npm exec --workspace cast -- next build --webpack",- "build:cast-wasm": "npm run build --workspace ente-cast-wasm -- --no-pack",+ "build:cast-wasm": "npm run build --workspace ente-cast-wasm","build:embed": "npm run build:wasm && npm exec --workspace embed -- next build --webpack","build:ensu": "npm run build:wasm && npm exec --workspace ensu -- next build --webpack","build:legacy": "npm run build:wasm && npm exec --workspace legacy -- next build --webpack",diff --git a/web/packages/wasm/cast/package.json b/web/packages/wasm/cast/package.jsonindex 2b1453d992..3fac2f21f2 100644--- a/web/packages/wasm/cast/package.json+++ b/web/packages/wasm/cast/package.json@@ -11,7 +11,7 @@"module": "./index.ts","types": "./index.ts","scripts": {- "build": "wasm-pack build ../../../../rust/bindings/wasm/cast --target bundler --out-dir ../../../../web/packages/wasm/cast/pkg"+ "build": "cd ../../../../rust/bindings/wasm/cast && CARGO_ENCODED_RUSTFLAGS=-Ctarget-feature=-reference-types wasm-pack build . --target bundler --out-dir ../../../../web/packages/wasm/cast/pkg --no-pack -- -Z build-std=panic_abort,std"},"devDependencies": {"ente-build-config": "*",