Hop uses Nixpacks for automatic, configless
deployments. You can write a custom
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.
Versions
Hop supports all Rust versions. By default, the latest version is used, however it can be overriden by either:- The
rust-versionproperty inCargo.toml, - Setting the
NIXPACKS_RUST_VERSIONenvironment variable, or - A
rust-toolchain.tomlfile
Workspaces
Hop will automatically detect if you are using Cargo Workspaces. This checksworkspace.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.