Skip to content

Commit 5a46115

Browse files
authored
Merge pull request #179 from TheBlueMatt/0.2
[0.2] Update to LDK 0.2 (for real this time)
2 parents 4411b11 + 3a39d11 commit 5a46115

File tree

1,818 files changed

+775374
-619093
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,818 files changed

+775374
-619093
lines changed

.github/workflows/build.yml

Lines changed: 73 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,21 @@ jobs:
4040
# Note this is a different endpoint, as we need one non-upstream commit!
4141
git clone https://github.com/lightningdevkit/rust-lightning
4242
cd rust-lightning
43-
git checkout origin/0.1-bindings
43+
git checkout origin/0.2-bindings
44+
cargo update -p syn --precise "2.0.106" --verbose
45+
cargo update -p quote --precise "1.0.41" --verbose
4446
cd ..
4547
git clone https://github.com/lightningdevkit/ldk-c-bindings
4648
cd ldk-c-bindings
47-
git checkout 0.1
49+
git checkout 0.2
50+
cd lightning-c-bindings
51+
cargo update -p syn --precise "2.0.106" --verbose
52+
cargo update -p quote --precise "1.0.41" --verbose
53+
- name: Pin proc-macro and quote to meet MSRV
54+
run: |
55+
cd ldk-c-bindings/c-bindings-gen
56+
cargo update -p quote --precise "1.0.30" --verbose
57+
cargo update -p proc-macro2 --precise "1.0.65" --verbose
4858
- name: Rebuild C bindings without STD
4959
run: |
5060
cd ldk-c-bindings
@@ -136,11 +146,21 @@ jobs:
136146
# Note this is a different endpoint, as we need one non-upstream commit!
137147
git clone https://github.com/lightningdevkit/rust-lightning
138148
cd rust-lightning
139-
git checkout origin/0.1-bindings
149+
git checkout origin/0.2-bindings
150+
cargo update -p syn --precise "2.0.106" --verbose
151+
cargo update -p quote --precise "1.0.41" --verbose
140152
cd ..
141153
git clone https://github.com/lightningdevkit/ldk-c-bindings
142154
cd ldk-c-bindings
143-
git checkout 0.1
155+
git checkout 0.2
156+
cd lightning-c-bindings
157+
cargo update -p syn --precise "2.0.106" --verbose
158+
cargo update -p quote --precise "1.0.41" --verbose
159+
- name: Pin proc-macro and quote to meet MSRV
160+
run: |
161+
cd ldk-c-bindings/c-bindings-gen
162+
cargo update -p quote --precise "1.0.30" --verbose
163+
cargo update -p proc-macro2 --precise "1.0.65" --verbose
144164
- name: Rebuild C bindings with STD
145165
run: |
146166
cd ldk-c-bindings
@@ -181,11 +201,16 @@ jobs:
181201
# Note this is a different endpoint, as we need one non-upstream commit!
182202
git clone https://github.com/lightningdevkit/rust-lightning
183203
cd rust-lightning
184-
git checkout origin/0.1-bindings
204+
git checkout origin/0.2-bindings
205+
cargo update -p syn --precise "2.0.106" --verbose
206+
cargo update -p quote --precise "1.0.41" --verbose
185207
cd ..
186208
git clone https://github.com/lightningdevkit/ldk-c-bindings
187209
cd ldk-c-bindings
188-
git checkout 0.1
210+
git checkout 0.2
211+
cd lightning-c-bindings
212+
cargo update -p syn --precise "2.0.106" --verbose
213+
cargo update -p quote --precise "1.0.41" --verbose
189214
- name: Fetch MacOS SDK
190215
run: |
191216
curl -o Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz https://bitcoincore.org/depends-sources/sdks/Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz
@@ -233,7 +258,10 @@ jobs:
233258
cd ldk-c-bindings
234259
git clean -f -x -d
235260
git reset --hard
236-
cd ..
261+
cd lightning-c-bindings
262+
cargo update -p syn --precise "2.0.106" --verbose
263+
cargo update -p quote --precise "1.0.41" --verbose
264+
cd ../..
237265
export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"
238266
export ANDROID_TOOLCHAIN="$(pwd)/android-ndk-r27c/toolchains/llvm/prebuilt/linux-x86_64"
239267
export PATH="$PATH:$ANDROID_TOOLCHAIN/bin"
@@ -362,11 +390,16 @@ jobs:
362390
# Note this is a different endpoint, as we need one non-upstream commit!
363391
git clone https://github.com/lightningdevkit/rust-lightning
364392
cd rust-lightning
365-
git checkout origin/0.1-bindings
393+
git checkout origin/0.2-bindings
394+
cargo update -p syn --precise "2.0.106" --verbose
395+
cargo update -p quote --precise "1.0.41" --verbose
366396
cd ..
367397
git clone https://github.com/lightningdevkit/ldk-c-bindings
368398
cd ldk-c-bindings
369-
git checkout 0.1
399+
git checkout 0.2
400+
cd lightning-c-bindings
401+
cargo update -p syn --precise "2.0.106" --verbose
402+
cargo update -p quote --precise "1.0.41" --verbose
370403
- name: Pin proc-macro and quote to meet MSRV
371404
run: |
372405
cd ldk-c-bindings/c-bindings-gen
@@ -423,11 +456,16 @@ jobs:
423456
# Note this is a different endpoint, as we need one non-upstream commit!
424457
git clone https://github.com/lightningdevkit/rust-lightning
425458
cd rust-lightning
426-
git checkout origin/0.1-bindings
459+
git checkout origin/0.2-bindings
460+
cargo update -p syn --precise "2.0.106" --verbose
461+
cargo update -p quote --precise "1.0.41" --verbose
427462
cd ..
428463
git clone https://github.com/lightningdevkit/ldk-c-bindings
429464
cd ldk-c-bindings
430-
git checkout 0.1
465+
git checkout 0.2
466+
cd lightning-c-bindings
467+
cargo update -p syn --precise "2.0.106" --verbose
468+
cargo update -p quote --precise "1.0.41" --verbose
431469
- name: Pin proc-macro and quote to meet MSRV
432470
run: |
433471
cd ldk-c-bindings/c-bindings-gen
@@ -550,11 +588,21 @@ jobs:
550588
# Note this is a different endpoint, as we need one non-upstream commit!
551589
git clone https://github.com/lightningdevkit/rust-lightning
552590
cd rust-lightning
553-
git checkout origin/0.1-bindings
591+
git checkout origin/0.2-bindings
592+
cargo update -p syn --precise "2.0.106" --verbose
593+
cargo update -p quote --precise "1.0.41" --verbose
554594
cd ..
555595
git clone https://github.com/lightningdevkit/ldk-c-bindings
556596
cd ldk-c-bindings
557-
git checkout 0.1
597+
git checkout 0.2
598+
cd lightning-c-bindings
599+
cargo update -p syn --precise "2.0.106" --verbose
600+
cargo update -p quote --precise "1.0.41" --verbose
601+
- name: Pin proc-macro and quote to meet MSRV
602+
run: |
603+
cd ldk-c-bindings/c-bindings-gen
604+
cargo update -p quote --precise "1.0.30" --verbose
605+
cargo update -p proc-macro2 --precise "1.0.65" --verbose
558606
- name: Fetch MacOS SDK
559607
run: |
560608
curl -o Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz https://bitcoincore.org/depends-sources/sdks/Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz
@@ -682,11 +730,21 @@ jobs:
682730
# Note this is a different endpoint, as we need one non-upstream commit!
683731
git clone https://github.com/lightningdevkit/rust-lightning
684732
cd rust-lightning
685-
git checkout origin/0.1-bindings
733+
git checkout origin/0.2-bindings
734+
cargo update -p syn --precise "2.0.106" --verbose
735+
cargo update -p quote --precise "1.0.41" --verbose
686736
cd ..
687737
git clone https://github.com/lightningdevkit/ldk-c-bindings
688738
cd ldk-c-bindings
689-
git checkout 0.1
739+
git checkout 0.2
740+
cd lightning-c-bindings
741+
cargo update -p syn --precise "2.0.106" --verbose
742+
cargo update -p quote --precise "1.0.41" --verbose
743+
- name: Pin proc-macro and quote to meet MSRV
744+
run: |
745+
cd ldk-c-bindings/c-bindings-gen
746+
cargo update -p quote --precise "1.0.30" --verbose
747+
cargo update -p proc-macro2 --precise "1.0.65" --verbose
690748
- name: Checkout Android AAR binaries and artifacts
691749
run: |
692750
# Gitweb only allows snapshots of folders by providing the object hash, which we have to extract:

0 commit comments

Comments
 (0)