-
Notifications
You must be signed in to change notification settings - Fork 181
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
Add configuration option to locate project without --workspace to only run check on local crate #545
Comments
Adds rust-locate-project-in-workspace custom variable, which controls whether or not to locate the workspace project using `--workspace` (the default) or not. In cases where there is only one create, this should make no difference. The default setting should match the existing behavior. Github issue rust-lang#545
OK took a crack at it, seems to work for me |
Thanks, I saw your PR. I think instead of the approach you have taken here, you should make it accept universal argument to pass custom arguments instead. That's how we do it in rustic where this workflow is already implemented: https://github.com/emacs-rustic/rustic/blob/17a79c659b0eb304e35705facb114caf61eae2e9/rustic-cargo.el#L703 |
Ah that makes sense, and then just have it default to Although now I might just switch to |
This is the default we have there: https://github.com/emacs-rustic/rustic/blob/17a79c659b0eb304e35705facb114caf61eae2e9/rustic-cargo.el#L90 But yeah,
Cool, note that the installation instruction might need some updates etc. Feel free to send PR's. The fork is not officially announced yet. For more background, here is the information: https://psibi.in/posts/rustic.html |
That seems like a different implementation -- from my quick read in In order to keep this change small what I might do instead is create a new custom var
Ah, good to know. I'll keep an eye on it |
Alternatively I suppose I could remove |
You're right. Given the situation, I'm starting to lean towards your current implementation.
I'm not sure if it's a good idea to cause such a big breaking change. |
That's definitely fine with me :) I haven't used github in a while and I can't seem to figure out how to kick off the CI job again - though it looks like it should be fixed. Am I missing something obvious? (All the internet instructions just say to click some button with a rewind icon but of course I don't have that button) |
@bradneuman I have left a comment here: #546 (comment) |
Closing this as it has been addressed by #546 |
I'm working in a project that uses a Cargo Workspace and has some large crates. I want to be able to iterate with commands like
cargo check
on just my crate.I think one wait to do this would be to add a config to not include
--workspace
in thecargo locate-project
command.I might take a stab at it, but wanted to post here in case others are interested or there's a better workaround already
The text was updated successfully, but these errors were encountered: