| Crates.io | hfst-sys |
| lib.rs | hfst-sys |
| version | 0.1.8 |
| created_at | 2024-11-18 14:31:42.158175+00 |
| updated_at | 2025-11-20 10:29:35.462356+00 |
| description | Wrappers to libhfst (raw bindings to the c api) |
| homepage | |
| repository | https://github.com/giellatekno/hfst-rust |
| max_upload_size | |
| id | 1452237 |
| size | 27,673 |
Library with raw bindings to hfst_c, the c api version of hfst.
To generate bindings, run just bindings (or just b). See all just recipies with
just just.
The bindings are generated with build.rs, but it quieres the system for hfst, which the build machinery on crates.io does not have. Therefore, we run the build on our machines, before pushing to crates.io.
https://rust-lang.github.io/rust-bindgen/command-line-usage.html
There is one test, and it is marked as #[ignore], to not be run automatically
or by tools. The rest requires the north sámi analyser, located in the
apertium nightly place, namely
/usr/share/giella/sme/analyser-dict-gt-desc.hfstol.
If you have this file, run cargo test -- --ignored to run the test.