Installation¶
Install the LOESS library for your preferred language.
# loess-rs (no_std compatible)
[dependencies]
loess-rs = "*"
# fastLoess (parallel)
[dependencies]
fastLoess = "*"
| Crate | Feature | Description |
|---|---|---|
loess-rs |
std |
Enable standard library (default) |
<script type="module">
import { Loess } from "https://cdn.jsdelivr.net/npm/fastloess-wasm@<version>/index.js";
</script>
# Install Rust first: https://rustup.rs/
# Install wasm-pack: https://rustwasm.github.io/wasm-pack/installer/
git clone https://github.com/thisisamirv/loess-project
cd loess-project/bindings/wasm
# For bundlers (Webpack, Vite, etc.)
wasm-pack build --target bundler
# For Node.js
wasm-pack build --target nodejs
# For browser (no bundler)
wasm-pack build --target web
wget https://github.com/thisisamirv/loess-project/releases/latest/download/libfastloess-linux-x64.so
wget https://github.com/thisisamirv/loess-project/releases/latest/download/fastloess.hpp
g++ -o myapp myapp.cpp -L. -lfastloess-linux-x64
curl -LO https://github.com/thisisamirv/loess-project/releases/latest/download/libfastloess-macos-x64.dylib
curl -LO https://github.com/thisisamirv/loess-project/releases/latest/download/fastloess.hpp
clang++ -o myapp myapp.cpp -L. -lfastloess-macos-x64
wget https://github.com/thisisamirv/loess-project/releases/latest/download/fastloess-win32-x64.dll
wget https://github.com/thisisamirv/loess-project/releases/latest/download/fastloess.hpp
cl myapp.cpp /link fastloess-win32-x64.lib
# Install Rust first: https://rustup.rs/
git clone https://github.com/thisisamirv/loess-project
cd loess-project/bindings/cpp
# Build the library
cargo build --release
# Headers are at: include/fastloess.hpp (C++)
# Library is at: target/release/libfastloess_cpp.so (Linux)
# target/release/libfastloess_cpp.dylib (macOS)
# target/release/fastloess_cpp.dll (Windows)