Support new c_bindings cfg flag to enable bindings-specific logic
[ldk-c-bindings] / .github / workflows / build.yml
index a1fde26b241f4b843cbf8efa70b6bff84c442614..e7657d102a5afc15aba6782190d93cfbac5a53a8 100644 (file)
@@ -25,7 +25,7 @@ jobs:
         run: |
           # Note that the version tags aren't checked into git
           touch src/version.rs
-          cargo check
+          RUSTFLAGS="--cfg=c_bindings" cargo check
       - name: Install cbindgen
         run: cargo install --force cbindgen
       - name: Checkout Rust-Lightning git