0.1.7 • Published 4 years ago

rust-wasm-react-calculator v0.1.7

Weekly downloads
29
License
-
Repository
-
Last release
4 years ago

This package is the result of compiling Rust in WASM with wasm-pack

This is not a production package

This package is not tested, and is just the result of some fun and learning with Rust and Wasm

Source code HERE

Links:

wasm-pack

blog post tutorial with react

Usage:

// Import package

const wasm = await import('rust-wasm-react-calculator'); // Wasm calls must be async

Call calculate with a simple expression as string

const expression = '14+5';

wasm.calculate(expression); // Expression must have 1 operator, +, -, X, /, %, ^

0.1.7

4 years ago

0.1.4

4 years ago

0.1.6

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago