Skip to content

Commit

Permalink
Ensure that main crate and derive are in lockstep
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Jan 24, 2025
1 parent ded01cb commit ea86e5e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "flexiber"
version = "0.1.2"
version = "0.1.3"
authors = ["Nicolas Stalder <[email protected]>", "RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
edition = "2021"
Expand All @@ -13,7 +13,15 @@ documentation = "https://docs.rs/flexiber"

[dependencies]
delog = "0.1.0"
flexiber_derive = { version = "0.1", optional = true, path = "derive" }
flexiber_derive = { version = "0.1.3", optional = true, path = "derive" }

# This cfg cannot be enabled, but it still forces Cargo to keep flexiber_derive's
# version in lockstep with flexiber's, even if someone depends on the two crates
# separately with flexiber's "derive" feature disabled. Every flexiber_derive release
# is compatible with exactly one flexiber release because the generated code
# can involve nonpublic APIs which are not bound by semver.
[target.'cfg(any())'.dependencies]
flexiber_derive = { version = "=0.1.3", path = "derive" }

[dependencies.heapless]
version = "0.7.0"
Expand Down
2 changes: 1 addition & 1 deletion derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "flexiber_derive"
version = "0.1.1"
version = "0.1.3"
authors = ["Nicolas Stalder <[email protected]>", "RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
edition = "2021"
Expand Down

0 comments on commit ea86e5e

Please sign in to comment.