pgcat icon indicating copy to clipboard operation
pgcat copied to clipboard

Update ring to 0.17+ for loongarch64 support

Open k0tran opened this issue 6 months ago • 1 comments

Is your feature request related to a problem? Please describe. Currently pgcat cannot be built on loongarch64 cpu, but that is easily fixable ;)

Describe the solution you'd like Update dependencies that require ring crate older than 0.17 To be precise those are:

  • webpki-roots (https://github.com/postgresml/pgcat/pull/877)
  • tokio-rustls (https://github.com/postgresml/pgcat/pull/881)
  • rustls version 0.22+. There are some breaking changes but there is also helpful changelog to fix those: https://github.com/rustls/rustls/pull/1651
  • nix 0.27.0+

Describe alternatives you've considered None, I think updating few dependencies is the way

Additional context loongarch64 is a cpu architecture which is supported by rust compiler and modern crate versions such as ring, linux-raw-sys, nix and others.

k0tran avatar Jul 23 '25 11:07 k0tran

Tried myself on loongarch64 branch of fork (https://github.com/k0tran/pgcat/tree/loongarch64) There are some problems with 'static but overall I think it's doable

k0tran avatar Jul 24 '25 16:07 k0tran