Skip to content

Commit 32cae91

Browse files
parsec-openssl-provider: Fix MSRV build
Solve compilation issues when trying to compile with MSRV: 1) Use a version of env_logger that is compatible with MSRV. 2) The Error types declared by openssl_errors! were being marked as private, which lead to the following error: --> parsec-openssl-provider-shared/src/catch.rs:37:1 | 37 | / pub fn r#catch<T>( 38 | | function: Option<fn() -> openssl_errors::Function<super::Error>>, 39 | | f: impl FnOnce() -> Result<T, Box<dyn std::error::Error>>, 40 | | ) -> Result<T, ()> { | |___________________^ can't leak private type Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
1 parent f5933d0 commit 32cae91

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

parsec-openssl-provider-shared/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ unsafe extern "C" fn OSSL_provider_init(
3232

3333
openssl_errors::openssl_errors! {
3434
#[allow(clippy::empty_enum)]
35-
library Error("parsec_openssl_provider_shared") {
35+
pub library Error("parsec_openssl_provider_shared") {
3636
functions {
3737
PROVIDER_INIT("parsec_provider_init");
3838
}

parsec-openssl-provider/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ log = "0.4"
1515
parsec-client = { git = "https://github.com/parallaxsecond/parsec-client-rust", tag="0.16.0" }
1616
parsec-openssl2 = { path = "../parsec-openssl2" }
1717
openssl-errors = "0.2.0"
18-
env_logger = "0.11.2"
18+
env_logger = "0.10.2"

parsec-openssl-provider/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub unsafe fn parsec_provider_provider_init(
9393

9494
openssl_errors::openssl_errors! {
9595
#[allow(clippy::empty_enum)]
96-
library Error("parsec_openssl_provider") {
96+
pub library Error("parsec_openssl_provider") {
9797
functions {
9898
PROVIDER_TEARDOWN("parsec_provider_teardown");
9999
PROVIDER_GETTABLE_PARAMS("parsec_provider_gettable_params");

0 commit comments

Comments
 (0)