From 0316ccd90cb5539dc861fb6fc3d376582d4f765f Mon Sep 17 00:00:00 2001 From: Anand Krishnamoorthi <35780660+anakrish@users.noreply.github.com> Date: Fri, 30 Jan 2026 09:03:02 +0530 Subject: [PATCH] chore(release): publish vendored mimalloc crates (#563) - Prefix regorus- to mimalloc crates and add MIT licenses - alias dependencies to avoid code changes - add versions and release-plz publish entries - update Cargo.lock files for new crate names Signed-off-by: Anand Krishnamoorthi --- Cargo.lock | 30 +++++++++++++++--------------- Cargo.toml | 2 +- bindings/ffi/Cargo.lock | 30 +++++++++++++++--------------- bindings/java/Cargo.lock | 30 +++++++++++++++--------------- bindings/python/Cargo.lock | 30 +++++++++++++++--------------- mimalloc/Cargo.toml | 7 +++++-- mimalloc/mimalloc-sys/Cargo.toml | 6 +++++- release-plz.toml | 10 ++++++++++ 8 files changed, 81 insertions(+), 64 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 008a4ec..e53c16e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -812,20 +812,6 @@ version = "2.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273" -[[package]] -name = "mimalloc" -version = "2.2.6" -dependencies = [ - "mimalloc-sys", -] - -[[package]] -name = "mimalloc-sys" -version = "0.0.0" -dependencies = [ - "cc", -] - [[package]] name = "miniz_oxide" version = "0.8.9" @@ -1257,7 +1243,6 @@ dependencies = [ "ipnet", "jsonschema", "lazy_static", - "mimalloc", "msvc_spectre_libs", "num-bigint", "num-traits", @@ -1265,6 +1250,7 @@ dependencies = [ "prettydiff", "rand", "regex", + "regorus-mimalloc", "semver", "serde", "serde_json", @@ -1277,6 +1263,20 @@ dependencies = [ "walkdir", ] +[[package]] +name = "regorus-mimalloc" +version = "2.2.6" +dependencies = [ + "regorus-mimalloc-sys", +] + +[[package]] +name = "regorus-mimalloc-sys" +version = "2.2.6" +dependencies = [ + "cc", +] + [[package]] name = "rustversion" version = "1.0.22" diff --git a/Cargo.toml b/Cargo.toml index c2f72c9..45f5a80 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -124,7 +124,7 @@ rand = { version = "0.9.0", default-features = false, features = ["thread_rng"], # Causes the project to link with the Spectre-mitigated CRT and libs. msvc_spectre_libs = { version = "0.1", features = ["error"], optional = true } dashmap = { version = "6.1", default-features = false, optional = true } -mimalloc = { path = "mimalloc", optional = true } +mimalloc = { package = "regorus-mimalloc", path = "mimalloc", version = "2.2.6", optional = true } # rvm related deps indexmap = { version = "2.12.1", default-features = false, features = ["serde"], optional = true } diff --git a/bindings/ffi/Cargo.lock b/bindings/ffi/Cargo.lock index 32e7e05..c56e150 100644 --- a/bindings/ffi/Cargo.lock +++ b/bindings/ffi/Cargo.lock @@ -640,20 +640,6 @@ version = "2.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273" -[[package]] -name = "mimalloc" -version = "2.2.6" -dependencies = [ - "mimalloc-sys", -] - -[[package]] -name = "mimalloc-sys" -version = "0.0.0" -dependencies = [ - "cc", -] - [[package]] name = "msvc_spectre_libs" version = "0.1.3" @@ -963,12 +949,12 @@ dependencies = [ "ipnet", "jsonschema", "lazy_static", - "mimalloc", "msvc_spectre_libs", "num-bigint", "num-traits", "rand", "regex", + "regorus-mimalloc", "semver", "serde", "serde_json", @@ -990,6 +976,20 @@ dependencies = [ "serde_json", ] +[[package]] +name = "regorus-mimalloc" +version = "2.2.6" +dependencies = [ + "regorus-mimalloc-sys", +] + +[[package]] +name = "regorus-mimalloc-sys" +version = "2.2.6" +dependencies = [ + "cc", +] + [[package]] name = "rustix" version = "1.1.3" diff --git a/bindings/java/Cargo.lock b/bindings/java/Cargo.lock index 6b500a1..e512030 100644 --- a/bindings/java/Cargo.lock +++ b/bindings/java/Cargo.lock @@ -522,20 +522,6 @@ version = "2.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273" -[[package]] -name = "mimalloc" -version = "2.2.6" -dependencies = [ - "mimalloc-sys", -] - -[[package]] -name = "mimalloc-sys" -version = "0.0.0" -dependencies = [ - "cc", -] - [[package]] name = "msvc_spectre_libs" version = "0.1.3" @@ -838,12 +824,12 @@ dependencies = [ "ipnet", "jsonschema", "lazy_static", - "mimalloc", "msvc_spectre_libs", "num-bigint", "num-traits", "rand", "regex", + "regorus-mimalloc", "semver", "serde", "serde_json", @@ -864,6 +850,20 @@ dependencies = [ "serde_json", ] +[[package]] +name = "regorus-mimalloc" +version = "2.2.6" +dependencies = [ + "regorus-mimalloc-sys", +] + +[[package]] +name = "regorus-mimalloc-sys" +version = "2.2.6" +dependencies = [ + "cc", +] + [[package]] name = "rustversion" version = "1.0.22" diff --git a/bindings/python/Cargo.lock b/bindings/python/Cargo.lock index ac4c231..8211dda 100644 --- a/bindings/python/Cargo.lock +++ b/bindings/python/Cargo.lock @@ -502,20 +502,6 @@ dependencies = [ "autocfg", ] -[[package]] -name = "mimalloc" -version = "2.2.6" -dependencies = [ - "mimalloc-sys", -] - -[[package]] -name = "mimalloc-sys" -version = "0.0.0" -dependencies = [ - "cc", -] - [[package]] name = "msvc_spectre_libs" version = "0.1.3" @@ -897,12 +883,12 @@ dependencies = [ "ipnet", "jsonschema", "lazy_static", - "mimalloc", "msvc_spectre_libs", "num-bigint", "num-traits", "rand", "regex", + "regorus-mimalloc", "semver", "serde", "serde_json", @@ -913,6 +899,20 @@ dependencies = [ "uuid", ] +[[package]] +name = "regorus-mimalloc" +version = "2.2.6" +dependencies = [ + "regorus-mimalloc-sys", +] + +[[package]] +name = "regorus-mimalloc-sys" +version = "2.2.6" +dependencies = [ + "cc", +] + [[package]] name = "regoruspy" version = "0.9.0" diff --git a/mimalloc/Cargo.toml b/mimalloc/Cargo.toml index 303fa91..76b168d 100644 --- a/mimalloc/Cargo.toml +++ b/mimalloc/Cargo.toml @@ -1,7 +1,10 @@ [package] -name = "mimalloc" +name = "regorus-mimalloc" +description = "Vendored mimalloc allocator for regorus" edition = "2021" version = "2.2.6" +license = "MIT" +repository = "https://github.com/microsoft/regorus" [features] default = ["std"] @@ -9,5 +12,5 @@ std = [] allocator-memory-limits = ["std"] [target.'cfg(not(any(target_family = "wasm")))'.dependencies] -mimalloc-sys = { path = "./mimalloc-sys" } +mimalloc-sys = { package = "regorus-mimalloc-sys", path = "./mimalloc-sys", version = "2.2.6" } diff --git a/mimalloc/mimalloc-sys/Cargo.toml b/mimalloc/mimalloc-sys/Cargo.toml index 89cec3e..4d84c29 100644 --- a/mimalloc/mimalloc-sys/Cargo.toml +++ b/mimalloc/mimalloc-sys/Cargo.toml @@ -1,8 +1,12 @@ [package] -name = "mimalloc-sys" +name = "regorus-mimalloc-sys" +description = "Vendored mimalloc C allocator bindings for regorus" +version = "2.2.6" build = "build.rs" links = "mimalloc" edition = "2021" +license = "MIT" +repository = "https://github.com/microsoft/regorus" [dependencies] diff --git a/release-plz.toml b/release-plz.toml index 0dea38d..b00b829 100644 --- a/release-plz.toml +++ b/release-plz.toml @@ -12,6 +12,16 @@ git_release_enable = true changelog_update = true publish = true +[[package]] +name = "regorus-mimalloc" +publish = true +changelog_update = false + +[[package]] +name = "regorus-mimalloc-sys" +publish = true +changelog_update = false + [[package]] name = "xtask" release = false