Bump `lightning-types` crate version to fix semver tests
What changed, and why it matters
This commit only updates version numbers in package configuration files (Cargo.toml) for the lightning-types crate and its dependents. It does not change any actual program code, fix a security bug, or alter runtime behavior. The change was made because a previous commit modified the crate's public interface but forgot to increase the version number, causing automated semver compatibility tests to fail.
No security action needed. Treat as a normal build/versioning maintenance commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit bumps lightning-types from 0.3.0+git to 0.4.0+git and updates downstream crates (lightning, lightning-invoice, lightning-liquidity, lightning-dns-resolver) to require the new version. This is a pure metadata/versioning change. The referenced prior commit (5427b0de7e93ce4ccf63c79de756e0da49e33d0b) changed the lightning-types API, which is why the major version needed to be incremented to satisfy semantic versioning. No source code, logic, or security-sensitive behavior is modified here.
Changed components
lightning-types/Cargo.tomllightning/Cargo.tomllightning-invoice/Cargo.tomllightning-liquidity/Cargo.tomllightning-dns-resolver/Cargo.tomlInspect captured patch +6 / −6
diff --git a/lightning-dns-resolver/Cargo.toml b/lightning-dns-resolver/Cargo.toml
index 44caf27..5299b2f 100644
--- a/lightning-dns-resolver/Cargo.toml
+++ b/lightning-dns-resolver/Cargo.toml
@@ -11,7 +11,7 @@ rust-version = "1.75"
[dependencies]
lightning = { version = "0.3.0", path = "../lightning", default-features = false }
-lightning-types = { version = "0.3.0", path = "../lightning-types", default-features = false }
+lightning-types = { version = "0.4.0", path = "../lightning-types", default-features = false }
dnssec-prover = { version = "0.6", default-features = false, features = [ "std", "tokio" ] }
tokio = { version = "1.0", default-features = false, features = ["rt"] }
diff --git a/lightning-invoice/Cargo.toml b/lightning-invoice/Cargo.toml
index deee8ff..2b5d570 100644
--- a/lightning-invoice/Cargo.toml
+++ b/lightning-invoice/Cargo.toml
@@ -20,7 +20,7 @@ std = []
[dependencies]
bech32 = { version = "0.11.0", default-features = false }
-lightning-types = { version = "0.3.0", path = "../lightning-types", default-features = false }
+lightning-types = { version = "0.4.0", path = "../lightning-types", default-features = false }
serde = { version = "1.0", optional = true, default-features = false, features = ["alloc"] }
bitcoin = { version = "0.32.4", default-features = false, features = ["secp-recovery"] }
diff --git a/lightning-liquidity/Cargo.toml b/lightning-liquidity/Cargo.toml
index c6cb4ee..61f41c1 100644
--- a/lightning-liquidity/Cargo.toml
+++ b/lightning-liquidity/Cargo.toml
@@ -23,7 +23,7 @@ _test_utils = []
[dependencies]
lightning = { version = "0.3.0", path = "../lightning", default-features = false }
-lightning-types = { version = "0.3.0", path = "../lightning-types", default-features = false }
+lightning-types = { version = "0.4.0", path = "../lightning-types", default-features = false }
lightning-invoice = { version = "0.35.0", path = "../lightning-invoice", default-features = false, features = ["serde"] }
lightning-macros = { version = "0.2", path = "../lightning-macros" }
diff --git a/lightning-types/Cargo.toml b/lightning-types/Cargo.toml
index 89bd919..eddd3d2 100644
--- a/lightning-types/Cargo.toml
+++ b/lightning-types/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "lightning-types"
-version = "0.3.0+git"
+version = "0.4.0+git"
authors = ["Matt Corallo"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/lightningdevkit/rust-lightning/"
diff --git a/lightning/Cargo.toml b/lightning/Cargo.toml
index dbcf9f1..fd6c505 100644
--- a/lightning/Cargo.toml
+++ b/lightning/Cargo.toml
@@ -34,7 +34,7 @@ grind_signatures = []
default = ["std", "grind_signatures"]
[dependencies]
-lightning-types = { version = "0.3.0", path = "../lightning-types", default-features = false }
+lightning-types = { version = "0.4.0", path = "../lightning-types", default-features = false }
lightning-invoice = { version = "0.35.0", path = "../lightning-invoice", default-features = false }
lightning-macros = { version = "0.2", path = "../lightning-macros" }
@@ -53,7 +53,7 @@ inventory = { version = "0.3", optional = true }
[dev-dependencies]
regex = "1.5.6"
-lightning-types = { version = "0.3.0", path = "../lightning-types", features = ["_test_utils"] }
+lightning-types = { version = "0.4.0", path = "../lightning-types", features = ["_test_utils"] }
lightning-macros = { path = "../lightning-macros" }
parking_lot = { version = "0.12", default-features = false }
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.