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.toml | 8 -------- 1 file changed, 8 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index b421406..b858d96 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,18 +9,10 @@ license = "eupl-1.2" spin = "0.9.8" bitflags = "2.4.2" -# rebuild components, instead of using the prebuilt ones. -# see https://os.phil-opp.com/heap-allocation/#the-allocator-interface -# [unstable] -# build-std = ["core", "compiler_builtins", "alloc"] - [dependencies.lazy_static] version = "1.4" features = ["spin_no_std"] -# [build] -# target = "x86_64-rustubs" - [lib] crate-type = ["staticlib"] -- cgit v1.2.3-70-g09d2