0.1.0-alpha.2 • Published 10 months ago
@d-corler/lodash-rust v0.1.0-alpha.2
Powered with Rust and WebAssembly
About
This library is a clone of Lodash, wrote in Rust and compiled into WebAssembly, with a lot of optimizations to increase speed execution.
🚴 Usage
💾 Install the npm package
npm install --save lodash-plus
# or
yarn add lodash-plus
# or
pnpm add lodash-plus
👩💻 How to contribute
🐑 Install dependencies
# Install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Add target
rustup target add wasm32-unknown-unknown
# Install wasm-pack
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
🛠️ Build
make build
🔬 Tests
Rust
make test
Headless browser
make test-wasm
🎁 Publish to NPM
make publish
📊 Run benchmarks
Rust
make bench
JavaScript
cd benchmarks
pnpm install
pnpm run start
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.