This commit is contained in:
parent
e715886afa
commit
455bac2f39
2 changed files with 34 additions and 0 deletions
5
README.md
Normal file
5
README.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# wasm-pack
|
||||
|
||||
wasm-pack is a streamlined tool for building, testing, and publishing Rust-generated WebAssembly (Wasm) projects. It simplifies the process of compiling Rust into efficient .wasm binaries while generating the necessary JavaScript bindings.
|
||||
|
||||
By automating integration with wasm-bindgen and supporting both Node.js and browser environments, it eliminates much of the manual configuration. It also optimizes output through dead code elimination and minification, making it ideal for web-focused Wasm development.
|
29
package.yml
Normal file
29
package.yml
Normal file
|
@ -0,0 +1,29 @@
|
|||
name : wasm-pack
|
||||
version : 0.13.1
|
||||
release : 1
|
||||
source :
|
||||
- https://github.com/rustwasm/wasm-pack/archive/refs/tags/v0.13.1.tar.gz : 3c28be53174fd12a6f3c3a018f14c8383b2eec6c6699c74751c1f3c51a2346c0
|
||||
license : GPL-3.0-only
|
||||
component : programming.tools
|
||||
homepage : https://rustwasm.github.io/wasm-pack/
|
||||
summary : wasm-pack is a streamlined tool for building, testing, and publishing Rust-generated WebAssembly (Wasm) projects.
|
||||
description: |
|
||||
This tool seeks to be a one-stop shop for building and working with rust- generated WebAssembly that you would like to interop with JavaScript, in the browser or with Node.js.
|
||||
builddeps :
|
||||
- rust
|
||||
- pkgconfig(libzstd)
|
||||
networking : yes
|
||||
setup : |
|
||||
target=$(rustc -vV | sed -n 's/host: //p')
|
||||
|
||||
mkdir -p .cargo
|
||||
cat >> .cargo/config.toml <<-EOF
|
||||
[target.$target]
|
||||
zstd = { rustc-link-lib = ["zstd"] }
|
||||
EOF
|
||||
|
||||
%cargo_fetch
|
||||
build : |
|
||||
%cargo_build
|
||||
install : |
|
||||
%cargo_install
|
Loading…
Add table
Add a link
Reference in a new issue