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
gleam run -m plushie/build -- --bin-file PATH      # custom binary dest
gleam run -m plushie/build -- --wasm-dir PATH      # custom WASM dest

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 build/plushie/bin/. Creates a bin/plushie symlink. WASM files go to priv/wasm/.

--bin-file overrides the default binary destination. The parent directory is created automatically. --wasm-dir overrides the default WASM output directory (priv/wasm/).

Values

pub fn main() -> Nil

Entry point for gleam run -m plushie/build.

Search Document