57 releases

new 0.8.10 Apr 18, 2025
0.8.8 Mar 26, 2025
0.8.2 Dec 25, 2024
0.8.1 Nov 17, 2024
0.1.19 Dec 17, 2023

#449 in Machine learning

Download history 43/week @ 2024-12-26 77/week @ 2025-01-02 549/week @ 2025-01-09 391/week @ 2025-01-16 182/week @ 2025-01-23 103/week @ 2025-01-30 728/week @ 2025-02-06 635/week @ 2025-02-13 512/week @ 2025-02-20 349/week @ 2025-02-27 181/week @ 2025-03-06 502/week @ 2025-03-13 1193/week @ 2025-03-20 1087/week @ 2025-03-27 713/week @ 2025-04-03 946/week @ 2025-04-10

4,192 downloads per month
Used in savvy

MIT license

20KB
429 lines

savvy-ffi

Minimal FFI bindings for R's C API. This contains only a subset of APIs sufficient for savvy framework. If you are looking for more complete one, libR-sys is probably what you want.

Some more notable differences between libR-sys are:

  • This is NOT a sys crate. Savvy-ffi is intended to be used within an R package, which compiles a staticlib from Rust code first and then links it to R. At the point of compilation by cargo, savvy-ffi is not yet linked, so this is fine.

  • All definitions are written by hand, with some help of bindgen, into a single file. There's no automatic version switch or platform switch. If some switch is needed, it will be provided as a feature (e.g. r_4_4_0) and it's user's responsibility to set it properly.

Dependencies

~52KB