52 releases

0.8.6 Feb 8, 2025
0.8.3 Jan 11, 2025
0.8.2 Dec 25, 2024
0.8.1 Nov 17, 2024
0.1.19 Dec 17, 2023

#564 in Machine learning

Download history 229/week @ 2024-11-18 168/week @ 2024-11-25 97/week @ 2024-12-02 636/week @ 2024-12-09 109/week @ 2024-12-16 191/week @ 2024-12-23 34/week @ 2024-12-30 502/week @ 2025-01-06 433/week @ 2025-01-13 62/week @ 2025-01-20 190/week @ 2025-01-27 666/week @ 2025-02-03 554/week @ 2025-02-10 431/week @ 2025-02-17 524/week @ 2025-02-24 208/week @ 2025-03-03

1,810 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