31 releases (5 breaking)

new 0.6.1 Apr 26, 2024
0.5.3 Apr 16, 2024
0.4.1 Mar 30, 2024
0.1.19 Dec 17, 2023

#338 in Science

Download history 51/week @ 2024-01-08 74/week @ 2024-01-15 75/week @ 2024-01-22 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

1,999 downloads per month
Used in savvy

MIT license

10KB
161 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