*: bump 0.5.0 (#26)

Signed-off-by: Jay Lee <BusyJayLee@gmail.com>
This commit is contained in:
Jay 2022-05-24 16:31:42 -07:00 committed by Jay Lee
parent 2ffd08eeb8
commit 2ba4ecca63
No known key found for this signature in database
GPG Key ID: 71E4789CFC80BCFA
10 changed files with 21 additions and 17 deletions

View File

@ -4,11 +4,11 @@ on:
pull_request: pull_request:
branches: branches:
- 'master' - 'master'
- 'tikv-main' - 'main'
push: push:
branches: branches:
- 'master' - 'master'
- 'tikv-main' - 'main'
jobs: jobs:
test: test:

View File

@ -1,3 +1,7 @@
# 0.5.0 - 2022-05-19
- Update jemalloc to 5.3.0 (#23)
# 0.4.3 - 2022-02-21 # 0.4.3 - 2022-02-21
- Added riscv64 support (#14) - Added riscv64 support (#14)

View File

@ -4,7 +4,7 @@
This project is the successor of [jemallocator](https://github.com/gnzlbg/jemallocator). This project is the successor of [jemallocator](https://github.com/gnzlbg/jemallocator).
The project is published as `tikv-jemallocator` and `jemallocator` for historical reasons. The two crates are the same except names. It's OK to use either crate. For new projects, `jemallocator` should be used. The project is published as `tikv-jemallocator` and `jemallocator` for historical reasons. The two crates are the same except names. It's OK to use either crate. But due to lack of permissions, only `jemallocator` and `jemalloc-sys` are updated. If you want to use other crates, `tikv-xxx` versions are still required.
> Links against `jemalloc` and provides a `Jemalloc` unit type that implements > Links against `jemalloc` and provides a `Jemalloc` unit type that implements
> the allocator APIs and can be set as the `#[global_allocator]` > the allocator APIs and can be set as the `#[global_allocator]`
@ -30,7 +30,7 @@ To use `jemallocator` add it as a dependency:
[dependencies] [dependencies]
[target.'cfg(not(target_env = "msvc"))'.dependencies] [target.'cfg(not(target_env = "msvc"))'.dependencies]
jemallocator = "0.4.3" jemallocator = "0.5"
``` ```
To set `jemallocator::Jemalloc` as the global allocator add this to your project: To set `jemallocator::Jemalloc` as the global allocator add this to your project:

View File

@ -1,6 +1,6 @@
[package] [package]
name = "jemalloc-ctl" name = "jemalloc-ctl"
version = "0.4.3" version = "0.5.0"
authors = [ authors = [
"Steven Fackler <sfackler@gmail.com>", "Steven Fackler <sfackler@gmail.com>",
"Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>", "Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>",
@ -26,12 +26,12 @@ is-it-maintained-open-issues = { repository = "tikv/jemallocator" }
maintenance = { status = "actively-developed" } maintenance = { status = "actively-developed" }
[dependencies] [dependencies]
jemalloc-sys = { path = "../jemalloc-sys", version = "0.4.0" } jemalloc-sys = { path = "../jemalloc-sys", version = "0.5.0" }
libc = { version = "0.2", default-features = false } libc = { version = "0.2", default-features = false }
paste = "1" paste = "1"
[dev-dependencies] [dev-dependencies]
jemallocator = { path = "../jemallocator", version = "0.4.0" } jemallocator = { path = "../jemallocator", version = "0.5.0" }
[features] [features]
default = [] default = []

View File

@ -1,6 +1,6 @@
[package] [package]
name = "jemalloc-sys" name = "jemalloc-sys"
version = "0.4.3+5.3.0" version = "0.5.0+5.3.0"
authors = [ authors = [
"Alex Crichton <alex@alexcrichton.com>", "Alex Crichton <alex@alexcrichton.com>",
"Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>", "Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>",

View File

@ -1,7 +1,7 @@
[package] [package]
name = "jemallocator-global" name = "jemallocator-global"
# Make sure to update the version in the readme as well: # Make sure to update the version in the readme as well:
version = "0.4.3" version = "0.5.0"
authors = [ authors = [
"Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>", "Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>",
"The TiKV Project Developers", "The TiKV Project Developers",
@ -26,7 +26,7 @@ is-it-maintained-open-issues = { repository = "tikv/jemallocator" }
maintenance = { status = "actively-developed" } maintenance = { status = "actively-developed" }
[dependencies] [dependencies]
jemallocator = { version = "0.4.0", path = "../jemallocator", optional = true } jemallocator = { version = "0.5.0", path = "../jemallocator", optional = true }
cfg-if = "0.1" cfg-if = "0.1"
[features] [features]
@ -38,7 +38,7 @@ force_global_jemalloc = [ "jemallocator" ]
# for a particular target, white-list the target explicitly here: # for a particular target, white-list the target explicitly here:
[target.'cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))'.dependencies] [target.'cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))'.dependencies]
jemallocator = { version = "0.4.0", path = "../jemallocator", optional = false } jemallocator = { version = "0.5.0", path = "../jemallocator", optional = false }
# FIXME: https://github.com/gnzlbg/jemallocator/issues/91 # FIXME: https://github.com/gnzlbg/jemallocator/issues/91
# [target.'cfg(target_os = "windows")'.dependencies] # [target.'cfg(target_os = "windows")'.dependencies]

View File

@ -11,7 +11,7 @@ Add it as a dependency:
```toml ```toml
# Cargo.toml # Cargo.toml
[dependencies] [dependencies]
jemallocator-global = "0.4.0" jemallocator-global = "0.5.0"
``` ```
and `jemalloc` will be used as the `#[global_allocator]` on targets that support and `jemalloc` will be used as the `#[global_allocator]` on targets that support

View File

@ -5,7 +5,7 @@
//! ```toml //! ```toml
//! # Cargo.toml //! # Cargo.toml
//! [dependencies] //! [dependencies]
//! jemallocator-global = "0.4.0" //! jemallocator-global = "0.5.0"
//! ``` //! ```
//! //!
//! and `jemalloc` will be used as the `#[global_allocator]` on targets that //! and `jemalloc` will be used as the `#[global_allocator]` on targets that

View File

@ -1,7 +1,7 @@
[package] [package]
name = "jemallocator" name = "jemallocator"
# Make sure to update the version in the README as well: # Make sure to update the version in the README as well:
version = "0.4.3" version = "0.5.0"
authors = [ authors = [
"Alex Crichton <alex@alexcrichton.com>", "Alex Crichton <alex@alexcrichton.com>",
"Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>", "Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>",
@ -33,12 +33,12 @@ test = false
bench = false bench = false
[dependencies] [dependencies]
jemalloc-sys = { path = "../jemalloc-sys", version = "0.4.0", default-features = false } jemalloc-sys = { path = "../jemalloc-sys", version = "0.5.0", default-features = false }
libc = { version = "^0.2.8", default-features = false } libc = { version = "^0.2.8", default-features = false }
[dev-dependencies] [dev-dependencies]
paste = "1" paste = "1"
jemalloc-ctl = { path = "../jemalloc-ctl", version = "0.4.0" } jemalloc-ctl = { path = "../jemalloc-ctl", version = "0.5.0" }
[features] [features]
default = ["background_threads_runtime_support"] default = ["background_threads_runtime_support"]

View File

@ -28,5 +28,5 @@ pub static malloc_conf: Option<&'static libc::c_char> = Some(unsafe {
#[test] #[test]
fn background_threads_enabled() { fn background_threads_enabled() {
// Background threads are unconditionally enabled at run-time by default. // Background threads are unconditionally enabled at run-time by default.
assert_eq!(jemalloc_ctl::opt::background_thread::read().unwrap(), true); assert!(jemalloc_ctl::opt::background_thread::read().unwrap());
} }