Skip to content

Conversation

@tgonzalezorlandoarm
Copy link
Member

  • Separate build and test jobs in the CI
  • Set the MSRV to 1.66.0 to be compatible with the current Parsec MSRV.
  • Test building the provider with that MSRV.

This may be useful in the future to save CI resources in certain CI
jobs that would only need to test whether the build is successful
but don't need to perform run-time tests.

Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
Set the MSRV to 1.66.0 to be compatible with the current Parsec
MSRV.

Test building the provider with MSRV.

Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
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>
@tgonzalezorlandoarm tgonzalezorlandoarm added the enhancement New feature or request label Mar 20, 2024
@tgonzalezorlandoarm tgonzalezorlandoarm self-assigned this Mar 20, 2024
From env_logger::init :

This function will panic if it is called more than once, or if
another library has already initialized a global logger.

Use env_logger::try_init instead to make sure the code does not
panic unnecessarily.

Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
@gowthamsk-arm gowthamsk-arm merged commit 0404635 into main Mar 20, 2024
@tgonzalezorlandoarm tgonzalezorlandoarm deleted the tg/msrv branch March 28, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants