sigmaSd / IRust

Cross Platform Rust Repl

Home Page:https://crates.io/crates/irust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can irust repl evaluate code with release mode instead of debug mode?

baiguoname opened this issue · comments

What can I do to execute the code with using release mode?

do you mean the library or the actual binary ?

In my understanding, when I call irust_repl.eval(some code), there must be some executing process like cargo run on the src\main.rs. I mean whether I can call cargo run --release rather than cargo run.

I just released a new version of irust_repl 0.21.0 that have this, you need to use eval_with_configuration and use CompileMode::Release https://github.com/sigmaSd/IRust/blob/master/crates/irust_repl/examples/re/main.rs#L27

fixed in 7ce8b46