34 releases (5 breaking)

new 0.6.4 May 25, 2024
0.6.1 Apr 26, 2024
0.4.1 Mar 30, 2024
0.1.19 Dec 17, 2023

#391 in Science

Download history 97/week @ 2024-01-29 124/week @ 2024-02-05 548/week @ 2024-02-12 16/week @ 2024-02-19 348/week @ 2024-02-26 453/week @ 2024-03-04 289/week @ 2024-03-11 366/week @ 2024-03-18 406/week @ 2024-03-25 511/week @ 2024-04-01 516/week @ 2024-04-08 451/week @ 2024-04-15 187/week @ 2024-04-22 314/week @ 2024-04-29 151/week @ 2024-05-06 221/week @ 2024-05-13

898 downloads per month
Used in savvy

MIT license

19KB
412 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