cross-rs / cross-toolchains

Additional Dockerfiles and crosstool-ng config files to build additional toolchains.
Apache License 2.0
88 stars 16 forks source link

Where is `cargo build-docker-image`? #36

Closed memark closed 1 year ago

memark commented 1 year ago

In several of the examples, commands beginning with cargo build-docker-image are run. Where can this cargo tool build-docker-image be found? I've googled up a couple of close-named relatives, but not this specific one.

Emilgardis commented 1 year ago

It's defined here:

https://github.com/cross-rs/cross/blob/6982b6c8f97b9db56bc6e005427d2367bb39a93f/.cargo/config.toml#L3

which is https://github.com/cross-rs/cross/blob/6982b6c8f97b9db56bc6e005427d2367bb39a93f/xtask/src/build_docker_image.rs#L100

So, cross-toolchains need to be used as a submodule in the cross repo, and then with cargo build-docker-image you can invoke the alias

Hope that helps :)

memark commented 1 year ago

Great, thanks! @Emilgardis