Skip to main content

mz_alloc_default/
lib.rs

1// Copyright Materialize, Inc. and contributors. All rights reserved.
2//
3// Use of this software is governed by the Business Source License
4// included in the LICENSE file.
5//
6// As of the Change Date specified in that file, in accordance with
7// the Business Source License, use of this software will be governed
8// by the Apache License, Version 2.0.
9
10//! Activates the best default global memory allocator for the platform.
11//!
12//! A `#[global_allocator]` takes effect only in binaries that load the crate
13//! defining it, so this crate re-exports `mz-alloc`. Binaries and benches that
14//! want the platform's default allocator reference this crate, for example
15//! with `use mz_alloc_default as _;`.
16
17pub use mz_alloc;