Skip to content

Commit

Permalink
uefi-macros: Change uefi dev-dependency from version to path
Browse files Browse the repository at this point in the history
Using a path avoids having to update the `uefi-macros` dep on `uefi` after
releasing a new version of `uefi`, slightly simplifying our release process.

Prior to cargo 1.40 there was no choice but to have a version on
dev-dependencies. That changed with
rust-lang/cargo#7333, and now you can publish a crate
with a path-only dev dependency.
  • Loading branch information
nicholasbishop committed Nov 12, 2023
1 parent 09a7867 commit d6edea5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions PUBLISHING.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ a new major version of that crate will have to be published, then a new version
`uefi` (major if the previous bump caused changes in the public API of this crate as well),
then possibly a new version of `uefi-services`.

Furthermore, `uefi-macros` has the `uefi` crate as a `dev-dependency`,
and that will have to be updated in tandem with the major versions of the core crate.

### Updating the dependent crates

Remember that if a new major version of a crate gets released, when bumping the version
Expand Down
2 changes: 1 addition & 1 deletion uefi-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ syn = { version = "2.0.4", features = ["full"] }

[dev-dependencies]
trybuild = "1.0.61"
uefi = { version = "0.25.0", default-features = false }
uefi = { path = "../uefi", default-features = false }

0 comments on commit d6edea5

Please sign in to comment.