diff options
Diffstat (limited to 'crates/shirabe/src/lib.rs')
| -rw-r--r-- | crates/shirabe/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/shirabe/src/lib.rs b/crates/shirabe/src/lib.rs index 9daf2188..3b142e74 100644 --- a/crates/shirabe/src/lib.rs +++ b/crates/shirabe/src/lib.rs @@ -25,6 +25,10 @@ pub mod self_update; pub mod signal; pub mod util; +// Declared here to use this allocator in all binaries including tests and benches. +#[global_allocator] +static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; + // InstalledVersions is intentionally unported to Rust. It is a runtime API for plugins and project // code, never read by Composer itself. Its real state is stored in PHP's InstalledVersions class. // See also `__shirabe_installed_versions_reload` in crates/shirabe-php-rpc/php/worker.php. |
