Skip to content

Commit bb40560

Browse files
committed
Remove the bindings crate from the root namespace to let it break
Until we get the bindings generation process super stable, let the bindings get stale with respect to the main repo while still letting `cargo check` pass.
1 parent 83322e1 commit bb40560

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,12 @@ jobs:
1717
include:
1818
- toolchain: stable
1919
build-net-tokio: true
20-
build-bindings: true
2120
- toolchain: beta
2221
build-net-tokio: true
23-
build-bindings: true
2422
- toolchain: 1.39.0
2523
build-net-tokio: true
26-
build-bindings: true
2724
coverage: true
2825
- toolchain: 1.34.2
29-
build-bindings: true
3026
runs-on: ubuntu-latest
3127
steps:
3228
- name: Checkout source code
@@ -43,9 +39,6 @@ jobs:
4339
- name: Build on Rust ${{ matrix.toolchain }}
4440
if: "! matrix.build-net-tokio"
4541
run: RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always -p lightning
46-
- name: Build bindings on Rust ${{ matrix.toolchain }}
47-
if: matrix.build-bindings
48-
run: RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always -p lightning-c-bindings
4942
- name: Test on Rust ${{ matrix.toolchain }} with net-tokio
5043
if: matrix.build-net-tokio
5144
run: RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always
@@ -127,6 +120,8 @@ jobs:
127120
apt-get -y install cargo valgrind lld git g++ clang
128121
- name: Checkout source code
129122
uses: actions/checkout@v2
123+
- name: Sanity test bindings
124+
run: cd lightning-c-bindings && cargo check && cd ..
130125
- name: Install cbindgen
131126
run: cargo install --force cbindgen
132127
- name: Rebuild bindings, and check the sample app builds + links

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
members = [
44
"lightning",
55
"lightning-net-tokio",
6-
"lightning-c-bindings",
76
]
87

98
# Our tests do actual crypo and lots of work, the tradeoff for -O1 is well worth it

lightning-c-bindings/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@ crate-type = ["staticlib"
1717
[dependencies]
1818
bitcoin = "0.24"
1919
lightning = { version = "0.0.11", path = "../lightning" }
20+
21+
# We eventually want to join the root workspace, but for now, the bindings generation is
22+
# a bit brittle and we don't want to hold up other developers from making changes just
23+
# because they break the bindings
24+
[workspace]

0 commit comments

Comments
 (0)