Add opt-for-size core lib feature flag

This commit is contained in:
Dion Dokter 2024-05-11 14:07:19 +02:00
parent be7549f82c
commit 1d1981b7b0

View file

@ -31,6 +31,8 @@ rand_xorshift = { version = "0.3.0", default-features = false }
[features] [features]
# Make panics and failed asserts immediately abort without formatting any message # Make panics and failed asserts immediately abort without formatting any message
panic_immediate_abort = [] 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 # Make `RefCell` store additional debugging information, which is printed out when
# a borrow error occurs # a borrow error occurs
debug_refcell = [] debug_refcell = []