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

Show cargo install for crates with binaries #8883

Merged
merged 4 commits into from
Jun 27, 2024

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Jun 17, 2024

This PR adds has_lib and bin_names fields to the version Ember Data model and then uses these new fields to display cargo install instructions if a crate has any binaries. If the API does not expose these fields yet, or they are returned as null because the crate/version has not been analyzed yet, the code will default to the current behavior of assuming the crate is a library.

Related:

@Turbo87 Turbo87 added C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works A-frontend 🐹 labels Jun 17, 2024
@Turbo87 Turbo87 requested a review from a team June 17, 2024 07:48
@Turbo87 Turbo87 changed the title Show cargo install for non-library crates Show cargo install for crates with binaries Jun 17, 2024
Copy link
Member

@Rustin170506 Rustin170506 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Turbo87 Turbo87 enabled auto-merge June 27, 2024 10:12
@Turbo87 Turbo87 merged commit 0bd0c11 into rust-lang:main Jun 27, 2024
8 checks passed
@Turbo87 Turbo87 deleted the install-snippet branch June 27, 2024 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend 🐹 C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants