-
Couldn't load subscription status.
- Fork 2.7k
Closed
Description
cc #1657
I have a directory structure like this
project/
| Cargo.toml
| .cargo/
| | config
|
| src/
| | main.rs
|
| subcrate1/
| | Cargo.toml
| | build.rs
| | src/
| | | lib.rs
|
| target/
.cargo/config:
[build]
target-dir = "./target" # it wouldn't build at all with just "target"So we have a lot of dependencies that are shared between these crates, and it would greatly increase our travis testing times to not recompile all the dependencies for each subcrate. However, when I cd into a subcrate and run cargo build, it builds the dependencies into both the "shared" target directory and the local target directory. If I then go into another subcrate and type cargo build, it rebuilds all of the dependencies even though they are already compiled in the shared target dir.
Metadata
Metadata
Assignees
Labels
No labels