mirror of
https://github.com/UneBaguette/blake3.wasm.git
synced 2026-08-15 00:00:22 +02:00
fix: enable SIMD in build and cap XOF output length
- Merge target-feature=+simd128 into Makefile RUSTFLAGS (was being overridden by the explicit RUSTFLAGS env var) - Cap hash_xof/finalize_xof to 64KB to prevent unbounded WASM linear memory growth - Add boundary tests for XOF length validation - Update benchmarks with SIMD-enabled build
This commit is contained in:
@@ -20,7 +20,7 @@ build: build-all node-esm
|
||||
|
||||
build-all:
|
||||
@echo "Building all target..."
|
||||
RUSTFLAGS='-C opt-level=3' $(CARGO) build --target $(WASM_TARGET) --release --features talc
|
||||
RUSTFLAGS='-C opt-level=3 -C target-feature=+simd128' $(CARGO) build --target $(WASM_TARGET) --release --features talc
|
||||
@mkdir -p $(ROOT)/bundler $(ROOT)/web $(ROOT)/node
|
||||
$(WASM_BINDGEN) --target bundler --out-dir $(ROOT)/bundler $(TARGET_DIR)/$(CRATE).wasm
|
||||
$(WASM_BINDGEN) --target web --out-dir $(ROOT)/web $(TARGET_DIR)/$(CRATE).wasm
|
||||
|
||||
Reference in New Issue
Block a user