Thanks for contributing! This document covers how to set up a dev environment, run checks, and what the project conventions are.
Build/
Cargo.toml Rust workspace root (profiles are configured here)
crates/
libflo/ The encoder/decoder codec library (Rust + WASM)
reflo/ Reusable conversion library
reflo-cli/ Converter CLI (uses symphonia for audio I/O)
flo-fixtures/ In-code signal synthesis for Examples/ and Tests/fixtures/
Demo/ Browser demo (WASM bindings)
Docs/ docmd documentation site source
Examples/ Generated .flo example files (see `just examples`)
Tests/
libflo/ Rust integration tests + Jest (WASM) tests
reflo/ reflo integration tests
fixtures/ Canonical generated fixtures (see `just examples`)
scripts/ Python driver scripts (used by the Justfile)
Justfile All common commands
- Rust (stable) with the
wasm32-unknown-unknowntarget - Node 24 (
.nvmrc) — the Jest suite requiresNODE_OPTIONS=--experimental-vm-modules - Python 3.14 (
.python-version) just,cargo-deny,wasm-pack
The easiest path is to open the repo in a Dev Container (.devcontainer/),
which installs all of the above. Otherwise:
cd scripts python3 libflo.py setup; python3 reflo.py setup
Everything lives behind just:
| Command | What it does |
|---|---|
just check |
Format check + lint + test + build for all crates |
just deny |
cargo-deny license/advisory checks |
just audit |
cargo-audit vulnerability scan |
just examples |
Regenerate Examples/*.flo and Tests/fixtures/ |
just libflo test_wasm |
Run the Jest WASM test suite |
just reflo build |
Build the reflo-cli CLI |
just docs build |
Build the docmd documentation site |
just wasm |
Build WASM packages for the demo |
- Rust code is formatted with
rustfmtand linted withclippy -D warnings. - Changes must keep
just checkandjust denygreen. - New fixture/example audio should go through
flo-fixtures— do not hand-add generated binaries. (Note: generated.flofiles embed a build-time timestamp in their metadata, sojust examplesis not bit-reproducible across runs.) - WebAssembly surfaces: keep
initSync({ module })-style usage in tests; the Jest tests live inTests/libflo/js/. - Keep raw-sample APIs in
libflo-audio/reflo; filesystem and Symphonia input belong toreflo-cli. - Follow the existing file layout — native Rust tests in
Tests/libflo/rust/andTests/reflo/, referenced fromTests/libflo/mod.rs.
- Fork the repository and create a branch (
git checkout -b feature/name). - Make your change. Add or update tests in
Tests/. - Run
just checkandjust denylocally. - Commit with a concise message describing the change.
- Open a Pull Request with a clear description of the change and any tradeoffs.
Before opening a PR, double-check:
just examples # if fixtures/examples changed just libflo test_wasm # if WASM/JS surface changed
All participants must follow the Code of Conduct.