Update README

This commit is contained in:
Alex Crichton 2017-07-07 08:24:26 -07:00
parent 834f517f31
commit 0dd43f6dfa
1 changed files with 4 additions and 0 deletions

View File

@ -18,7 +18,11 @@ jemallocator = "0.1"
Rust:
```rust
#![feature(global_allocator)]
extern crate jemallocator;
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
```
And that's it! Once you've linked to this crate then jemalloc will be used for