Skip to content

Commit

Permalink
Remove rust-toolchain
Browse files Browse the repository at this point in the history
Doesn't make much sense in a workspace.
  • Loading branch information
tamird committed Nov 26, 2024
1 parent 2f6bad7 commit ea3b9fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:

- uses: dtolnay/rust-toolchain@nightly
with:
components: rust-src,rustfmt
components: rustfmt,rust-src

- uses: dtolnay/rust-toolchain@master
if: runner.os == 'macOS' && runner.arch == 'X64'
Expand Down
3 changes: 0 additions & 3 deletions {{project-name}}-ebpf/rust-toolchain.toml

This file was deleted.

7 changes: 3 additions & 4 deletions {{project-name}}/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ fn main() {

let mut cmd = Command::new("cargo");
cmd.args([
"+nightly",
"build",
"-Z",
"build-std=core",
Expand All @@ -71,10 +72,8 @@ fn main() {

cmd.env("CARGO_CFG_BPF_TARGET_ARCH", arch);

// Workaround to make sure that the rust-toolchain.toml is respected.
for key in ["RUSTUP_TOOLCHAIN", "RUSTC", "RUSTC_WORKSPACE_WRAPPER"] {
cmd.env_remove(key);
}
// Workaround to make sure that the correct toolchain is used.
cmd.env_remove("RUSTC_WORKSPACE_WRAPPER");
cmd.current_dir(ebpf_dir);

// Workaround for https://github.com/rust-lang/cargo/issues/6412 where cargo flocks itself.
Expand Down

0 comments on commit ea3b9fc

Please sign in to comment.