plushie/build

Build the plushie binary and/or WASM renderer from source.

Ships in the hex package. Users run:

gleam run -m plushie/build                    # native binary (default)
gleam run -m plushie/build -- --release        # optimized build
gleam run -m plushie/build -- --wasm           # WASM renderer only
gleam run -m plushie/build -- --bin --wasm     # both
gleam run -m plushie/build -- --verbose        # print cargo output

Requires PLUSHIE_SOURCE_PATH env var pointing to the plushie Rust source checkout. Checks Rust toolchain version, runs cargo build, and installs the binary to priv/bin/. WASM files go to priv/wasm/.

Values

pub fn main() -> Nil

Entry point for gleam run -m plushie/build.

Search Document