r-rust / hellorust

Template R package with rust bindings
Other
258 stars 20 forks source link

The rustr package #1

Closed yihui closed 6 years ago

yihui commented 6 years ago

This is just FYI: @qinwf has worked on the rustr package for a couple of years: https://github.com/rustr/rustr

jeroen commented 6 years ago

This is also mentioned in the readme. I don't understand how to use rustr in R packages, or if it is intended to embed R in rust applications?

This repository is meant as a minimal example for setting up portable R packages with rust code, as a template for R bindings to rust libraries.

Perhaps we could use rustr headers in R packages by importing rustr it in Cargo.toml so that we can manipulate SEXP types in rust code? Maybe @qinwf can point us to an example of using rustr in R packages.

yihui commented 6 years ago

Ah, sorry I didn't read readme it carefully enough.