Skip to content

Conversation

@tnull
Copy link
Collaborator

@tnull tnull commented Jan 21, 2026

Fixes #758.

For convenience we added ready-to-go patch setions to Cargo.toml, which however only allowed us to quickly override official LDK releases.

Here we also add the corrsponding counterparts for LDK git dependencies.

For convenience we added ready-to-go `patch` setions to `Cargo.toml`,
which however only allowed us to quickly override official LDK releases.

Here we also add the corrsponding counterparts for LDK `git`
dependencies.
@tnull tnull requested a review from joostjager January 21, 2026 09:57
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Jan 21, 2026

👋 Thanks for assigning @joostjager as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

#vss-client-ng = { path = "../vss-client" }
#vss-client-ng = { git = "https://github.com/lightningdevkit/vss-client", branch = "main" }
#
#[patch."https://github.com/lightningdevkit/rust-lightning"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With multiple patch sections, idk if it is still better than just having a commented-out section in the regular location (no patch)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is. Note that patch is fundamentally different in that it will transitively patch the dependency for all sub-dependencies. So if you patch in LDK Node, you won't need to have it point to a changed version of bitcoin-payments-instruction also pointing to the same LDK dependency, etc.

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.

[patch.crates-io] does not patch git dependencies in Cargo.toml

3 participants