From 75b3ba215c615f10268413b960d86b298db279b5 Mon Sep 17 00:00:00 2001 From: Schrodinger ZHU Yifan Date: Thu, 29 Jan 2026 09:36:26 -0500 Subject: [PATCH 1/2] misc: prepare for future release and bump versions --- snmalloc-rs/Cargo.toml | 4 ++-- snmalloc-rs/README.md | 30 +++++++++-------------------- snmalloc-rs/snmalloc-sys/Cargo.toml | 2 +- 3 files changed, 12 insertions(+), 24 deletions(-) diff --git a/snmalloc-rs/Cargo.toml b/snmalloc-rs/Cargo.toml index 30e1de4e3..3818f11fc 100644 --- a/snmalloc-rs/Cargo.toml +++ b/snmalloc-rs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "snmalloc-rs" -version = "0.3.8" +version = "0.7.4" authors = ["schrodingerzhu "] edition = "2021" license = "MIT" @@ -16,7 +16,7 @@ readme = "README.md" members = ["snmalloc-sys"] [dependencies] -snmalloc-sys = { version = "0.3.8", path = "snmalloc-sys", default-features = false } +snmalloc-sys = { version = "0.7.4", path = "snmalloc-sys", default-features = false } [features] default = ["snmalloc-sys/build_cmake", "snmalloc-sys/usewait-on-address"] diff --git a/snmalloc-rs/README.md b/snmalloc-rs/README.md index 8f06ce5d0..37ebf9fd1 100644 --- a/snmalloc-rs/README.md +++ b/snmalloc-rs/README.md @@ -1,11 +1,7 @@ # snmalloc-rs -**Notice: MinGW Build is broken and may not be fixed in a near future. -See [this PR](https://github.com/microsoft/snmalloc/pull/217) in the upstream.** +CI: [![Actions Status](https://github.com/schrodingerzhu/snmalloc-rs/workflows/rust/badge.svg)](https://github.com/microsoft/snmalloc-rs/actions) -MSVC/MinGW/Linux/MacOS: [![Actions Status](https://github.com/schrodingerzhu/snmalloc-rs/workflows/Rust/badge.svg)](https://github.com/schrodingerzhu/snmalloc-rs/actions) - -FreeBSD: [![Build Status](https://api.cirrus-ci.com/github/SchrodingerZhu/snmalloc-rs.svg)](https://cirrus-ci.com/github/SchrodingerZhu/snmalloc-rs) `snmalloc-rs` provides a wrapper for [`microsoft/snmalloc`](https://github.com/microsoft/snmalloc) to make it usable as a global allocator for rust. snmalloc is a research allocator. Its key design features are: @@ -16,9 +12,9 @@ a global allocator for rust. snmalloc is a research allocator. Its key design fe - The allocator uses large ranges of pages to reduce the amount of meta-data required. Some old benchmark results are available in -the [`snmalloc` paper](https://github.com/microsoft/snmalloc/blob/master/snmalloc.pdf). Some recent benchmark results -are listed at -[bench_suite](https://github.com/SchrodingerZhu/bench_suite). There are three features defined in this crate: +the [`snmalloc` paper](https://github.com/microsoft/snmalloc/blob/master/snmalloc.pdf). + +There are three features defined in this crate: - `debug`: Enable the `Debug` mode in `snmalloc`. - ~~`1mib`: Use the `1mib` chunk configuration. From `0.2.17`, this is set as a default feature~~ (removed since 0.3.0) @@ -58,19 +54,6 @@ To set `SnMalloc` as the global allocator add this to your project: static ALLOC: snmalloc_rs::SnMalloc = snmalloc_rs::SnMalloc; ``` -## For MinGW Users - -`mingw` version is only tested on nightly branch with MSYS environment. We are using dynamic linking method. Hence, -please make sure the following libs are in your `PATH`: - -- `winpthread` -- `atomic` -- `stdc++` -- `gcc_s` - -**Notice:** since version `0.2.12`, we no longer require you to provide additional environment variables for `mingw` -target. - ## For Android Cross-Compilation - `ANDROID_NDK` must be provided as an environment variable @@ -82,6 +65,11 @@ target. ## Changelog +### 0.7.4 + +- Tracking upstream to match version 0.7.4. +- SnMalloc has been moved to upstream repository. Future releases will track upstream release directly. + ### 0.3.8 - Tracking upstream to match version 0.7.1 diff --git a/snmalloc-rs/snmalloc-sys/Cargo.toml b/snmalloc-rs/snmalloc-sys/Cargo.toml index 88e17154e..74b75e57b 100644 --- a/snmalloc-rs/snmalloc-sys/Cargo.toml +++ b/snmalloc-rs/snmalloc-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "snmalloc-sys" -version = "0.3.8" +version = "0.7.4" authors = ["schrodingerzhu "] edition = "2021" license = "MIT" From 925ac2434c808b0ef0117ebf0865f19b6638f4c4 Mon Sep 17 00:00:00 2001 From: Schrodinger ZHU Yifan Date: Thu, 29 Jan 2026 09:57:08 -0500 Subject: [PATCH 2/2] fix README badge --- snmalloc-rs/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/snmalloc-rs/README.md b/snmalloc-rs/README.md index 37ebf9fd1..14818e2ee 100644 --- a/snmalloc-rs/README.md +++ b/snmalloc-rs/README.md @@ -1,7 +1,6 @@ # snmalloc-rs -CI: [![Actions Status](https://github.com/schrodingerzhu/snmalloc-rs/workflows/rust/badge.svg)](https://github.com/microsoft/snmalloc-rs/actions) - +[![snmalloc-rs CI](https://github.com/microsoft/snmalloc/actions/workflows/rust.yml/badge.svg)](https://github.com/microsoft/snmalloc/actions/workflows/rust.yml) `snmalloc-rs` provides a wrapper for [`microsoft/snmalloc`](https://github.com/microsoft/snmalloc) to make it usable as a global allocator for rust. snmalloc is a research allocator. Its key design features are: