Drop `futures` dependency from `lightning-block-sync`
authorMatt Corallo <git@bluematt.me>
Thu, 30 Mar 2023 18:33:04 +0000 (18:33 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 30 Mar 2023 18:56:27 +0000 (18:56 +0000)
commit6b55df93fb60473349ec8a830c62a78a592729d2
treea6bd09f83d62fe1ac7b90f5039fe660946cf2843
parent783e8188a7bd6470d5926bf5d1bae1350996801a
Drop `futures` dependency from `lightning-block-sync`

Some how I'd understood that `futures` had reasonable MSRV
guarantees (e.g. at least Debian stable), but apparently that isn't
actually the case, as they bumped it to upgrade to syn (with
apparently no actual features or bugfixes added as a result?) with
no minor version bump or any available alternative (unlike Tokio,
which does LTS releases).

Luckily its relatively easy to just drop the `futures` dependency -
it means a new connection for each request, which is annoying, but
certainly not the end of the world, and its easier than trying to
deal with pinning `futures`.

See https://github.com/rust-lang/futures-rs/pull/2733
lightning-block-sync/Cargo.toml
lightning-block-sync/src/rest.rs
lightning-block-sync/src/rpc.rs