https://github.com/euclio/hunspell-sys
Rust bindings for the hunspell C API
https://github.com/euclio/hunspell-sys
ffi-bindings hunspell rust
Last synced: about 2 months ago
JSON representation
Rust bindings for the hunspell C API
- Host: GitHub
- URL: https://github.com/euclio/hunspell-sys
- Owner: euclio
- License: other
- Created: 2019-04-25T14:32:23.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-24T22:27:28.000Z (over 2 years ago)
- Last Synced: 2025-03-17T23:52:07.862Z (about 2 months ago)
- Topics: ffi-bindings, hunspell, rust
- Language: Rust
- Homepage:
- Size: 27.3 KB
- Stars: 10
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# hunspell-sys
[](https://crates.io/crates/hunspell-sys)
[](https://docs.rs/hunspell-sys)
[](https://travis-ci.com/euclio/hunspell-sys)Rust bindings for the [hunspell] C API.
[hunspell]: https://hunspell.github.io/
## 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.
```toml
[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`.```toml
[dependencies]
hunspell-sys = { version = "0.3.1", features = ["bundled", "static_libclang"] }
```