mirror of
https://github.com/bspeice/qadapt
synced 2025-07-03 06:45:02 -04:00
Strip QADAPT symbols for release-mode builds
This commit is contained in:
@ -3,12 +3,8 @@
|
||||
//! This allocator is a helper for writing high-performance code that is allocation/drop free;
|
||||
//! for functions annotated with `#[allocate_panic]`, QADAPT will detect when allocations/drops
|
||||
//! happen during their execution (and execution of any functions they call) and throw a
|
||||
//! thread panic if this occurs.
|
||||
//!
|
||||
//! Because QADAPT panics on allocation and is rather slow (for an allocator) it is **strongly**
|
||||
//! recommended that QADAPT (the allocator) be used only in code tests. Functions annotated with
|
||||
//! `#[allocate_panic]` will have no side effects if the QADAPT allocator is not being used,
|
||||
//! so the attribute is safe to leave everywhere.
|
||||
//! thread panic if this occurs. QADAPT-related code is stripped out during release builds,
|
||||
//! so no worries about random allocations crashing in production.
|
||||
//!
|
||||
//! Currently this crate is Nightly-only, but will work once `const fn` is in Stable.
|
||||
//!
|
||||
|
Reference in New Issue
Block a user