From 1d1981b7b05f7883d23b4edcdc73868333bd318a Mon Sep 17 00:00:00 2001 From: Dion Dokter Date: Sat, 11 May 2024 14:07:19 +0200 Subject: [PATCH] Add opt-for-size core lib feature flag --- library/core/Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/core/Cargo.toml b/library/core/Cargo.toml index a02fcf50416..11d33971f25 100644 --- a/library/core/Cargo.toml +++ b/library/core/Cargo.toml @@ -31,6 +31,8 @@ rand_xorshift = { version = "0.3.0", default-features = false } [features] # Make panics and failed asserts immediately abort without formatting any message panic_immediate_abort = [] +# Choose algorithms that are optimized for binary size instead of runtime performance +optimize_for_size = [] # Make `RefCell` store additional debugging information, which is printed out when # a borrow error occurs debug_refcell = []