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

Use modern syntax for optional dependencies #1229

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

wks
Copy link
Collaborator

@wks wks commented Nov 6, 2024

Use the "dep:" prefix to specify optional dependencies in Cargo features.

An optional crate dependency implicitly generates a feature of the same name, and can be leaked to the user of the current crate. But if a feature specifies a crate dependency with the "dep:" prefix, it will not implicitly generate the feature, hiding it from the users. The "dep:" prefix was introduced in Rust 1.60.

Use the "dep:" prefix to specify optional dependencies in Cargo
features.

An optional crate dependency implicitly generates a feature of the same
name, and can be leaked to the user of the current crate.  But if a
feature specifies a crate dependency with the "dep:" prefix, it will not
implicitly generate the feature, hiding it from the users.  The "dep:"
prefix was introduced in Rust 1.60.
@wks wks requested a review from qinsoon November 6, 2024 07:20
@qinsoon qinsoon added this pull request to the merge queue Nov 6, 2024
Merged via the queue into mmtk:master with commit 59ea62e Nov 6, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants