On 2023-04-11 10:17, Laurence Tratt wrote:
In case it's useful to anyone else, one can set this globally in
~/.cargo/config.toml (and avoid tweaking multiple Cargo.toml's, which
can be
a pain with dependencies) with:
[patch.crates-io]
ring = { path = "/usr/local/share/ring-0.16.20" }
However, there is one gotcha: this will cause your Cargo.lock to be
altered,
so if you're working on a project with a checked-in Cargo.lock, you
need to
be careful.
I want to thank for this (and other contributors in this thread).
I know next to nothing about Rust and its related problems on OpenBSD
(caused by its security features). After the upgrade to 7.3 I saw
similar segfaults as here reported, which made me to
rebuild my program (I use pizauth to cope with the authentication of
mbsync
with office365), but that was not sufficient. Installing the rust-ring
package
and creating this ~/.cargo/config.toml file made it work again.
Best regards,
Ruda