diff --git a/CHANGELOG.md b/CHANGELOG.md index 42ef7dd..e5c845e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ This project follows [Semantic Versioning](https://semver.org/). ## [Unreleased] +## [0.3.0] - 2026-08-07 + +### Breaking +- Renamed the crate from `spellbound` to `spellkit` + ### Changed - Document locale and threading caveats in the README - Drop obsolete `unexpected_cfgs` lint (no longer needed after objc2) diff --git a/Cargo.lock b/Cargo.lock index d104488..d36f709 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,13 +2,22 @@ # It is not intended for manual editing. version = 4 +[[package]] +name = "aho-corasick" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" +dependencies = [ + "memchr", +] + [[package]] name = "bindgen" version = "0.61.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a022e58a142a46fea340d68012b9201c094e93ec3d033a944a24f8fd4a4f09a" dependencies = [ - "bitflags 1.0.4", + "bitflags 1.3.2", "cexpr", "clang-sys", "lazy_static", @@ -26,9 +35,9 @@ dependencies = [ [[package]] name = "bitflags" -version = "1.0.4" +version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "228047a76f468627ca71776ecdebd732a3423081fcf5125585bcd7c49886ce12" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" @@ -54,12 +63,6 @@ dependencies = [ "nom", ] -[[package]] -name = "cfg-if" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11d43355396e872eefb45ce6342e4374ed7bc2b3a502d1b28e36d6e23c05d1f4" - [[package]] name = "cfg-if" version = "1.0.4" @@ -105,17 +108,17 @@ dependencies = [ [[package]] name = "glob" -version = "0.3.0" +version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" +checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b" [[package]] name = "home" -version = "0.5.12" +version = "0.5.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc627f471c528ff0c4a49e1d5e60450c8f6461dd6d10ba9dcd3a61d3dff7728d" +checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf" dependencies = [ - "windows-sys 0.61.2", + "windows-sys 0.59.0", ] [[package]] @@ -130,9 +133,9 @@ dependencies = [ [[package]] name = "lazy_static" -version = "1.3.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc5729f27f159ddd61f4df6228e827e86643d4d3e7c32183cb30a1c08f604a14" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "lazycell" @@ -152,7 +155,7 @@ version = "0.8.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55" dependencies = [ - "cfg-if 1.0.4", + "cfg-if", "windows-link", ] @@ -164,18 +167,15 @@ checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" [[package]] name = "log" -version = "0.4.8" +version = "0.4.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7" -dependencies = [ - "cfg-if 0.1.7", -] +checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad" [[package]] name = "memchr" -version = "2.3.0" +version = "2.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3197e20c7edb283f87c071ddfc7a2cca8f8e0b888c242959846a6fce03c72223" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" [[package]] name = "minimal-lexical" @@ -359,9 +359,9 @@ checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" [[package]] name = "pkg-config" -version = "0.3.17" +version = "0.3.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05da548ad6865900e60eaba7f589cc0783590a92e940c26953ff81ddbab2d677" +checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e" [[package]] name = "proc-macro2" @@ -383,18 +383,32 @@ dependencies = [ [[package]] name = "regex" -version = "1.8.4" +version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0ab3ca65655bb1e41f2a8c8cd662eb4fb035e67c3f78da1d61dffe89d07300f" +checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +dependencies = [ + "aho-corasick", + "memchr", "regex-syntax", ] [[package]] name = "regex-syntax" -version = "0.7.5" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbb5fb1acd8a1a18b3dd5be62d25485eb770e05afb408a9627d14d451bae12da" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" [[package]] name = "rustc-hash" @@ -422,10 +436,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" [[package]] -name = "spellbound" -version = "0.2.0" +name = "spellkit" +version = "0.3.0" dependencies = [ - "cfg-if 1.0.4", + "cfg-if", "hunspell-sys", "objc2", "objc2-app-kit", diff --git a/Cargo.toml b/Cargo.toml index 7d00c13..58a8498 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,11 @@ [package] -name = "spellbound" +name = "spellkit" description = "Bindings to your friendly neighborhood spellchecker." keywords = ["spellcheck", "spellchecker", "hunspell"] categories = ["os", "text-processing"] -documentation = "https://docs.rs/spellbound" -repository = "https://github.com/rtmongold/spellbound" -version = "0.2.1" +documentation = "https://docs.rs/spellkit" +repository = "https://github.com/rtmongold/spellkit" +version = "0.3.0" authors = [ "Andy Russell ", "Robert Mongold " diff --git a/README.md b/README.md index 3a73e4d..f241bc9 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# spellbound +# spellkit -[![CI](https://github.com/rtmongold/spellbound/actions/workflows/ci.yml/badge.svg)](https://github.com/rtmongold/spellbound/actions/workflows/ci.yml) +[![CI](https://github.com/rtmongold/spellkit/actions/workflows/ci.yml/badge.svg)](https://github.com/rtmongold/spellkit/actions/workflows/ci.yml) Native spell checking with a small Rust API. -This is a **maintained fork** of [euclio/spellbound](https://github.com/euclio/spellbound) +This project is **based on** [euclio/spellbound](https://github.com/euclio/spellbound) (last upstream commit 2020). | Platform | API | @@ -20,9 +20,9 @@ This is a **maintained fork** of [euclio/spellbound](https://github.com/euclio/s ## Example ```rust -use spellbound::Checker; +use spellkit::Checker; -fn main() -> Result<(), spellbound::Error> { +fn main() -> Result<(), spellkit::Error> { let checker = Checker::new()?; // Or: Checker::with_locale("en-US")?; @@ -62,4 +62,4 @@ MIT OR Apache-2.0 ## Credits -Originally by [Andy Russell](https://github.com/euclio). Maintained in this fork by Robert Mongold. \ No newline at end of file +Originally by [Andy Russell](https://github.com/euclio). Maintained as `spellkit` by Robert Mongold. diff --git a/src/lib.rs b/src/lib.rs index 7a42a48..186f401 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -//! `spellbound` is a small crate that binds to the native platform's spell checking APIs and +//! `spellkit` is a small crate that binds to the native platform's spell checking APIs and //! provides a friendlier API. //! //! This corresponds to [`ISpellChecker`] on Windows, [`NSSpellChecker`] on MacOS, and [`hunspell`] @@ -7,7 +7,7 @@ //! # Example //! //! ``` -//! use spellbound::Checker; +//! use spellkit::Checker; //! //! let mut checker = Checker::new().unwrap(); //! diff --git a/src/main.rs b/src/main.rs index 87946ba..53c829e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,6 @@ -extern crate spellbound; - use std::env; -use spellbound::Checker; +use spellkit::Checker; fn main() { let text = env::args().skip(1).collect::>().join(" ");