diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bbda4f..f25c755 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.5.4 - 2024-08-23 +### Readability +- Fix typo and cargo clippy warnings. +- Add single line benchmark. + ## 0.5.3 - 2024-07-26 ### Bug fixes - Fix simple matcher is_match function. diff --git a/Cargo.lock b/Cargo.lock index c3b0d83..b6f600e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -61,15 +61,18 @@ checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" [[package]] name = "bytes" -version = "1.6.1" +version = "1.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a12916984aab3fa6e39d655a33e09c0071eb36d6ab3aea5c2d78551f1df6d952" +checksum = "8318a53db07bb3f8dca91a600466bdb3f2eaadeedfdbcf02e1accbad9271ba50" [[package]] name = "cc" -version = "1.1.7" +version = "1.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26a5c3fd7bfa1ce3897a3a3501d362b2d87b7f2583ebcb4a949ec25911025cbc" +checksum = "72db2f7947ecee9b03b510377e8bb9077afa27176fdbff55c51027e976fdcc48" +dependencies = [ + "shlex", +] [[package]] name = "cfg-if" @@ -79,18 +82,18 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "clap" -version = "4.5.11" +version = "4.5.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35723e6a11662c2afb578bcf0b88bf6ea8e21282a953428f240574fcc3a2b5b3" +checksum = "ed6719fffa43d0d87e5fd8caeab59be1554fb028cd30edc88fc4369b17971019" dependencies = [ "clap_builder", ] [[package]] name = "clap_builder" -version = "4.5.11" +version = "4.5.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49eb96cbfa7cfa35017b7cd548c75b14c3118c98b423041d70562665e07fb0fa" +checksum = "216aec2b177652e3846684cbfe25c9964d18ec45234f0f5da5157b207ed1aab6" dependencies = [ "anstyle", "clap_lex", @@ -169,9 +172,9 @@ checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" [[package]] name = "faststr" -version = "0.2.19" +version = "0.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f375fcf41ec4dac873a8028fba4210dbda5c86bba13d2d741e651b474f7c05a4" +checksum = "4e7291411748f478e31aca447a88e9ea3f7d06be7e1cb94a38c3b6670811226c" dependencies = [ "bytes", "serde", @@ -210,9 +213,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.155" +version = "0.2.158" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" +checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439" [[package]] name = "libmimalloc-sys" @@ -242,7 +245,7 @@ dependencies = [ [[package]] name = "matcher_c" -version = "0.5.3" +version = "0.5.4" dependencies = [ "matcher_rs", "sonic-rs", @@ -250,7 +253,7 @@ dependencies = [ [[package]] name = "matcher_py" -version = "0.5.3" +version = "0.5.4" dependencies = [ "matcher_rs", "pyo3", @@ -260,7 +263,7 @@ dependencies = [ [[package]] name = "matcher_rs" -version = "0.5.3" +version = "0.5.4" dependencies = [ "aho-corasick-unsafe", "bitflags", @@ -420,9 +423,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.36" +version = "1.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" +checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" dependencies = [ "proc-macro2", ] @@ -528,6 +531,12 @@ dependencies = [ "syn", ] +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + [[package]] name = "simdutf8" version = "0.1.4" @@ -561,9 +570,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.72" +version = "2.0.75" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc4b9b9bf2add8093d3f2c0204471e951b2285580335de42f9d2534f3ae7a8af" +checksum = "f6af063034fc1935ede7be0122941bafa9bacb949334d090b77ca98b5817c7d9" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index b6fc69b..a79d970 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,14 +5,14 @@ members = ["matcher_rs", "matcher_py", "matcher_c"] [workspace.package] authors = ["Fuji Guo "] categories = ["text-processing"] -description = "A high performance multiple functional word matcher" +description = "A high-performance matcher designed to solve LOGICAL and TEXT VARIATIONS problems in word matching, implemented in Rust." edition = "2021" homepage = "https://github.com/Lips7/Matcher" readme = "README.md" keywords = ["text", "string", "search", "pattern", "multi"] license = "Apache-2.0 OR MIT" repository = "https://github.com/Lips7/Matcher" -version = "0.5.3" +version = "0.5.4" rust-version = "1.79.0" [profile.release] diff --git a/README.md b/README.md index 968b1c8..0b32c2a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ![PyPI - Version](https://img.shields.io/pypi/v/matcher_py)![PyPI - Python Version](https://img.shields.io/pypi/pyversions/matcher_py)![PyPI - Downloads](https://img.shields.io/pypi/dm/matcher_py) -A high-performance matcher designed to solve **AND OR NOT** and **TEXT VARIATIONS** problems in word/word_list matching. +A high-performance matcher designed to solve **LOGICAL and TEXT VARIATIONS** problems in word matching, implemented in Rust. It's helpful for - **Content Filtering**: Detecting and filtering out offensive or sensitive words. diff --git a/README_CN.md b/README_CN.md index bf9b66b..a8cd1ce 100644 --- a/README_CN.md +++ b/README_CN.md @@ -8,7 +8,7 @@ ![PyPI - Version](https://img.shields.io/pypi/v/matcher_py)![PyPI - Python Version](https://img.shields.io/pypi/pyversions/matcher_py)![PyPI - Downloads](https://img.shields.io/pypi/dm/matcher_py) -一个高性能文本匹配器,旨在解决**与或非**和**文本变体**问题中的词/词列表匹配。 +一个高性能文本匹配器,旨在解决**逻辑**和**文本变体**的词匹配问题。 它对以下方面非常有帮助: - **内容过滤**:检测和攻击性或敏感词语。 diff --git a/matcher_c/Cargo.toml b/matcher_c/Cargo.toml index d38fac6..bffcdae 100644 --- a/matcher_c/Cargo.toml +++ b/matcher_c/Cargo.toml @@ -18,5 +18,5 @@ name = "matcher_c" crate-type = ["cdylib", "rlib"] [dependencies] -matcher_rs = { path = "../matcher_rs", version = "0.5.3" } +matcher_rs = { path = "../matcher_rs", version = "0.5.4" } sonic-rs = "0.3.11" diff --git a/matcher_c/README.md b/matcher_c/README.md index adf4a83..f50ba37 100644 --- a/matcher_c/README.md +++ b/matcher_c/README.md @@ -2,7 +2,7 @@ ## Overview -Matcher is a high-performance matching library implemented in Rust, providing C FFI bindings for seamless integration with other programming languages. This library is designed for various matching tasks, including simple and complex match types with normalization and deletion capabilities. +A high-performance matcher designed to solve **LOGICAL and TEXT VARIATIONS** problems in word matching, implemented in Rust. ## Installation diff --git a/matcher_java/README.md b/matcher_java/README.md index f2d9df2..03dc538 100644 --- a/matcher_java/README.md +++ b/matcher_java/README.md @@ -2,7 +2,7 @@ ## Overview -Matcher is a high-performance matching library implemented in Rust, providing C FFI bindings for seamless integration with other programming languages. This library is designed for various matching tasks, including simple and complex match types with normalization and deletion capabilities. +A high-performance matcher designed to solve **LOGICAL and TEXT VARIATIONS** problems in word matching, implemented in Rust. ## Installation diff --git a/matcher_java/pom.xml b/matcher_java/pom.xml index ff6cef4..b0d0ef3 100644 --- a/matcher_java/pom.xml +++ b/matcher_java/pom.xml @@ -6,7 +6,7 @@ com.matcher_java matcher_java - 0.5.2 + 0.5.4 matcher_java diff --git a/matcher_py/Cargo.toml b/matcher_py/Cargo.toml index 7b7837a..f65cb4c 100644 --- a/matcher_py/Cargo.toml +++ b/matcher_py/Cargo.toml @@ -19,7 +19,7 @@ name = "matcher_py" crate-type = ["cdylib"] [dependencies] -matcher_rs = { path = "../matcher_rs", version = "0.5.3" } +matcher_rs = { path = "../matcher_rs", version = "0.5.4" } pyo3 = { version = "0.22.2", features = ["extension-module"] } sonic-rs = "0.3.11" diff --git a/matcher_py/README.md b/matcher_py/README.md index acb82a3..ad084ae 100644 --- a/matcher_py/README.md +++ b/matcher_py/README.md @@ -1,8 +1,8 @@ # Matcher Rust Implementation with PyO3 Binding -A high-performance, multi-functional word matcher implemented in Rust. +A high-performance matcher designed to solve **LOGICAL and TEXT VARIATIONS** problems in word matching, implemented in Rust. -Designed to solve **AND OR NOT** and **TEXT VARIATIONS** problems in word/word_list matching. For detailed implementation, see the [Design Document](../DESIGN.md). +For detailed implementation, see the [Design Document](../DESIGN.md). ## Features diff --git a/matcher_py/pyproject.toml b/matcher_py/pyproject.toml index 68e4f73..6c5c940 100644 --- a/matcher_py/pyproject.toml +++ b/matcher_py/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "matcher_py" -description = "Blazingly fast Word Matcher" -version = "0.5.3" +description = "A high-performance matcher designed to solve LOGICAL and TEXT VARIATIONS problems in word matching, implemented in Rust." +version = "0.5.4" readme = "README.md" requires-python = ">=3.8" authors = [{ name = 'Fuji Guo', email = "f975793771@gmail.com" }] diff --git a/matcher_rs/README.md b/matcher_rs/README.md index 5b573a4..f17973f 100644 --- a/matcher_rs/README.md +++ b/matcher_rs/README.md @@ -1,8 +1,8 @@ # Matcher -A high-performance, multi-functional word matcher implemented in Rust. +A high-performance matcher designed to solve **LOGICAL and TEXT VARIATIONS** problems in word matching, implemented in Rust. -Designed to solve **AND OR NOT** and **TEXT VARIATIONS** problems in word/word_list matching. For detailed implementation, see the [Design Document](../DESIGN.md). +For detailed implementation, see the [Design Document](../DESIGN.md). ## Features