From c64d8e2bb78fb6ce490f3a20db9d09b6f24d7d8a Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Fri, 14 Jul 2023 02:02:20 +1000 Subject: [PATCH] Add back bpf/.cargo/config.toml So to build/check things using the bpf target one can: cd bpf && cargo check && cargo build without having to manually pass --target=bpfel-unknown-none -Z build-std=core. It also fixes cargo xtask docs, since the command relies on bpf docs being built with the bpfel-unknown-none target. --- bpf/.cargo/config.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 bpf/.cargo/config.toml diff --git a/bpf/.cargo/config.toml b/bpf/.cargo/config.toml new file mode 100644 index 00000000..7dc8f90d --- /dev/null +++ b/bpf/.cargo/config.toml @@ -0,0 +1,14 @@ +# 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 +# +# NB-2: cargo xtask docs currently relies on this file existing. +[build] +target = "bpfel-unknown-none" + +[unstable] +build-std = ["core"]