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 install rebuilds after cargo build #664

Closed
txtsd opened this issue Feb 13, 2022 · 1 comment
Closed

cargo install rebuilds after cargo build #664

txtsd opened this issue Feb 13, 2022 · 1 comment
Labels
question Further information is requested

Comments

@txtsd
Copy link

txtsd commented Feb 13, 2022

So I run cargo build --release and then cargo install --path . thinking the install task will have significantly less work to do, however it rebuilds the entire codebase all over again.

What's the correct way to build and then install?

@iceiix
Copy link
Owner

iceiix commented Aug 28, 2022

@txtsd I believe you can just run cargo install, it will build automatically before installation. But I found this cargo issue: rust-lang/cargo#5667 cargo-install unnecessarily rebuilds everything

@iceiix iceiix closed this as completed Aug 28, 2022
@iceiix iceiix added the question Further information is requested label Aug 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants