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", 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 }