# rust-plugin

> Rust plugin for Webpack

Latest version **0.0.5** (published 2018-06-29) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install rust-plugin
pnpm add rust-plugin
yarn add rust-plugin
bun add rust-plugin
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2018-06-29 |
| First published | 2018-06-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Sven Sauleau |
| Maintainers | xtuc |

## Links

- npm: https://www.npmjs.com/package/rust-plugin
- Repository: https://github.com/wasm-tool/rust-plugin
- Homepage: https://github.com/wasm-tool/rust-plugin#readme
- Issues: https://github.com/wasm-tool/rust-plugin/issues
- npm.io page: https://npm.io/package/rust-plugin

## Dependencies (2)

- [tempy](https://npm.io/package/tempy.md) ^0.2.1
- [which](https://npm.io/package/which.md) ^1.3.1

## Recent versions

- 0.0.5 (latest) — 2018-06-29
- 0.0.4 — 2018-06-04
- 0.0.3 — 2018-06-03
- 0.0.2 — 2018-06-01
- 0.0.1 — 2018-06-01

## README

# rust-plugin

> Rust plugin for Webpack

## Installation

```sh
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

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

module.exports = {
  entry: "./index.js",
  plugins: [
    new RustPlugin({
        debug: true,
        profiling: false,
        wasmopt: {
            level: '0'
        }
    })
  ]
};

```

---
_Source: https://npm.io/package/rust-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
