https://github.com/playxe/boehm-rs
Rust interface to BoehmGC providing global allocator implementation that uses this GC
https://github.com/playxe/boehm-rs
Last synced: 8 days ago
JSON representation
Rust interface to BoehmGC providing global allocator implementation that uses this GC
- Host: GitHub
- URL: https://github.com/playxe/boehm-rs
- Owner: playXE
- License: mit
- Created: 2019-02-01T04:28:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-01T17:39:05.000Z (about 6 years ago)
- Last Synced: 2024-10-06T00:09:20.622Z (7 months ago)
- Language: Rust
- Size: 55.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# boehm-rs
Rust interface to BoehmGC
# Examples
```rust
use boehm_rs::global_alloc::GcAlloc;
use boehm_rs::{gc_init,gc_enable};#[global_allocator]
static A: GcAlloc = GcAlloc;fn main() {
gc_enable();
gc_init();
let string = String::from("Hello,world!");println!("{}",string);
}
```