0.0.5 • Published 6 years ago

rust-plugin v0.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

rust-plugin

Rust plugin for Webpack

Installation

yarn add rust-plugin

Options

namedescription
debugEnable debug mode
profilingEnable profiling mode
wasmopt.levelconfigure wasm-opt optimization level (default z)
wasmopt.requiredthrow if the binary is not available (default false: warn)
wasmsnip.snipRustPanickingCodeSnip Rust's std::panicking and core::panicking code
wasmsnip.snipRustFmtCodeSnip Rust's std::fmt and core::fmt code
wasmsnip.functionsSnip 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'
        }
    })
  ]
};
0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago