mirror of
https://github.com/girlbossceo/jemallocator.git
synced 2024-11-29 00:34:14 +00:00
61 lines
1.8 KiB
Markdown
61 lines
1.8 KiB
Markdown
# jemallocator-global
|
|
|
|
[![Travis-CI Status]][travis] [![Appveyor Status]][appveyor] [![Latest Version]][crates.io] [![docs]][docs.rs]
|
|
|
|
> Sets `jemalloc` as the `#[global allocator]` on targets that support it.
|
|
|
|
## Documentation / usage
|
|
|
|
Add it as a dependency:
|
|
|
|
```toml
|
|
# Cargo.toml
|
|
[dependencies]
|
|
jemallocator-global = "0.3.0"
|
|
```
|
|
|
|
and `jemalloc` will be used as the `#[global_allocator]` on targets that support
|
|
it.
|
|
|
|
## Cargo features
|
|
|
|
* `force_global_jemalloc` (disabled by default): unconditionally sets `jemalloc`
|
|
as the `#[global_allocator]`.
|
|
|
|
[`jemallocator`]: https://github.com/gnzlbg/jemallocator/
|
|
|
|
## Platform support
|
|
|
|
See [`jemallocator`]'s platform support.
|
|
|
|
## Documentation
|
|
|
|
For more information check out the [`jemallocator`] crate.
|
|
|
|
## License
|
|
|
|
This project is licensed under either of
|
|
|
|
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
|
http://www.apache.org/licenses/LICENSE-2.0)
|
|
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
|
|
http://opensource.org/licenses/MIT)
|
|
|
|
at your option.
|
|
|
|
## Contribution
|
|
|
|
Unless you explicitly state otherwise, any contribution intentionally submitted
|
|
for inclusion in `jemallocator-global` by you, as defined in the Apache-2.0 license,
|
|
shall be dual licensed as above, without any additional terms or conditions.
|
|
|
|
[travis]: https://travis-ci.org/gnzlbg/jemallocator
|
|
[Travis-CI Status]: https://travis-ci.org/gnzlbg/jemallocator.svg?branch=master
|
|
[appveyor]: https://ci.appveyor.com/project/gnzlbg/jemallocator/branch/master
|
|
[Appveyor Status]: https://ci.appveyor.com/api/projects/status/github/gnzlbg/jemallocator?branch=master&svg=true
|
|
[Latest Version]: https://img.shields.io/crates/v/jemallocator-global.svg
|
|
[crates.io]: https://crates.io/crates/jemallocator-global
|
|
[docs]: https://docs.rs/jemallocator-global/badge.svg
|
|
[docs.rs]: https://docs.rs/jemallocator-global/
|
|
|