From dcc1c5edc184ca4749aca1334f0e7240ae1551a6 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 7 Dec 2020 16:30:23 +0100 Subject: [PATCH 1/2] Bump version to 0.3.1 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ffdb380..2f0e002 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "word-segmenters" -version = "0.3.0" +version = "0.3.1" authors = ["Dirkjan Ochtman "] edition = "2018" license = "Apache-2.0" From 275c3c63cb067ac6e1814013db316a35b73b87ae Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 16 Dec 2020 10:36:38 +0100 Subject: [PATCH 2/2] Rename crate to instant-segment --- Cargo.toml | 8 ++++---- benches/bench.rs | 2 +- tests/basic.rs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2f0e002..813ba43 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,13 +1,13 @@ [package] -name = "word-segmenters" +name = "instant-segment" version = "0.3.1" authors = ["Dirkjan Ochtman "] edition = "2018" license = "Apache-2.0" description = "Fast English word segmentation" -homepage = "https://github.com/InstantDomainSearch/word-segmenters" -repository = "https://github.com/InstantDomainSearch/word-segmenters" -documentation = "https://docs.rs/word-segmenters" +homepage = "https://github.com/InstantDomainSearch/instant-segment" +repository = "https://github.com/InstantDomainSearch/instant-segment" +documentation = "https://docs.rs/instant-segment" [features] __test_data = [] diff --git a/benches/bench.rs b/benches/bench.rs index 15b894d..e302296 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -6,7 +6,7 @@ benchmark_group!(benches, short); benchmark_main!(benches); fn short(bench: &mut Bencher) { - let segmenter = word_segmenters::test_data::segmenter(); + let segmenter = instant_segment::test_data::segmenter(); let mut out = Vec::new(); bench.iter(|| segmenter.segment("thisisatest", &mut out)); } diff --git a/tests/basic.rs b/tests/basic.rs index 6b89161..b15cfc5 100644 --- a/tests/basic.rs +++ b/tests/basic.rs @@ -2,7 +2,7 @@ use once_cell::sync::Lazy; -use word_segmenters::Segmenter; +use instant_segment::Segmenter; #[test] fn test_segment_0() { @@ -168,4 +168,4 @@ fn assert_segments(s: &[&str]) { assert_eq!(cmp, s); } -static SEGMENTER: Lazy = Lazy::new(word_segmenters::test_data::segmenter); +static SEGMENTER: Lazy = Lazy::new(instant_segment::test_data::segmenter);