38 releases (5 breaking)

new 0.6.7 Sep 5, 2024
0.6.5 Jul 2, 2024
0.4.1 Mar 30, 2024
0.1.19 Dec 17, 2023

#392 in Science

Download history 256/week @ 2024-05-20 245/week @ 2024-05-27 49/week @ 2024-06-03 106/week @ 2024-06-10 27/week @ 2024-06-17 69/week @ 2024-06-24 279/week @ 2024-07-01 57/week @ 2024-07-08 112/week @ 2024-07-15 66/week @ 2024-07-22 166/week @ 2024-07-29 48/week @ 2024-08-05 23/week @ 2024-08-12 229/week @ 2024-08-19 284/week @ 2024-08-26 696/week @ 2024-09-02

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

~53KB