@zk-kit/rollup-plugin-rust
v0.1.0
Published
Rollup plugin to create WASM/JS libraries from Rust crates.
Downloads
19
Readme
🛠 Install
npm or yarn
Install the @zk-kit/rollup-plugin-rust
package with npm:
npm i @zk-kit/rollup-plugin-rust
or yarn:
yarn add @zk-kit/rollup-plugin-rust
📜 Usage
import rust from "@zk-kit/rollup-plugin-rust"
export default {
input: "Cargo.toml",
output: [
{
file: "dist/index.js",
name: "myPackageName",
format: "iife"
}
],
plugins: [rust()]
}