From 20ed26b3b6936dc73830d183781bfab9639dbf7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Fri, 14 Jun 2024 15:56:38 +0200 Subject: [PATCH] Improve std feature flag in README Sorry, my previous example was hardcoded for `std`, but in theory this flag could be used also for core/alloc, if some people want to only rebuild these libstd crates. Using just `optimize_for_size` should be more rgeneral. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8bd0931..2baa388 100644 --- a/README.md +++ b/README.md @@ -205,7 +205,7 @@ host: x86_64-apple-darwin # Add the =std,panic_abort to the option to make panic = "abort" Cargo.toml option work. # See: https://github.com/rust-lang/wg-cargo-std-aware/issues/56 $ RUSTFLAGS="-Zlocation-detail=none" cargo +nightly build -Z build-std=std,panic_abort \ - -Z build-std-features="std/optimize_for_size" \ + -Z build-std-features="optimize_for_size" \ --target x86_64-apple-darwin --release ```