From e0f02b008a8bfda361397e4d494b622b4e35ac3b Mon Sep 17 00:00:00 2001 From: Alex-Wengg Date: Sun, 26 Apr 2026 12:17:57 -0400 Subject: [PATCH 1/2] chore: bump version to 0.2.0 Closes #16. The published 0.1.0 on crates.io was cut from commit 699a68c (March 7, 2026) and predates ~49 commits of significant feature work, including: - pub fn tn_normalize_sentence + full TN (written -> spoken) support - Multi-language ITN for FR, DE, ES, HI, JA, ZH - Module rename from asr/tts to itn/tn - JavaScript-callable wasm bindings Users importing tn_normalize_sentence from crates.io 0.1.0 hit 'unresolved import' because the function only landed after 0.1.0 was published. Bumping to 0.2.0 (rather than 0.1.1) reflects the breadth of new public API surface added since the initial release. --- Cargo.lock | 2 +- Cargo.toml | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index dcdc0ff..2903a01 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -429,7 +429,7 @@ dependencies = [ [[package]] name = "text-processing-rs" -version = "0.1.0" +version = "0.2.0" dependencies = [ "console_error_panic_hook", "lazy_static", diff --git a/Cargo.toml b/Cargo.toml index cde6772..23fbd07 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "text-processing-rs" -version = "0.1.0" +version = "0.2.0" edition = "2021" license = "Apache-2.0" description = "Inverse Text Normalization (ITN) — convert spoken-form ASR output to written form" diff --git a/package.json b/package.json index 4ac5a1a..0f8de46 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fluidinference/text-processing-rs", - "version": "0.1.0", + "version": "0.2.0", "description": "Inverse Text Normalization (ITN) — convert spoken-form ASR output to written form", "type": "module", "main": "pkg-web/text_processing_rs.js", From 6208de46ee215985c3397f7705fd9c11aedbca14 Mon Sep 17 00:00:00 2001 From: Alex-Wengg Date: Sun, 26 Apr 2026 12:20:09 -0400 Subject: [PATCH 2/2] fix(ffi): derive nemo_version() from CARGO_PKG_VERSION Replaces the hardcoded "0.1.0\0" byte literal with a compile-time concatenation of CARGO_PKG_VERSION + null terminator. This keeps the C/Swift consumer view of the version in sync with Cargo.toml automatically, preventing future drift. --- src/ffi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ffi.rs b/src/ffi.rs index 137b389..cf65abe 100644 --- a/src/ffi.rs +++ b/src/ffi.rs @@ -168,7 +168,7 @@ pub extern "C" fn nemo_rule_count() -> u32 { /// Returns a static string, do not free. #[no_mangle] pub extern "C" fn nemo_version() -> *const c_char { - static VERSION: &[u8] = b"0.1.0\0"; + static VERSION: &[u8] = concat!(env!("CARGO_PKG_VERSION"), "\0").as_bytes(); VERSION.as_ptr() as *const c_char }