From 012e9becd0c532cddf16ec18b9149fa0a2646db8 Mon Sep 17 00:00:00 2001 From: Bernhard Schuster Date: Fri, 10 Jul 2020 10:36:47 +0200 Subject: [PATCH] fix/hunspell: bump hunspell to v0.3.0, assure hunspell is bundled Fixes #14 --- Cargo.lock | 9 +++++---- Cargo.toml | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8c7666dc..4f658c69 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -210,9 +210,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.54" +version = "1.0.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7bbb73db36c1246e9034e307d0fba23f9a2e251faa47ade70c1bd252220c8311" +checksum = "f9a06fb2e53271d7c279ec1efea6ab691c35a2ae67ec0d91d7acec0caf13b518" [[package]] name = "cexpr" @@ -707,9 +707,9 @@ dependencies = [ [[package]] name = "hunspell-rs" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de083fbce75a3f4ddd28e9edf37a396ec645ebdfeefe1411f9250c966b94bfc7" +checksum = "6c24d12fc6308fed12469846419baec12ad78de0c97d4f2e4a4ffc1b3f910838" dependencies = [ "hunspell-sys", ] @@ -721,6 +721,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b843d878e9211fe6af0c41f76a9b47bf8033cc01b6a59e99a3961316cf48ddce" dependencies = [ "bindgen", + "cc", "pkg-config", ] diff --git a/Cargo.toml b/Cargo.toml index 8812f325..9fe809b1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,7 @@ isolang = { version = "1", features = ["serde_serialize"] } url = { version = "2", features = ["serde"] } # dictionary -hunspell-rs = { version = "0.2", optional = true } +hunspell-rs = { version = "0.3", default-features=false, optional = true } # full grammar check languagetool-rs = { version = "0.1", package = "languagetool", optional = true } @@ -54,6 +54,6 @@ console = "0.11" default = ["hunspell"] languagetool = ["languagetool-rs"] -hunspell = ["hunspell-rs"] +hunspell = ["hunspell-rs/bundled"] all = ["hunspell", "languagetool"]