Commit graph

18 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
fe0c452235 cargo: update dependencies
cargo update output:
    Updating bitflags v2.11.1 -> v2.13.0
    Updating cc v1.2.63 -> v1.2.64
    Updating chrono v0.4.44 -> v0.4.45
    Updating h2 v0.4.14 -> v0.4.15
    Updating http v1.4.1 -> v1.4.2
    Updating js-sys v0.3.99 -> v0.3.102
    Updating log v0.4.30 -> v0.4.32
    Updating memchr v2.8.1 -> v2.8.2
    Updating prost v0.14.3 -> v0.14.4
    Updating prost-build v0.14.3 -> v0.14.4
    Updating prost-derive v0.14.3 -> v0.14.4
    Updating prost-types v0.14.3 -> v0.14.4
    Updating regex v1.12.3 -> v1.12.4
    Updating regex-syntax v0.8.10 -> v0.8.11
    Updating rustls-native-certs v0.8.3 -> v0.8.4
    Updating smallvec v1.15.1 -> v1.15.2
    Updating wasm-bindgen v0.2.122 -> v0.2.125
    Updating wasm-bindgen-futures v0.4.72 -> v0.4.75
    Updating wasm-bindgen-macro v0.2.122 -> v0.2.125
    Updating wasm-bindgen-macro-support v0.2.122 -> v0.2.125
    Updating wasm-bindgen-shared v0.2.122 -> v0.2.125
    Updating web-sys v0.3.99 -> v0.3.102
    Updating yoke v0.8.2 -> v0.8.3
    Updating zerocopy v0.8.50 -> v0.8.52
    Updating zerocopy-derive v0.8.50 -> v0.8.52
    Updating zeroize v1.8.2 -> v1.9.0

Also upgraded quick-xml to 0.40

Changelog-None
2026-06-16 12:56:50 +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
09585ee537 currencyrate: new rust plugin to provide the currencyconvert API
Changelog-Added: new plugin currencyrate to provide `currrencyconvert` API
2026-03-06 15:59:49 +10:30
daywalker90
d03cf820a8 clnrest: add clnrest-register-path method for dynamic paths
Changelog-Added: clnrest: add clnrest-register-path rpc method to register dynamic paths
2026-01-19 12:55:57 +10:30
daywalker90
ff2b77a57f crates: centralize version management 2025-11-14 09:02:35 +10:30
ShahanaFarooqui
76592eafcb clnrest: do not install dependencies from git url
This reverts [commit](https://github.com/ElementsProject/lightning/pull/8536/commits/cd1ec7216b66bb2f84244ab8c186a003b49d55d6), as an alternative fix has already been introduced in PR [#8547](https://github.com/ElementsProject/lightning/pull/8547) to restore reproducible builds.

This reversion is necessary because otherwise Docker image building will fail with GitHub Actions or via build-release.sh. The issue arises from Cargo’s inability to resolve the git URL dependencies for clnrest’s utoipa and utoipa-swagger-ui packages within these build contexts. While direct `docker buildx` commands succeeds, Github Action or build-release.sh modifies the build context in a way that prevents Cargo from locating the specific git commit for these dependencies.

References:
https://github.com/ElementsProject/lightning/pull/8530#issuecomment-3248713576
https://github.com/ElementsProject/lightning/actions/runs/17435823432
Added fixed SOURCE_DATE_EPOCH flag for reproducible ubuntu builds [8547](https://github.com/ElementsProject/lightning/pull/8547)

Changelog-None.
2025-11-12 13:12:38 +10:30
Rusty Russell
cb5141ff25 clnrest: change utoipa to my GH branch with daywalker90's deterministic PR merged.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: Build: release builds with tools/build-release.sh are deterministic again.
2025-10-26 20:31:45 +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
bf37d41c7e clnrest: add more valid request and response types
Changelog-Added: clnrest can now return successful responses as xml, yaml, or form-encoded in addition to json defined in the 'Accept' header. The same goes for request types defined in the 'Content-type' header.
2025-07-25 08:18:44 -07:00
daywalker90
5390882143 crates: bump versions to 0.4.0
Changelog-None
2025-03-11 11:10:11 -05:00
daywalker90
5e0a25bca9 cln-grpc, clnrest: workaround for logging before shutdown
Changelog-Fixed: cln-grpc and clnrest errors that cause them to stop will now log
2025-02-14 14:58:00 -06:00
ShahanaFarooqui
1776e469a7 clnrest: Rename cln-rest to rest-plugin as per current naming standards 2025-02-10 14:24:59 +10:30