✓ Uses Rust 2018 edition
|0.1.1||Aug 13, 2019|
|0.1.0||Aug 13, 2019|
#122 in Memory management
A Rust allocator which makes sound when active, like a Geiger counter.
Currently this just writes an ASCII
Inspired by Malloc Geiger.
alloc_geiger add it as a dependency:
# Cargo.toml [dependencies] alloc_geiger = "0.1"
alloc_geiger::Geiger as the global allocator, it must be initialized
with an underlying allocator. The
type System alias and its
make it easy to use the default system allocator:
#[global_allocator] static ALLOC: alloc_geiger::System = alloc_geiger::SYSTEM;
jemallocator may also be used:
use alloc_geiger::Geiger; use jemallocator::Jemalloc; #[global_allocator] static ALLOC: Geiger<Jemalloc> = Geiger::new(Jemalloc);
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in
alloc_geiger by you, as defined in the Apache-2.0 license,
shall be dual licensed as above, without any additional terms or conditions.