-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to avoid repeated "downloading component 'rust-std' " #1579
Comments
Please provide more detail, what does repeated download of Are you using |
@Emilgardis , yes, in my outer Docker I do:
Then, I use this container to do: COMMAND ${DOCKER_EXECUTABLE} run --rm -v "${CMAKE_CURRENT_SOURCE_DIR}/ThirdParty/${PROJECT_NAME}:/${PROJECT_NAME}" -v "${CMAKE_CURRENT_BINARY_DIR}/target:/${PROJECT_NAME}/target" -w "/${PROJECT_NAME}" -v /var/run/docker.sock:/var/run/docker.sock ${PROJECT_NAME} cross build --release --target=aarch64-unknown-linux-gnu Important note: I execute
My connection is rather fast, but I still experience additional delay from this "rust-std" every time, and I think it could be removed. I think it could be done by mounting the host folder into the outer docker, and then by mounting the same folder down into the cross container. Please tell me what commands and paths I should use. |
im a bit confused, is this in a Are you using cross from the main branch? |
This is CMake, here. I build CMake rules to automate the build process, so that it could fit anywhere that could run CMake, for example into VSCode. It is not relevant to this question. I kindly ask you to return back to the plot: the cross container is not able to avoid repeated download of rust-std package. There must be an instruction from your side to cache rust-std when cross is launched in |
I install cross here, this way:
|
Ok thank you, I think i have the full context now. Try making |
When running cross-rs from within another Docker container, please provide a clear instruction how to avoid repeated download of rust-std:
The text was updated successfully, but these errors were encountered: