- Language Support
Hop uses Nixpacks for automatic Rust deployments. You
can write a custom
Dockerfile if you don’t want to use Nixpacks.
Rust is detected if a
Cargo.toml file is found in your project root. Hop builds your project using
cargo build --release and then deploys and executes the resulting binary.
Hop supports all Rust versions. By default, the latest version is used, however it can be overriden by either:
- Setting the
NIXPACKS_RUST_VERSIONenvironment variable, or
Hop will automatically detect if you are using Cargo Workspaces.
workspace.default_members first and then
workspace.members. It also respects the
To set which workspace Hop will build, just set the
NIXPACKS_CARGO_WORKSPACE environment variable and Hop will use it as the