`RUSTC_WRAPPER` that uses `docker buildx build`
MIT License
supergreen
Faster Rust builds!
cargo-green
: Cargo plugin and $RUSTC_WRAPPER
to sandbox, cache & remote exec cargo
buildsDOCKER_HOST=
with e.g. ssh://[email protected]
cargo
usage
cargo
doesrustc
anytime
rustc
does necessitate a fresh buildrustc
calls in buildkit
-like calls (docker
, podman
)
docker
podman
crater
)
C
deps.dockerignore
s (to be authoritative on srcs)rustc
wrapper through $RUSTC_WRAPPER
cargo
subcommand
rustc
version
rustc
base imagemold
, ...)
Dockerfile
stage?[SEC]
support building a crate without it having network accessuser-wide-cache
rustc
, ...)WORKDIR
s + rewrite paths with remap-path-prefix
[SEC]
ensure private deps don't leak through/to cachecargo install
's any cratecross
rust
: Compile a crate from its source archive directly
cargo
: Tell rustc
wrappers which envs to pass through to allow env sandboxing
=1 stage per Dockerfile part file
See ./hack/