2018-11-04 13:03:39 +00:00
|
|
|
# jemallocator-global
|
|
|
|
|
2020-07-22 07:39:21 +00:00
|
|
|
[![Travis-CI Status]][travis] [![Latest Version]][crates.io] [![docs]][docs.rs]
|
2018-11-04 13:03:39 +00:00
|
|
|
|
|
|
|
> Sets `jemalloc` as the `#[global allocator]` on targets that support it.
|
|
|
|
|
|
|
|
## Documentation / usage
|
|
|
|
|
|
|
|
Add it as a dependency:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
# Cargo.toml
|
|
|
|
[dependencies]
|
2022-05-24 23:31:42 +00:00
|
|
|
tikv-jemallocator-global = "0.5.0"
|
2018-11-04 13:03:39 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
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]`.
|
|
|
|
|
2020-07-21 11:33:59 +00:00
|
|
|
[`tikv-jemallocator`]: https://github.com/tikv/jemallocator/
|
2018-11-04 13:03:39 +00:00
|
|
|
|
|
|
|
## 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
|
2020-07-21 11:33:59 +00:00
|
|
|
for inclusion in `tikv-jemallocator-global` by you, as defined in the Apache-2.0 license,
|
2018-11-04 13:03:39 +00:00
|
|
|
shall be dual licensed as above, without any additional terms or conditions.
|
|
|
|
|
2020-07-21 11:33:59 +00:00
|
|
|
[travis]: https://travis-ci.com/tikv/jemallocator
|
|
|
|
[Travis-CI Status]: https://travis-ci.com/tikv/jemallocator.svg?branch=master
|
|
|
|
[Latest Version]: https://img.shields.io/crates/v/tikv-jemallocator.svg
|
|
|
|
[crates.io]: https://crates.io/crates/tikv-jemallocator
|
|
|
|
[docs]: https://docs.rs/tikv-jemallocator/badge.svg
|
|
|
|
[docs.rs]: https://docs.rs/tikv-jemallocator/
|