Skip to content

Commit c86e77c

Browse files
authored
Merge pull request #165 from TheBlueMatt/main
Cut 0.0.124.0
2 parents a596b45 + db83033 commit c86e77c

File tree

1,773 files changed

+268875
-166415
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,773 files changed

+268875
-166415
lines changed

.github/workflows/build.yml

+19-26
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,11 @@ 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.0.123-bindings
43+
git checkout origin/0.0.124-bindings
4444
cd ..
4545
git clone https://github.com/lightningdevkit/ldk-c-bindings
4646
cd ldk-c-bindings
47-
git checkout 0.0.123
48-
cd lightning-c-bindings
49-
cargo update -p memchr --precise "2.5.0" --verbose
47+
git checkout 0.0.124
5048
- name: Rebuild C bindings without STD
5149
run: |
5250
cd ldk-c-bindings
@@ -138,13 +136,11 @@ jobs:
138136
# Note this is a different endpoint, as we need one non-upstream commit!
139137
git clone https://github.com/lightningdevkit/rust-lightning
140138
cd rust-lightning
141-
git checkout origin/0.0.123-bindings
139+
git checkout origin/0.0.124-bindings
142140
cd ..
143141
git clone https://github.com/lightningdevkit/ldk-c-bindings
144142
cd ldk-c-bindings
145-
git checkout 0.0.123
146-
cd lightning-c-bindings
147-
cargo update -p memchr --precise "2.5.0" --verbose
143+
git checkout 0.0.124
148144
- name: Rebuild C bindings with STD
149145
run: |
150146
cd ldk-c-bindings
@@ -185,11 +181,11 @@ jobs:
185181
# Note this is a different endpoint, as we need one non-upstream commit!
186182
git clone https://github.com/lightningdevkit/rust-lightning
187183
cd rust-lightning
188-
git checkout origin/0.0.123-bindings
184+
git checkout origin/0.0.124-bindings
189185
cd ..
190186
git clone https://github.com/lightningdevkit/ldk-c-bindings
191187
cd ldk-c-bindings
192-
git checkout 0.0.123
188+
git checkout 0.0.124
193189
- name: Fetch MacOS SDK
194190
run: |
195191
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
@@ -340,13 +336,11 @@ jobs:
340336
# Note this is a different endpoint, as we need one non-upstream commit!
341337
git clone https://github.com/lightningdevkit/rust-lightning
342338
cd rust-lightning
343-
git checkout origin/0.0.123-bindings
339+
git checkout origin/0.0.124-bindings
344340
cd ..
345341
git clone https://github.com/lightningdevkit/ldk-c-bindings
346342
cd ldk-c-bindings
347-
git checkout 0.0.123
348-
cd lightning-c-bindings
349-
cargo update -p memchr --precise "2.5.0" --verbose
343+
git checkout 0.0.124
350344
- name: Pin proc-macro and quote to meet MSRV
351345
run: |
352346
cd ldk-c-bindings/c-bindings-gen
@@ -403,13 +397,11 @@ jobs:
403397
# Note this is a different endpoint, as we need one non-upstream commit!
404398
git clone https://github.com/lightningdevkit/rust-lightning
405399
cd rust-lightning
406-
git checkout origin/0.0.123-bindings
400+
git checkout origin/0.0.124-bindings
407401
cd ..
408402
git clone https://github.com/lightningdevkit/ldk-c-bindings
409403
cd ldk-c-bindings
410-
git checkout 0.0.123
411-
cd lightning-c-bindings
412-
cargo update -p memchr --precise "2.5.0" --verbose
404+
git checkout 0.0.124
413405
- name: Pin proc-macro and quote to meet MSRV
414406
run: |
415407
cd ldk-c-bindings/c-bindings-gen
@@ -532,11 +524,11 @@ jobs:
532524
# Note this is a different endpoint, as we need one non-upstream commit!
533525
git clone https://github.com/lightningdevkit/rust-lightning
534526
cd rust-lightning
535-
git checkout origin/0.0.123-bindings
527+
git checkout origin/0.0.124-bindings
536528
cd ..
537529
git clone https://github.com/lightningdevkit/ldk-c-bindings
538530
cd ldk-c-bindings
539-
git checkout 0.0.123
531+
git checkout 0.0.124
540532
- name: Fetch MacOS SDK
541533
run: |
542534
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
@@ -661,22 +653,23 @@ jobs:
661653
- name: Install cbindgen
662654
run: |
663655
. $HOME/.cargo/env
664-
cargo install cbindgen
656+
git clone https://github.com/eqrion/cbindgen
657+
cd cbindgen/
658+
git checkout v0.20.0
659+
cargo update -p indexmap --precise "1.6.2" --verbose
660+
cargo install --locked --path .
665661
- name: Checkout Rust-Lightning and LDK-C-Bindings git
666662
run: |
667663
git config --global user.email "[email protected]"
668664
git config --global user.name "LDK CI"
669665
# Note this is a different endpoint, as we need one non-upstream commit!
670666
git clone https://github.com/lightningdevkit/rust-lightning
671667
cd rust-lightning
672-
git checkout origin/0.0.123-bindings
668+
git checkout origin/0.0.124-bindings
673669
cd ..
674670
git clone https://github.com/lightningdevkit/ldk-c-bindings
675671
cd ldk-c-bindings
676-
git checkout 0.0.123
677-
cd lightning-c-bindings
678-
. $HOME/.cargo/env
679-
cargo update -p memchr --precise "2.5.0" --verbose
672+
git checkout 0.0.124
680673
- name: Checkout Android AAR binaries and artifacts
681674
run: |
682675
# Gitweb only allows snapshots of folders by providing the object hash, which we have to extract:

bindingstypes.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class TypeInfo:
2-
def __init__(self, is_native_primitive, rust_obj, java_ty, java_fn_ty_arg, java_hu_ty, c_ty, is_const, passed_as_ptr, is_ptr, nonnull_ptr, var_name, arr_len, arr_access, subty=None, contains_trait=False):
2+
def __init__(self, is_native_primitive, rust_obj, java_ty, java_fn_ty_arg, java_hu_ty, c_ty, is_const, passed_as_ptr, is_ptr, nonnull_ptr, var_name, arr_len, arr_access, is_trait, subty=None, contains_trait=False):
33
self.is_native_primitive = is_native_primitive
44
self.rust_obj = rust_obj
55
self.java_ty = java_ty
@@ -16,6 +16,7 @@ def __init__(self, is_native_primitive, rust_obj, java_ty, java_fn_ty_arg, java_
1616
self.subty = subty
1717
self.pass_by_ref = is_ptr
1818
self.requires_clone = None
19+
self.is_trait = is_trait
1920
self.contains_trait = contains_trait
2021

2122
def get_full_rust_ty(self):

0 commit comments

Comments
 (0)