Build from source¶
This section is for contributors and platforms without a matching wheel. For contribution guidance, see Contributing.
A source build compiles the Rust engine and bundled FFmpeg libraries. It needs
Rust, Python 3.11–3.14, uv, a C compiler, libclang, make, git, and NASM,
plus network access for the initial FFmpeg source fetch. The first build can
take a while. Python installs its FFmpeg executable dependency automatically;
native CLI tests and developer media tools still use ffmpeg on PATH.
Cargo builds the Rust workspace. Maturin, configured in pyproject.toml, builds
the Python extension from crates/vestra-python; uv invokes it when installing
the editable package. The Justfile provides shortcuts for build and test tasks.
With Nix (Linux and macOS)¶
The repository's Nix flake provides a pinned development environment, including Just and the native build dependencies. Install Nix with flakes enabled, then enter the shell from the repository root:
Run the build and checks inside that shell:
just python-sync
uv run python -c "import vestra; print(vestra.__version__)"
just check
just python-test
Without Nix¶
Install these tools and make sure they are available on PATH:
- The current stable Rust toolchain, including rustfmt and Clippy.
- Python 3.11–3.14; uv can install a compatible Python if needed.
- uv for the Python environment and editable package build.
- Just for build and test commands.
Native build and runtime dependencies:
- A C/C++ compiler and
maketo build bundled FFmpeg. - libclang to generate native bindings.
pkg-configfor library discovery.- Git for the initial FFmpeg source fetch.
- NASM for FFmpeg's x86 assembly.
ffmpegfor runtime encoding and audio processing.
On Ubuntu/Debian, install the native build tools and FFmpeg runtime before
running uv sync:
sudo apt-get update
sudo apt-get install -y build-essential clang libclang-dev \
pkg-config nasm git ffmpeg
build-essential supplies the C/C++ compiler and make. Installing the ffmpeg
executable alone does not supply the build tools above. A build error such as
nasm not found or too old means NASM must be installed or updated.
On other platforms, install equivalent native tools with your platform's package manager. From the repository root, build the editable package and check the installation:
uv sync --locked --extra dev
uv run python -c "import vestra; print(vestra.__version__)"
just check
just python-test
See testing for focused contributor checks.
Build the CLI¶
Build the separate CLI with Cargo:
The binary is target/debug/ve (ve.exe on Windows). Add it to PATH if you
want to use the short CLI commands. Continue with the
CLI quickstart or Python quickstart.