33 releases (5 breaking)

0.6.3 May 5, 2024
0.6.1 Apr 26, 2024
0.4.1 Mar 30, 2024
0.1.19 Dec 17, 2023

#354 in Science

Download history 52/week @ 2024-01-21 101/week @ 2024-01-28 140/week @ 2024-02-04 532/week @ 2024-02-11 37/week @ 2024-02-18 211/week @ 2024-02-25 279/week @ 2024-03-03 592/week @ 2024-03-10 259/week @ 2024-03-17 483/week @ 2024-03-24 493/week @ 2024-03-31 413/week @ 2024-04-07 585/week @ 2024-04-14 201/week @ 2024-04-21 184/week @ 2024-04-28 292/week @ 2024-05-05

1,525 downloads per month
Used in savvy

MIT license

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