From e35e9f4c88be4ca7bf08970109c1ff8d90018b02 Mon Sep 17 00:00:00 2001 From: Tianhao Wang Date: Wed, 5 Jun 2024 07:44:53 +0200 Subject: toolchain: replace xbuild with build-std for a no_std build with custom target, we need to build the rust compoments including core, alloc and compiler builtins. Previously we do this with the cargo xbuild tool. however it has some bugs with newer toolchains. The official build-std feature is not stable but looks promising! Also we could reduce a lot of build dependencies. References: https://github.com/rust-in-action/code/issues/14 Signed-off-by: Tianhao Wang --- .cargo/config.toml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .cargo/config.toml (limited to '.cargo/config.toml') diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..2abd771 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,3 @@ +[unstable] +build-std = ["core","alloc", "compiler_builtins"] +build-std-features = ["compiler-builtins-mem"] -- cgit v1.2.3-70-g09d2