Repository navigation
Add lightning-macros crate and drop bdk_macros dependency - #3330
Conversation
3eb61e1 to
eda480b
Compare
dunxen
left a comment
There was a problem hiding this comment.
Looks the same to me as bdk_macros besides the wasm flags removed 👍
|
Now pushed a fixup that removes the async trait functionality. While I think there is no real harm in having the original code around, happy to go this way, too. Let me know if I should squash or revert. |
|
Feel free to squash, then LGTM. |
9b066de to
1dffe79
Compare
Squashed fixup without further changes. |
|
Oops, the |
TheBlueMatt
left a comment
There was a problem hiding this comment.
Total diff looks fine, even if the fixup was squashed into the wrong commit.
Previously, we used the `bdk_macros` dependency for some simple proc macros in `lightning-transaction-sync`. However, post-1.0 BDK doesn't further maintain this crate and will at some point probably yank it together with the old `bdk` crate that was split up. Here, we create a new crate for utility proc macros and ~~steal~~ add what we currently use (slightly modified for the latest `syn` version's API though). In the future we may want to expand this crate, e.g., for some `maybe_async` macros in the context of an `async KVStore` implementation.
1dffe79 to
99ae425
Compare
Grr🤦♂️ Fixed. |
TheBlueMatt
left a comment
There was a problem hiding this comment.
Gonna land this, only really removed code since @dunxen last looked and its pretty straightforward.
Previously, we used the
bdk_macrosdependency for some simple proc macros inlightning-transaction-sync. However, post-1.0 BDK doesn't further maintain this crate and will at some point probably yank it together with the oldbdkcrate that was split up.Here, we create a new crate for utility proc macros and
stealadd what we currently use (slightly modified for the latestsynversion's API though). In the future we may want to expand this crate, e.g., for some further changes to themaybe_asyncmacros in the context of anasync KVStoreimplementation.