-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 --name #11413
Comments
Figured it out myself. In the cargo.toml we can do:
Result:
|
Maybe it is worth adding this to the docs of the cargo install command |
@simon-an, glad you figured it out! I have the impression that
Is this sufficient or do you have different thoughts on doc discovery, wording, or something else? |
Sorry for accidentally changing the title 😅. |
For me it was not obvious in the first place that:
|
But you are right it is mentioned in the docs already and the issue was in front of the computer. 🤣 |
It's hard to decide what should be included in the first page of the manual. I feel like multiple binaries setup is a somewhat advanced feature, so IMO the current place of it in Cargo Guide seems reasonable. Imagine there is a Cargo cookbook and helps people do arbitrary tasks. I am not sure if it is useful for cases like yours. BTW, I am going to close this soon. If you have a new idea about improving the doc of |
Hi there! I'd like to request the My use case is to install multiple versions of the same binary with different names, so that I can use them simultaneously: cargo install --path cli --name ambient
cargo install --git https://github.com/AmbientRun/Ambient.git --tag v0.2.1 --name ambient-0.2.1
cargo install --git https://github.com/AmbientRun/Ambient.git --rev 123abcdef --name ambient-123abcdef
# ... As far as I can tell, there's no way to do this without installing to a temporary directory and then moving the resulting binary to (Happy to open a new issue if that's preferred!) |
@philpax Surely! Please file a new one, and we can start a discussion there. I have some thoughts to share on such a flag :) |
Problem
I have a binary crate which has multiple features. I want to install multiple variants of it.
So in addition to
cargo install app
I want to do:
cargo install --features feature-1 --name app-only-feat1 app
cargo install --all-features --name app-all app
Proposed Solution
Add --name argument
Notes
No response
The text was updated successfully, but these errors were encountered: