Development
anyformat is a Turborepo monorepo on a pnpm workspace. The Rust crates are one Cargo workspace, and the Python packages are one uv workspace.
Repository layout
Requirements
- A stable Rust toolchain (see
rust-toolchain.toml) - Node.js 18 or later and pnpm
- uv, for the Python bindings
- Git LFS, for the binary sample files
Run git lfs install once before you clone. If you cloned without Git LFS, run
git lfs pull to replace the pointer files with the sample files.
Commands
Run the commands from the repository root.
Use turbo filters to work on a subset:
Work on this site
The site is the @swc/anyformat-docs package in apps/docs. It uses
Rspress. The pages are in apps/docs/docs.
When you change the API of a binding, update the page of its family in
apps/docs/docs/api.
Contributing
Read AGENTS.md and the AGENTS.md file of each directory that you change.
They describe the rules for the Rust crates and the bindings.