Skip to content

Comments

Use workspace dependencies#283

Merged
jgallagher merged 3 commits intomasterfrom
use-workspace-dependencies
Dec 6, 2022
Merged

Use workspace dependencies#283
jgallagher merged 3 commits intomasterfrom
use-workspace-dependencies

Conversation

@jgallagher
Copy link
Contributor

Changes all of humility's dependencies to reference top-level workspace dependencies. I believe all of these changes are safe (with the primary evidence being the lack of changes to Cargo.lock, except for intentionally removing an unnecessary dependency on serde_derive), but maybe that's not 100% guaranteed in terms of cargo features? I'm not sure they would necessarily show up in Cargo.lock if I missed something there.

There's one hitch: top-level humility renames all of the humility-cmd-xyz to just cmd-xyz, but there are a handful of commands that reference other commands, and they were using the longer names with the humility- prefix. I can't figure out how to make this work without changing one or the other: the workspace dependency docs say the only flags that can be combined with workspace = true are optional and features, and true to that statement, adding package = blah to try to rename them does not work. I settled with adding a rename import to the handful of commands that needed this, but am open to other suggestions.

@jgallagher jgallagher force-pushed the use-workspace-dependencies branch from 05a1d50 to d9121cf Compare December 6, 2022 00:08
@jgallagher jgallagher enabled auto-merge (squash) December 6, 2022 00:33
@jgallagher jgallagher merged commit a3c3a2c into master Dec 6, 2022
@jgallagher jgallagher deleted the use-workspace-dependencies branch December 6, 2022 00:44
bcantrill pushed a commit that referenced this pull request Jun 22, 2023
Bumps Rust toolchain to 1.65
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.

1 participant