My goal is to be able to compile a string of code, for example
fn main() {
println!("Hello, world!");
}```
Dynamically at runtime for an end user who does not have rust compilation software installed.
Then hopefully I could save this to a new executeable. Im not well versed in rust so maybe there is an easy souloution to this.
After consulting AI, libraries like rustc embedded inside the crate were reccomended, yet none seemed to exist. I also looked into LLVM libraries, they didnt seem to do what I wanted either.
I am using a windows 64 bit system and hopefully the compiled file should be compatible.