Embed the Mono runtime


#1

I’m writing this project that needs embedded scripting in rust. I’d prefer to use VisualBasic as it honestly makes a pretty nice language for this purpose. But I’ve never really gotten into c/c++ so the guide here: http://www.mono-project.com/docs/advanced/embedding/scripting/ (SEE EDIT) isn’t something I’d be able to port into rust by myself.

Help/suggestions/guidance would be appreciated.
Sorry if this isn’t the place for this, I’m kinda new to the Rust community. (Though not as new to the language itself, just never participated in the community).

EDIT: Sorry, the link is not pointing to the correct document.
http://www.mono-project.com/docs/advanced/embedding/ is what I meant to type (who am I kidding? I copy + pasted it).


#2

Here are your options:

  1. Get very familiar with C, Rust, and how those may interact. Mono is a massive beast.
  2. Write minimal wrapper in C and expose it to Rust, perhaps even as simple as run_some_code(char* code).
  3. Choose one of dozen of existing Rust interpreters where integration will be much easier.

#3

A yes, number two seems like a good fit for this. I honestly don’t know why that didn’t occur to me before. Thanks!