Hello,

I attach a diff to add Wasm32 toolchain target to the lang/rust port.

I have been developing (although at amateur level) for a while with Rust Wasm 
under OpenBSD and it seems OK.
The only caveats:
- link with clang from ports:
RUSTFLAGS="-C linker=/usr/local/bin/clang-13" wasm-pack build --target web --dev

- link wasm-pack with rust-ring from ports. To do the latter, I git clone 
wasm-pack and add to its Cargo.toml the following:
[patch.crates-io]
ring = { path = "/usr/local/share/ring-0.16.20" }

Cheers,
Luca

Attachment: rust-wasm32.diff
Description: Binary data

Reply via email to