1. Build in release mode
target/release.
2. Create bach.toml
Cargo.toml for the name, version, first author and program name. For a package called note-pad you get (without the commented-out options):
bach.toml
version.workspace = true), Bach can’t read it and writes 1.0.0. Set it yourself, or pass it at build time with bach build --app-version 0.3.1.
Use a clean folder instead (recommended)
target/release can hold other programs from the same workspace, test files and leftovers from earlier builds. A folder with only what you ship is safer:
bach.toml
The Visual C++ runtime
Rust programs built for Windows with the default (MSVC) toolchain usually need the Visual C++ runtime (vcruntime140.dll). Many computers have it, some don’t. You have two options.
Build the runtime into your program:
.cargo/config.toml
bach.toml
Command-line tools
For a tool people type in a terminal, put it onPATH and skip the desktop shortcut:
bach.toml
note-pad from any new terminal window.
3. Check and build
Next steps
- Windows integration
- One-click releases from GitHub.
bach versionalso updatesCargo.tomlandCargo.lock. - Sign your setup file