-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat: Allow adding extra cargo
args when running build scripts
#14328
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
Conversation
Waiting for the check to be completed |
It's waiting for a review, I don't know if this is the best approach. |
Does not matter to me i am anyway going to complie it from src and use it |
We should add a separate key for that instead and have the check one inherit it like we do with the other configs for these imo |
@Veykril but for that apporach we need to write all the extra args by hand. |
I'm not sure I understand what you mean, instead of setting |
@Veykril i cannot find anything named Sorry if its sounds dumb.
The issue i had was when i setted |
It doesn't exist because thats what I am proposing in adding, the |
747a717
to
c3864eb
Compare
Of course it exists, it's here. |
@lnicola and @Veykril So it means that i can now use it by When i clone @lnicola rust-analyzers repo and complie his build-script-extra-args branch Right, correct me if i am wrong |
Yes. |
Just a random though: (till when will this feature get added to the "main" rust-analyzer) |
Idk why i am writing this: But if i use check.extraArgs it does not work but if i use cargo.extraArgs it does Thanks mate it fixed my problem (My thinkpad is alive again) |
@lnicola Does not work if i restart my editor. And then i have to recomplie the reelase dir. And then it works |
Not sure I understand, which parameter are you setting? |
@lnicola After my indepth research "lol" i find that When i use your ra it takes around 40s-90s to open ra after a reload (after the first cargo check -r ) but using the stock takes 30s . But does not fix my problem (makes a debug and rlease dir but your ra does not). and also takes around 9-11s to get a hover btw does not bother me. I just want only the release dir which your ra provides me. Again Thanks mate |
@lnicola can you also tell me this |
Yes, that's the point of this branch, to allow you to add that
Should only happen on the first hover. There's no reason why my branch would be slower unless you've actually setting
Whenever Veykril has a chance to look again at this PR. If it's today, it will be even be in the version released tomorrow. |
Thanks mate you have now answered all my question Hoping that Veykril will look at this PR. The rust community is (really really)*9999 helpful. Just hoped that every communtiy was this helpful. And also one more reason to love rust |
@bors r+ |
☀️ Test successful - checks-actions |
cargo
args when running build scripts
Closes #14315
Not sure if we want to do it like this or to add an extra config key, though.