From 117e66def7e610aeb8ad5f73768f1dd61acd9f58 Mon Sep 17 00:00:00 2001 From: lc285652 Date: Wed, 21 Oct 2026 10:36:40 +0800 Subject: [PATCH] chore(release): 0.8.0 Bump the workspace from 0.7.2 to 0.8.0 for the v0.8.0 tag. This is a breaking release for the `jieba` FTS tokenizer. 6949471 adapted to upstream zvec embedding cppjieba's default dictionary and HMM model into libzvec_c_api as LZ4-compressed arrays, which deleted four C-API functions and, with them, the corresponding Rust surface: ConfigBuilder::jieba_dict_dir set_default_jieba_dict_dir / get_default_jieba_dict_dir the ZVEC_RUST_JIEBA_DICT_DIR build-time env the data/jieba_dict staging in zvec-rust-build and in the prebuilt SDKs A dictionary directory is now resolved by the engine itself as per-field extra_params["jieba_dict_dir"] > ZVEC_JIEBA_DICT_DIR > the embedded default, so code that called any of the removed APIs has to be updated; code that relied on the default keeps working with no files on disk. 0.8.0 also matches the upstream v0.8.0 series the vendor submodule tracks (currently v0.8.0-beta2 = 8397071). Also new since 0.7.2: `Collection::try_close` (6120ca9), which reports a failed native close instead of leaving it to the `Drop` warning, and an aarch64-pc-windows-msvc prebuilt (ec4ae91). The two historical notes about releases up to v0.7.2 stamping macOS 14.0 on Apple Silicon are left as they are. Verified locally: `cargo fmt --all -- --check`, `cargo clippy --workspace --all-targets -- -D warnings`, unit tests 119 + 8, and `cargo publish --dry-run` for zvec-rust-build and zvec-rust-sys. The zvec-rust dry-run fails only on `zvec-rust-sys = "^0.8.0"` not being on crates.io yet, which publish-crates.yml resolves by publishing the -sys crate first and waiting for it to appear. --- Cargo.lock | 8 ++++---- Cargo.toml | 2 +- README.md | 6 +++--- README_CN.md | 6 +++--- zvec/Cargo.toml | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f67ff8d..62b6488 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -915,7 +915,7 @@ checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" [[package]] name = "zvec-rpath-smoke" -version = "0.7.2" +version = "0.8.0" dependencies = [ "zvec-rust", "zvec-rust-build", @@ -923,7 +923,7 @@ dependencies = [ [[package]] name = "zvec-rust" -version = "0.7.2" +version = "0.8.0" dependencies = [ "criterion", "rand", @@ -933,8 +933,8 @@ dependencies = [ [[package]] name = "zvec-rust-build" -version = "0.7.2" +version = "0.8.0" [[package]] name = "zvec-rust-sys" -version = "0.7.2" +version = "0.8.0" diff --git a/Cargo.toml b/Cargo.toml index 2016350..e558124 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ exclude = ["fuzz"] resolver = "2" [workspace.package] -version = "0.7.2" +version = "0.8.0" edition = "2021" license = "Apache-2.0" repository = "https://github.com/zvec-ai/zvec-rust" diff --git a/README.md b/README.md index f8b9b03..9e58f8d 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ Add `zvec-rust` to your `Cargo.toml`. The default `bundled` feature automaticall ```toml [dependencies] -zvec-rust = "0.7.2" +zvec-rust = "0.8.0" ``` `cargo run` / `cargo test` work out of the box because Cargo passes the @@ -81,10 +81,10 @@ the executable: ```toml [dependencies] -zvec-rust = "0.7.2" +zvec-rust = "0.8.0" [build-dependencies] -zvec-rust-build = "0.7.2" +zvec-rust-build = "0.8.0" ``` ```rust diff --git a/README_CN.md b/README_CN.md index 6c07c6d..1b9a624 100644 --- a/README_CN.md +++ b/README_CN.md @@ -66,7 +66,7 @@ Rust SDK 依赖 zvec C 库(`libzvec_c_api`)。可通过以下任一方式提 ```toml [dependencies] -zvec-rust = "0.7.2" +zvec-rust = "0.8.0" ``` `cargo run` / `cargo test` 可开箱即用,因为 Cargo 会把解析出的库目录传给链接器。 @@ -77,10 +77,10 @@ zvec-rust = "0.7.2" ```toml [dependencies] -zvec-rust = "0.7.2" +zvec-rust = "0.8.0" [build-dependencies] -zvec-rust-build = "0.7.2" +zvec-rust-build = "0.8.0" ``` ```rust diff --git a/zvec/Cargo.toml b/zvec/Cargo.toml index 5274ad7..5b68078 100644 --- a/zvec/Cargo.toml +++ b/zvec/Cargo.toml @@ -12,7 +12,7 @@ categories = ["database", "api-bindings"] links = "zvec_rust" [dependencies] -zvec-rust-sys = { path = "../zvec-sys", version = "0.7.2" } +zvec-rust-sys = { path = "../zvec-sys", version = "0.8.0" } [features] default = ["bundled"]