run: |
git clone https://github.com/rust-bitcoin/rust-lightning
cd rust-lightning
- git checkout 0.0.110-bindings
+ git checkout 0.0.111-bindings
- name: Rebuild bindings without std, and check the sample app builds + links
run: ./genbindings.sh ./rust-lightning false
- name: Rebuild bindings, and check the sample app builds + links
run: |
git clone https://github.com/rust-bitcoin/rust-lightning
cd rust-lightning
- git checkout 0.0.110-bindings
+ git checkout 0.0.111-bindings
- name: Rebuild bindings using Apple clang, and check the sample app builds + links
run: ./genbindings.sh ./rust-lightning true
- name: Rebuild bindings using upstream clang, and check the sample app builds + links
std = ["bitcoin/std", "lightning/std", "lightning-invoice/std"]
[dependencies]
-bitcoin = { version = "0.28", default-features = false }
-secp256k1 = { version = "0.22", features = ["global-context", "recovery"] }
+bitcoin = { version = "0.29", default-features = false }
+secp256k1 = { version = "0.24", features = ["global-context", "recovery"] }
# Note that the following line is matched by genbindings to update the path
-lightning = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.110-bindings", default-features = false }
-lightning-persister = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.110-bindings", default-features = false }
-lightning-invoice = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.110-bindings", default-features = false }
-lightning-background-processor = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.110-bindings", default-features = false }
-lightning-rapid-gossip-sync = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.110-bindings", default-features = false }
+lightning = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.111-bindings", default-features = false }
+lightning-persister = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.111-bindings", default-features = false }
+lightning-invoice = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.111-bindings", default-features = false }
+lightning-background-processor = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.111-bindings", default-features = false }
+lightning-rapid-gossip-sync = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.111-bindings", default-features = false }
core2 = { version = "0.3.0", optional = true, default-features = false }
#[cfg(feature = "no-std")]
use alloc::{boxed::Box, vec::Vec, string::String};
+use core::convert::TryFrom;
+
#[repr(C)]
/// A dummy struct of which an instance must never exist.
/// This corresponds to the Rust type `Infallible`, or, in unstable rust, `!`
pub struct WitnessVersion(u8);
impl From<address::WitnessVersion> for WitnessVersion {
- fn from(o: address::WitnessVersion) -> Self { Self(o.into_num()) }
+ fn from(o: address::WitnessVersion) -> Self { Self(o.to_num()) }
}
impl Into<address::WitnessVersion> for WitnessVersion {
- fn into(self) -> address::WitnessVersion { address::WitnessVersion::from_num(self.0).expect("WitnessVersion objects must be in the range 0..=16") }
+ fn into(self) -> address::WitnessVersion {
+ address::WitnessVersion::try_from(self.0).expect("WitnessVersion objects must be in the range 0..=16")
+ }
}
#[derive(Clone)]