Просмотр исходного кода

Merge pull request #651 from alessandrod/bpf-cargo-config

Add back bpf/.cargo/config.toml
Alessandro Decina 1 год назад
Родитель
Сommit
e2b673eb41
1 измененных файлов с 14 добавлено и 0 удалено
  1. 14 0
      bpf/.cargo/config.toml

+ 14 - 0
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"]