Skip to content
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

Honor build.target-dir from .cargo/config.toml #18838

Open
laundmo opened this issue Jan 5, 2025 · 0 comments
Open

Honor build.target-dir from .cargo/config.toml #18838

laundmo opened this issue Jan 5, 2025 · 0 comments
Assignees
Labels
A-cargo cargo related issues A-config configuration C-feature Category: feature request

Comments

@laundmo
Copy link

laundmo commented Jan 5, 2025

This is a follow-up to:

With that PR, rust-analyzer honors the environment variable CARGO_TARGET_DIR but this is not the only location users may change the target directory.

The other option is using target-dir in the Cargo config:
https://doc.rust-lang.org/cargo/reference/config.html#buildtarget-dir
Which rust-analyzer still doesn't honor.

Due to the same reasoning it was decided R-A should honor CARGO_TARGET_DIR, i would request that this config be honored as well.

@laundmo laundmo added the C-feature Category: feature request label Jan 5, 2025
@Veykril Veykril added A-config configuration A-cargo cargo related issues labels Jan 6, 2025
@alibektas alibektas self-assigned this Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cargo cargo related issues A-config configuration C-feature Category: feature request
Projects
None yet
Development

No branches or pull requests

3 participants