From a18ba5c95e4bffb0b9f9e1f5fd7f24760237695e Mon Sep 17 00:00:00 2001 From: Sergio Gasquez Date: Thu, 27 Apr 2023 16:55:20 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20Add=20alloc=20to=20build-st?= =?UTF-8?q?d=20property?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rust-nostd-esp/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rust-nostd-esp/Dockerfile b/rust-nostd-esp/Dockerfile index 391e143..b5ac7d8 100644 --- a/rust-nostd-esp/Dockerfile +++ b/rust-nostd-esp/Dockerfile @@ -15,6 +15,9 @@ RUN cargo generate -a esp-rs/esp-template --name rust-project-esp32s2 --vcs none RUN cargo generate -a esp-rs/esp-template --name rust-project-esp32s3 --vcs none --silent -d mcu=esp32s3 -d defaults=true RUN cargo generate -a esp-rs/esp-template --name rust-project-esp32c3 --vcs none --silent -d mcu=esp32c3 -d defaults=true +# Add alloc to the build-std property +RUN find . -name "config.toml" -type f -exec sed -i 's/build-std = \["core"\]/build-std = \["alloc", "core"\]/g' {} + + # Copy utility scripts and setup COPY compile.sh /home/esp/ RUN mkdir -p /home/esp/build-in /home/esp/build-out