Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix Cast WASM build on Windows

Manav Rathi28ec1ea11464
diff --git a/rust/bindings/wasm/cast/.cargo/config.toml b/rust/bindings/wasm/cast/.cargo/config.toml
new file mode 100644
index 0000000000..70084b617d
--- /dev/null
+++ b/rust/bindings/wasm/cast/.cargo/config.toml
@@ -0,0 +1,2 @@
+[target.wasm32-unknown-unknown]
+rustflags = ["-C", "target-feature=-reference-types"]
diff --git a/web/packages/wasm/cast/package.json b/web/packages/wasm/cast/package.json
index 3fac2f21f2..935b4c2655 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": "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"
+ "build": "cd ../../../../rust/bindings/wasm/cast && wasm-pack build . --target bundler --out-dir ../../../../web/packages/wasm/cast/pkg --no-pack -- -Z build-std=panic_abort,std"
},
"devDependencies": {
"ente-build-config": "*",