Building Cargo Packages
As mentioned before, you can look at leafc
as a wrapper around rustc
and
it should be work in any command using rustc
.
Building packages is no exception. As supported by cargo
you can set
build.rust
configuration key
to override the compiler.
$ export RUSTC=leafc
$ cargo build