```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 and build to a specific target:
sh
cargo build --no-default-features --target x86_64-unknown-linux-gnu
```sh
npm i @tedbyron/ca
yarn add @tedbyron/ca
pnpm add @tedbyron/ca ```
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