Skip to content
This repository has been archived by the owner. It is now read-only.
Rust plugin for Webpack
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
passes
presets
.gitignore
LICENSE
README.md
index.js
package.json

README.md

rust-plugin

Rust plugin for Webpack

Installation

yarn add rust-plugin

Options

name description
debug Enable debug mode
profiling Enable profiling mode
wasmopt.level configure wasm-opt optimization level (default z)
wasmopt.required throw if the binary is not available (default false: warn)
wasmsnip.snipRustPanickingCode Snip Rust's std::panicking and core::panicking code
wasmsnip.snipRustFmtCode Snip Rust's std::fmt and core::fmt code
wasmsnip.functions Snip any function that matches the given regular expression or a string

Example

const RustPlugin = require("rust-plugin");

module.exports = {
  entry: "./index.js",
  plugins: [
    new RustPlugin({
        debug: true,
        profiling: false,
        wasmopt: {
            level: '0'
        }
    })
  ]
};
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.