68 releases

Uses new Rust 2024

new 0.10.0 Apr 10, 2026
0.9.3 Mar 31, 2026
0.9.0 Nov 24, 2025
0.8.13 Jul 28, 2025
0.1.19 Dec 17, 2023

#210 in FFI

Download history 256/week @ 2025-12-19 265/week @ 2025-12-26 896/week @ 2026-01-02 840/week @ 2026-01-09 789/week @ 2026-01-16 516/week @ 2026-01-23 433/week @ 2026-01-30 1214/week @ 2026-02-06 1052/week @ 2026-02-13 493/week @ 2026-02-20 784/week @ 2026-02-27 885/week @ 2026-03-06 1096/week @ 2026-03-13 501/week @ 2026-03-20 194/week @ 2026-03-27 460/week @ 2026-04-03

2,288 downloads per month
Used in savvy

MIT license

22KB
455 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

~0–280KB