time ./target/debug/fir compiler/Parser.fir -- tests/AndOrEvaluation.fir
time ./target/release/fir compiler/Parser.fir -- tests/AndOrEvaluation.fir
Outputs on my system with the latest Rust stable:
./target/debug/fir compiler/Parser.fir -- tests/AndOrEvaluation.fir 0.24s user 0.03s system 99% cpu 0.268 total
./target/release/fir compiler/Parser.fir -- tests/AndOrEvaluation.fir 0.04s user 0.02s system 5% cpu 1.115 total
error: failed to parse manifest at `/home/omer/fir/fir/Cargo.toml`
Caused by:
`panic` setting of `panic_immediate_abort` is not a valid setting, must be `unwind` or `abort`
I was under the impression you also had to instruct the compiler to build core/alloc/std? For example, instead of passing the flags explicitly to cargo/rustc, one can add the following tables to ~/.cargo/config.toml:
Then build it by running cargo +nightly build --release. Admittedly I have almost no experience using Cargo's unstable features, so perhaps passing build-std-features is sufficient.