-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d8e4b6
commit 03f84c3
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# 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](https://crates.io/crates/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. |