Skip to content

Get binding generation & publishing ready for 0.1 release - #114

Merged
tnull merged 11 commits into
lightningdevkit:mainfrom
tnull:2023-05-get-bindings-release-ready
Jun 21, 2023
Merged

Get binding generation & publishing ready for 0.1 release#114
tnull merged 11 commits into
lightningdevkit:mainfrom
tnull:2023-05-get-bindings-release-ready

Conversation

@tnull

@tnulltnull commented May 26, 2023

Copy link
Copy Markdown
Collaborator

Based on #124.
Follow-up to #59.
Closes#73.

Here we'll add the final necessary steps to get bindings ready for the initial 'official' release.

@tnull
tnull marked this pull request as draft May 26, 2023 10:40
@tnulltnull mentioned this pull request May 26, 2023
47 tasks
@tnull
tnullforce-pushed the 2023-05-get-bindings-release-ready branch 5 times, most recently from 6fea98d to 527ecffCompareJune 2, 2023 07:57
@tnulltnull changed the title WIP: Get binding generation & publishing ready for 0.1 releaseGet binding generation & publishing ready for 0.1 releaseJun 5, 2023
@tnull
tnull marked this pull request as ready for review June 5, 2023 10:35
@tnull
tnull marked this pull request as draft June 5, 2023 10:38
@tnulltnull changed the title Get binding generation & publishing ready for 0.1 releaseWIP: Get binding generation & publishing ready for 0.1 releaseJun 5, 2023
@tnull
tnullforce-pushed the 2023-05-get-bindings-release-ready branch 2 times, most recently from dbb0d0d to ff7e913CompareJune 14, 2023 14:12
@tnull

Copy link
Copy Markdown
CollaboratorAuthor

Rebased on #124.

@tnulltnull added this to the 0.1 milestone Jun 15, 2023
@tnull
tnullforce-pushed the 2023-05-get-bindings-release-ready branch 5 times, most recently from f21bd20 to 049d0e9CompareJune 19, 2023 11:28
@tnulltnull changed the title WIP: Get binding generation & publishing ready for 0.1 releaseGet binding generation & publishing ready for 0.1 releaseJun 19, 2023
@tnull
tnull marked this pull request as ready for review June 19, 2023 11:30
@tnull
tnullforce-pushed the 2023-05-get-bindings-release-ready branch 5 times, most recently from 9e40c70 to bbb4c15CompareJune 20, 2023 08:40
@tnull
tnullforce-pushed the 2023-05-get-bindings-release-ready branch 2 times, most recently from 0c37836 to 7f6d70aCompareJune 20, 2023 09:08
@tnulltnull mentioned this pull request Jun 20, 2023
@tnull
tnullforce-pushed the 2023-05-get-bindings-release-ready branch from 7f6d70a to 1716da5CompareJune 20, 2023 11:28
tnull added 3 commits June 20, 2023 18:07
We already have `Node::spendable_onchain_balance` and
`Node::total_onchain_balance` exposed, so the general `onchain_balance`
is kind of redudant. As it is also not exposed (and not easily
exposable) in bindings, we can make the bindings and Rust APIs more
homogeneous by dropping the call.
Plus, we probably should avoid exposing any BDK types in the public API
until BDK 1.0 landed and we made the switch, as many breaking changes
will be coming with it.
@tnull
tnullforce-pushed the 2023-05-get-bindings-release-ready branch from 1716da5 to 9e9a76fCompareJune 20, 2023 16:07
@tnull

Copy link
Copy Markdown
CollaboratorAuthor

Rebased on main after #124 was merged.

@jurvisjurvis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

took a glance and looks great to me + had some questions :)

Comment threadPackage.swift
Comment threadPackage.swift Outdated
Comment threadbindings/swift/LDKNodeFFI.xcframework/Info.plist
Comment threadscripts/uniffi_bindgen_generate_kotlin_android.sh
Comment threadscripts/swift_update_package_checksum.py Outdated
@tnull
tnullforce-pushed the 2023-05-get-bindings-release-ready branch from 9e9a76f to 48d52d4CompareJune 20, 2023 17:49

@jkczyzjkczyz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, but I'll let @jurvis speak to the Swift changes. Feel free to squash the fixups. IMO.

tnull added 8 commits June 21, 2023 08:48
As we're using the `onchain` keyword everywhere in the API to discern
onchain-operations (e.g., `send_to_onchain_address`,
`spendable_onchain_balance`, etc.) we also align the funding API call here and
rename `new_funding_address` to `new_onchain_address`.
Now that we split out UniFFI to its own feature, we can make use of
the `missing_docs` lint again and enforce it in CI for release docs as
well as private items.
.. and use a particular nightly rev for where it's not.
@tnull
tnullforce-pushed the 2023-05-get-bindings-release-ready branch from 48d52d4 to 7de04b7CompareJune 21, 2023 06:48
@tnull

Copy link
Copy Markdown
CollaboratorAuthor

LGTM, but I'll let @jurvis speak to the Swift changes. Feel free to squash the fixups. IMO.

Squashed fixups without further changes.

print('Failed to read Package.swift file.', file=sys.stderr)
sys.exit(1)

package_file = original_package_file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is the additional variable needed? @arik-so Do you have any insight?

@tnull
tnull merged commit 68a5086 into lightningdevkit:mainJun 21, 2023
Sign up for freeto 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.

Document MSRV guarantees and enforce in CI

4 participants

@tnull@jkczyz@jurvis@reez