Skip to content

Confusing naming of builds folder #15611

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

Closed
pokepetter opened this issue May 30, 2025 · 2 comments
Closed

Confusing naming of builds folder #15611

pokepetter opened this issue May 30, 2025 · 2 comments

Comments

@pokepetter
Copy link

After running cargo build, I wanted to find the build it made.
My first guess was that it would be in builds/, but there was such folder.
The output from cargo build did not say where it put it either.
I looked through the folders and finally found it in target/release/. To me, that's not a very intuitive name considering the command is called cargo build.

Have you considered using a more intuitive name, like builds/? Or maybe have cargo build say where it put it after it has finished?

@weihanglo
Copy link
Member

The target directory layout is documented in https://doc.rust-lang.org/nightly/cargo/reference/build-cache.html#build-cache.

Since the target/ directory is so pervasive now, we can't simply change it. However, we are considering some changes for the layout of target directory, like splitting the intermediate build caches and he final artifact directory. See some more discussions in

Go ahead and close this since other issues should have tracked this. If the issue should be kept open, please comment below and let us know.

@weihanglo
Copy link
Member

Or maybe have cargo build say where it put it after it has finished?

Regarding adding more messages, there are also complaints about Cargo being too verbose. We have some other discussions of revmaping the console output.

At this moment, if you want programatic automations for getting the final artiacts, please take a look at the JSON message format Cargo can switch to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants