-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Chore: Refactor use of cargo-install
#279
Comments
I think keeping track of where each crate is at could still be valuable, but we could keep it serial like in the UI PR rather than parallel with jobserver. The advantage of parallel cargo installs with jobserver is we do avoid some of the "final crate bottleneck" but it might not be worth it. |
Using batch installation is just the same actually, since all we need to do is to launch one command: cargo install $crate_name1@$version1 $crate_name2@$version2 ... |
Yeah but UI wise I want to hide the cargo install output and just show the progress. Though, hmm, maybe what would be better in that case is to use json output and the single command, and parse the output for UI purposes. |
Ah, json output is unstable :( Ok, let's do a single command for now and I'll figure out something more advanced later if I can |
when cargo install pkg1 pkg2 pkg3 there are many components are the same, cargo install just build them again and again and all in serial sequence, can cargo-install them in parallel, if possible even reuse those shared component to avoid recompiling? when I cargo install, only one core is busy and the rest cores are idle, which is, slow |
There's a ticket for it in
That's also a great idea since many crates share the same dependency and they do not override |
@laoshaw Just a note that this hasn't been implemented yet and as of v0.13.1, we still spawn multiple I would probably wait until json output is stablised and rust-lang/cargo#9741 is implemented. |
I am settled on our current implementation of launching |
From #251 (comment) :
The text was updated successfully, but these errors were encountered: