Shared rustc compiled objects? #12054
-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
First of all, your question isn't Tauri specific, everything talked about is "just" Rust. the files in debug/deps are build artifacts of the dependencies.
You can have a shared target dir by configuring Alternatively you can look into sccache is more for saving time than disk space though.
I only see the build script executables, not the app bins themselves. |
Beta Was this translation helpful? Give feedback.
First of all, your question isn't Tauri specific, everything talked about is "just" Rust.
the files in debug/deps are build artifacts of the dependencies.
the files in debug/build are the build artifacts of the build scripts of the dependencies that do have build scripts.
You can have a shared target dir by configuring
build.target-dir
in the cargo config, using the--target-dir
cli flag, or theCARGO_TARGET_DIR
env var. While this is generally fine to do, you can't have concurrent builds (of multiple projects) this way. It may also result in more recompilation than desired sometimes.Alternative…