Skip to content

Commit 95a39d5

Browse files
authored
[packaging] Rely on rust-toolchain.toml to decide toolchain (#138)
1 parent 20c4c32 commit 95a39d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

omicron-common/src/bin/omicron-package.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ struct Args {
9696

9797
fn build_rust_package(package: &str, release: bool) -> Result<()> {
9898
let mut cmd = Command::new("cargo");
99-
cmd.arg("+nightly").arg("build").arg("-p").arg(package);
99+
// We rely on the rust-toolchain.toml file for toolchain information,
100+
// rather than specifying one within the packaging tool.
101+
cmd.arg("build").arg("-p").arg(package);
100102
if release {
101103
cmd.arg("--release");
102104
}

0 commit comments

Comments
 (0)