cellular-automaton

A cellular automaton simulation library targeting WebAssembly.

Crates.io version Crates.io downloads docs.rs docs

npm version (scoped) npm type definitions

Rust API Docs

Rust Library

```toml

Cargo.toml

[dependencies] cellular-automaton = "0.1" ```

This crate defaults to supporting WebAssembly. To build the crate without WebAssembly support, don't use the crate's default features:

sh cargo build --no-default-features

JavaScript Package

```sh

npm

npm i @tedbyron/cellular-automaton

yarn

yarn add @tedbyron/cellular-automaton

pnpm

pnpm add @tedbyron/cellular-automaton ```

The npm package has:

The package is built to target webpack (--target bundler) but can be rebuilt from the Rust library for a different target:

sh wasm-pack build --target <bundler|nodejs|web|no-modules> wasm-opt -Os pkg/cellular_automaton_bg.wasm -o pkg/cellular_automaton_bg.wasm