diff --git a/README.md b/README.md new file mode 100644 index 0000000..20c2cc6 --- /dev/null +++ b/README.md @@ -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. diff --git a/package.yml b/package.yml new file mode 100644 index 0000000..32a1fbd --- /dev/null +++ b/package.yml @@ -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