Is it possible to generate and execute Rust code at runtime?
Not yet, officially, though it should be at least possible with not too much hacking. The biggest obstacle is that the libraries do not have any ability to do dynamic loading yet. Here’s a potential strategy to make it work (on Rust’s incoming branch). Link to the rustc crate to drive the compiler programmatically. Be … Read more