Support `logger::Record` in C by String-ing the fmt::Arguments
authorMatt Corallo <git@bluematt.me>
Sun, 21 Nov 2021 22:29:48 +0000 (22:29 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 23 Nov 2021 03:30:48 +0000 (03:30 +0000)
commit016eb96fc7170bdbab238292d3cc9338c2a66eb9
tree3258bc213a3852a950635be5707810f4058dceb6
parentba50dd57868a78d00ed1a3c7a9089cf39d3ca235
Support `logger::Record` in C by String-ing the fmt::Arguments

This adds a new (non-feature) cfg argument `c_bindings` which will
be set when building C bindings. With this, we can (slightly) tweak
behavior and API based on whether we are being built for Rust or C
users.

Ideally we'd never need this, but as long as we can keep the API
consistent-enough to avoid material code drift, this gives us a
cheap way of doing the "right" thing for both C and Rust when the
two are in tension.

We also move lightning-background-processor to support the same
MSRV as the main lightning crate, instead of only
lightning-net-tokio's MSRV.
.github/workflows/build.yml
lightning/src/util/logger.rs