Closed epage closed 6 years ago
Options
Cargo
unsafe
?cargo_metadata uses the CARGO
environment variable. https://github.com/oli-obk/cargo_metadata/blob/master/src/lib.rs#L302
Note that while this works fine for overriding cargo
in the cargo metadata
case (it allows setting the path to the cargo
binary), it's not such a great solution for cases where you want to override cargo build
so it instead runs cargo xbuild
for instance. I'm not sure how to best handle this.
it's not such a great solution for cases where you want to override cargo build so it instead runs cargo xbuild for instance. I'm not sure how to best handle this.
I guess that could be a special environment variable for escargot? The only other option is a custom cargo wrapper that maps build
to xbuild
.
Like xargo, see https://github.com/roblabla/cargo-travis/issues/34#issuecomment-420010176