From 5e416a25b092337358d6543917f9e3589c8239c1 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Tue, 26 Nov 2024 15:01:29 -0500 Subject: [PATCH] Remove duplicate instances of `-Z build-std` --- {{project-name}}-ebpf/.cargo/config.toml | 4 ---- {{project-name}}/build.rs | 2 -- 2 files changed, 6 deletions(-) diff --git a/{{project-name}}-ebpf/.cargo/config.toml b/{{project-name}}-ebpf/.cargo/config.toml index d8d7a20..3ff5764 100644 --- a/{{project-name}}-ebpf/.cargo/config.toml +++ b/{{project-name}}-ebpf/.cargo/config.toml @@ -1,7 +1,3 @@ -# We have this so that one doesn't need to manually pass -# --target=bpfel-unknown-none -Z build-std=core when running cargo -# check/build/doc etc. -# # NB: this file gets loaded only if you run cargo from this directory, it's # ignored if you run from the workspace root. See # https://doc.rust-lang.org/cargo/reference/config.html#hierarchical-structure diff --git a/{{project-name}}/build.rs b/{{project-name}}/build.rs index fa41cc9..a79b46b 100644 --- a/{{project-name}}/build.rs +++ b/{{project-name}}/build.rs @@ -60,8 +60,6 @@ fn main() { let mut cmd = Command::new("cargo"); cmd.args([ "build", - "-Z", - "build-std=core", "--bins", "--message-format=json", "--release",