Commit graph

10 commits

Author SHA1 Message Date
daywalker90
678ff47d37 crates: update dependencies and upgrade quick-xml, tower-http, and tokio-tungstenite
```
cargo update
    Updating crates.io index
     Locking 62 packages to latest Rust 1.85.0 compatible versions
    Updating anyhow v1.0.102 -> v1.0.103
    Updating arc-swap v1.9.1 -> v1.9.2
    Updating arrayvec v0.7.6 -> v0.7.8
    Updating base58ck v0.1.100 -> v0.1.101
    Updating bitcoin v0.32.100 -> v0.32.101
      Adding bitcoin-consensus-encoding v1.0.0
      Adding bitcoin-internals v0.5.0
    Updating bitcoin-io v0.1.100 -> v0.1.101
    Updating bitcoin-units v0.1.100 -> v0.1.101
    Updating bitcoin_hashes v0.14.100 -> v0.14.101
      Adding block-buffer v0.12.1
    Updating bytes v1.11.1 -> v1.12.1
    Updating cc v1.2.64 -> v1.2.67
    Updating chacha20 v0.10.0 -> v0.10.1
      Adding const-oid v0.10.2
      Adding crypto-common v0.2.2
      Adding defmt v1.1.1
      Adding defmt-macros v1.1.1
      Adding defmt-parser v1.0.0
      Adding digest v0.11.3
    Updating env_filter v1.0.1 -> v2.0.0
    Updating env_logger v0.11.10 -> v0.11.11
    Updating fs-err v3.3.0 -> v3.3.1
    Updating getrandom v0.4.2 -> v0.4.3
      Adding hex-conservative v0.3.2
      Adding hybrid-array v0.4.13
    Removing id-arena v2.3.0
    Updating jiff v0.2.28 -> v0.2.32
    Updating jiff-static v0.2.28 -> v0.2.32
    Updating js-sys v0.3.102 -> v0.3.103
    Removing leb128fmt v0.1.0
    Updating lightning v0.1.8 -> v0.1.11
    Updating lightning-invoice v0.33.2 -> v0.33.3
    Updating lightning-types v0.2.0 -> v0.2.1
    Updating log v0.4.32 -> v0.4.33
    Updating memchr v2.8.2 -> v2.8.3
    Updating num-bigint v0.4.6 -> v0.4.8
    Updating possiblyrandom v0.2.0 -> v0.2.1
    Updating quote v1.0.45 -> v1.0.46
    Removing rand v0.9.4
    Removing rand v0.10.1
      Adding rand v0.9.5
      Adding rand v0.10.2
    Updating regex v1.12.4 -> v1.13.0
    Updating regex-automata v0.4.14 -> v0.4.15
    Updating rust-embed v8.11.0 -> v8.12.0
    Updating rust-embed-impl v8.11.0 -> v8.12.0
    Updating rust-embed-utils v8.11.0 -> v8.12.0
    Updating rustls v0.23.40 -> v0.23.41
    Updating rustls-pki-types v1.14.1 -> v1.15.0
    Updating rustversion v1.0.22 -> v1.0.23
    Updating sha1 v0.10.6 -> v0.10.7
    Updating sha2 v0.10.9 -> v0.11.0
    Updating syn v2.0.117 -> v2.0.118
    Updating thread_local v1.1.9 -> v1.1.10
    Removing unicode-xid v0.2.6
    Removing wasip3 v0.4.0+wasi-0.3.0-rc-2026-01-06
    Updating wasm-bindgen v0.2.125 -> v0.2.126
    Updating wasm-bindgen-futures v0.4.75 -> v0.4.76
    Updating wasm-bindgen-macro v0.2.125 -> v0.2.126
    Updating wasm-bindgen-macro-support v0.2.125 -> v0.2.126
    Updating wasm-bindgen-shared v0.2.125 -> v0.2.126
    Removing wasm-encoder v0.244.0
    Removing wasm-metadata v0.244.0
    Removing wasmparser v0.244.0
    Updating web-sys v0.3.102 -> v0.3.103
    Updating webpki-root-certs v1.0.7 -> v1.0.8
    Removing wit-bindgen v0.51.0
    Removing wit-bindgen-core v0.51.0
    Removing wit-bindgen-rust v0.51.0
    Removing wit-bindgen-rust-macro v0.51.0
    Removing wit-component v0.244.0
    Removing wit-parser v0.244.0
    Updating zerocopy v0.8.52 -> v0.8.54
    Updating zerocopy-derive v0.8.52 -> v0.8.54
    Updating zlib-rs v0.6.3 -> v0.6.6
    Updating zmij v1.0.21 -> v1.0.22
```

