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

chore(Cargo.toml): 🪄 remove explicit default-features = true #4677

Conversation

cratelyn
Copy link
Contributor

in #3748, we migrated to using cargo's workspace dependencies feature. this has been excellent, workspace dependencies rock. 🎸

one wrinkle in the script used to migrate all of our constituent crates' manifests over was that it provided an explicit default-features attribute, even when True.

default features are, by their nature, enabled by default. a dependency need only provide this attribute when disabling default features, in order to e.g. explicitly provide a list of #[cfg(..)] features to conditionally compile into a library/binary.

via the magic of vim macros and the quickfix list, this commit mechanically removes any occurrences of default-features = true in our dependency tree.

checklist before requesting a review

  • if this code contains consensus-breaking changes, i have added the "consensus-breaking" label. otherwise, i declare my belief that there are not consensus-breaking changes, for the following reason:

    this is a noöp cosmetic change to the package manifests

in #3748, we migrated to using cargo's workspace dependencies feature.
this has been excellent, workspace dependencies rock. 🎸

one wrinkle in the [script] used to migrate all of our constituent
crates' manifests over was that it provided an explicit
`default-features` attribute, even when `True`.

default features are, by their nature, enabled by default. a
dependency need only provide this attribute when _disabling_ default
features, in order to e.g. explicitly provide a list of `#[cfg(..)]`
features to conditionally compile into a library/binary.

via the magic of vim macros and the quickfix list, this commit
mechanically removes any occurrences of `default-features = true` in our
dependency tree.

[script]: #3748 (comment)
@cratelyn cratelyn self-assigned this Jun 27, 2024
@cratelyn cratelyn added C-chore Codebase maintenance that doesn't fix bugs or add features, and isn't urgent or blocking. A-tooling Area: developer tooling for building Penumbra itself labels Jun 27, 2024
@cratelyn
Copy link
Contributor Author

not going to tug on those ci failures right now. i may pick this up later when i have spare cycles.

@cratelyn cratelyn closed this Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tooling Area: developer tooling for building Penumbra itself C-chore Codebase maintenance that doesn't fix bugs or add features, and isn't urgent or blocking.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant