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

.cargo/config in root makes writing utilities more frustrating #279

Closed
Crzyrndm opened this issue Dec 19, 2021 · 1 comment
Closed

.cargo/config in root makes writing utilities more frustrating #279

Crzyrndm opened this issue Dec 19, 2021 · 1 comment

Comments

@Crzyrndm
Copy link
Contributor

Crzyrndm commented Dec 19, 2021

cargo traverses parent directories until it fins a .cargo/config and then applies that at any level.
Because of this, there is no way to write tooling for the current PC that doesn't require --target=... which is somewhat frustrating when that's what you're trying to do...

Ran into this trying to write a script to generate the macros for #277. A build script would avoid the issue but this would be a constant file (not requiring compile time generation) and would add a lot of noise if any other features were to be added (as I understand it, build scripts are single file).

@Crzyrndm
Copy link
Contributor Author

use build script or a different crate

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

1 participant