build(color-module): 添加wasm随机数支持和internment依赖
添加getrandom wasm_js后端配置以支持wasm环境下的随机数生成 添加internment依赖用于优化内存管理
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
#!/bin/bash
|
||||
wasm-pack build --release --target web -d ../color_functions
|
||||
RUSTFLAGS='--cfg getrandom_backend="wasm_js"' wasm-pack build --release --target web -d ../color_functions
|
||||
|
Reference in New Issue
Block a user