quick-xml upgraded to 0.41
tower-http upgraded to 0.7
tokio-tungstenite upgraded to 0.30

No code changes needed.

Changelog-None
2026-07-14 11:16:17 +02:00
daywalker90
88f259ec56 crates: upgraded dependencies to latest 1.85 compatible versions as of the commit time
notable upgrades requiring code changes:

rcgen: signed_by now takes an Issuer instead of a Certificate and KeyPair

tonic/prost: prost feature was stripped out of tonic and moved into tonic_prost crates

rand: OsRng was renamed to SysRng

Changelog-None
2026-04-24 19:38:53 +02:00
daywalker90
28147d38ae crates: formatting with new 2024 edition rules
`cargo fmt --all`

Changelog-None
2026-04-24 15:48:06 +02:00
daywalker90
84d4d5920b crates: upgrade to 2024 rust edition
I've ran `cargo fix --edition` and three changes were noticeable:
- set_var is now unsafe, i've added a SAFETY comment on each to explain why
  this is fine here.
- conversions of several if let to match because of the new if let temporary scope
  I have reviewed and restored all of them since the behaviour was the same on each.
- the macro expr was converted to expr_2021 in the lsps plugin, i have reverted those
  aswell since we don't use const or _ expressions

Changelog-None
2026-04-24 15:48:06 +02:00
daywalker90
f488ca2bd8 crates: explicitly set workspace wide rust-version to 1.85
Also bump the resolver version so `cargo update` will respect this MSRV.

Changelog-None
2026-04-24 15:48:06 +02:00
daywalker90
ff2b77a57f crates: centralize version management 2025-11-14 09:02:35 +10:30
Matt Whitlock
d635f19dbf plugins: generate certificates with required extensions
Recent versions of urllib3 fail certificate verification if certificates
lack the Authority Key Identifier or Key Usages extensions:

```
SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Missing Authority Key Identifier (_ssl.c:1032)
SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: CA cert does not include key usage extension (_ssl.c:1032)
```

Luckily, rcgen offers parameters in its CertificateParams structure to
add these extensions. Let's use them.

Changelog-Fixed: Certificates auto-generated by grpc-plugin, rest-plugin, and wss-proxy-plugin now include the required Authority Key Identifier and Key Usages extensions.
2025-08-26 13:52:15 +09:30
Christian Decker
516861c5ec rust: Bump cln-plugin==0.5
Due to the breaking change in 9dcc264d4c8e244f0cb827c8a81e61f977011486.
2025-08-19 15:47:58 +09:30
Christian Decker
45ba719068 rust: Roll the cln-grpc and cln-rpc versions due to schema changes
Commit ebaa25d9e2fd5582b7fe0e3ec482c1627996e4d7 introduced a couple of
breaking changes to the schema and proto files. The bump ensures
backwards compat for users that have indicated `~0.4` as their version
constraint.

Changelog-Changed: rust: New version of `cln-rpc==0.5` and `cln-grpc==0.5`
2025-08-19 15:47:58 +09:30
daywalker90
2e7181d04f wss-proxy: replaced by a rust version
Changelog-Changed: wss-proxy.py was replaced by a rust version with support for multiple `wss-bind-addr`. If you install CLN from pre-compiled binaries you must remove the old wss-proxy directory first before installing CLN, usually
it is located in `/usr/local/libexec/c-lightning/plugins/wss-proxy`. If you compile from source `make` will take care of this automatically.
2025-07-24 12:42:06 -07:00