Deploy Rust applications with Hop
Dockerfile
if you don't want to use
Nixpacks.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.
rust-version
property in Cargo.toml
,NIXPACKS_RUST_VERSION
environment variable, orrust-toolchain.toml
fileworkspace.default_members
first and then workspace.members
. It also respects the workspace.exclude
field.
To set which workspace Hop will build, just set the NIXPACKS_CARGO_WORKSPACE
environment variable and Hop will use it as the --package
argument.