mirror of
https://github.com/AtHeartEngineering/zk-kit.git
synced 2026-01-14 19:18:26 -05:00
Rust Rollup Plugin
Rollup plugin to create WASM/JS libraries from Rust crates.
🛠 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()]
}