Re: Building Rust program with libreSSL on a --current machine
Some crates provide optional support for rustls as an alternative to openssl. Take a look at the Cargo.toml for corresponding feature flags. On Wed, Jul 10, 2024 at 02:47:36PM GMT, Rob Schmersel wrote: > Hi, > > Looking for advice on how one can build rust programs that require > openSSL support on OpenBSD -current > > No matter what I try I keep coming back to errors like: > > cargo:libressl_version_number=309f > > --- stderr > thread 'main' panicked at > > /home/lobo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-sys-0.9.96/build/main.rs:334:5: > > > This crate is only compatible with OpenSSL (version 1.0.1 through > 1.1.1, or 3), or LibreSSL 2.5 through 3.8.1, but a different version > of OpenSSL was found. The build is now aborting due to this version > mismatch. > > Or is it better to ask this on ports@? > > BR/Rob >
Re: Building Rust program with libreSSL on a --current machine
On 2024-07-10, Rob Schmersel wrote: > Hi, > > Looking for advice on how one can build rust programs that require > openSSL support on OpenBSD -current > > No matter what I try I keep coming back to errors like: > > cargo:libressl_version_number=309f > > --- stderr > thread 'main' panicked at > > /home/lobo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-sys-0.9.96/build/main.rs:334:5: > > > This crate is only compatible with OpenSSL (version 1.0.1 through > 1.1.1, or 3), or LibreSSL 2.5 through 3.8.1, but a different version > of OpenSSL was found. The build is now aborting due to this version > mismatch. > > Or is it better to ask this on ports@? > > BR/Rob This is handled automatically for things in ports using the framework you get with MODULES=devel/cargo. Otherwise you will need to patch openssl-sys-*/build/main.rs to loosen the version check. -- Please keep replies on the mailing list.