44 releases (7 breaking)

0.8.1 Nov 17, 2024
0.7.2 Oct 27, 2024
0.6.5 Jul 2, 2024
0.4.1 Mar 30, 2024
0.1.19 Dec 17, 2023

#524 in Machine learning

Download history 117/week @ 2024-08-17 268/week @ 2024-08-24 726/week @ 2024-08-31 301/week @ 2024-09-07 909/week @ 2024-09-14 344/week @ 2024-09-21 361/week @ 2024-09-28 301/week @ 2024-10-05 504/week @ 2024-10-12 805/week @ 2024-10-19 850/week @ 2024-10-26 170/week @ 2024-11-02 199/week @ 2024-11-09 310/week @ 2024-11-16 205/week @ 2024-11-23 95/week @ 2024-11-30

828 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