9 releases
0.3.1 | Oct 24, 2022 |
---|---|
0.3.0 | Sep 15, 2022 |
0.2.2 | Aug 24, 2020 |
0.2.1 | Jul 9, 2020 |
0.1.2 | Apr 30, 2019 |
#1528 in Text processing
4,262 downloads per month
Used in 4 crates
(2 directly)
1.5MB
32K
SLoC
Contains (obscure autoconf code, 3KB) vendor/configure.ac
hunspell-sys
Rust bindings for the hunspell C API.
Building
By default hunspell-sys
searches for a hunspell library installation with pkg-config
. By default the linkage is dynamic
, if static
is required use static
Optionally, the bundled code of hunspell can be compiled with the cc
crate and will be linked static
ally when the bundled
feature is present. The feature static
is not required for this, the bundled
feature will always link the produced hunspell artifact statically.
[dependencies]
hunspell-sys = { version = "0.3.1", features = ["bundled"] }
musl targets
If compiling for/on musl
systems, libclang
as used by bindgen-rs
must be linked statically as well, which can be achieved with feature
static_libclang
.
[dependencies]
hunspell-sys = { version = "0.3.1", features = ["bundled", "static_libclang"] }
No runtime deps
~0–2.9MB
~49K SLoC