aws / aws-lc-rs

aws-lc-rs is a cryptographic library using AWS-LC for its cryptographic operations. The library strives to be API-compatible with the popular Rust library named ring.
Other
247 stars 40 forks source link

feat: export sys variables from aws-lc-rs crate #335

Closed camshaft closed 5 months ago

camshaft commented 5 months ago

Description of changes:

This change exports the underlying *-sys crate in the aws-lc-rs crate. This is needed for a couple of reasons:

With this change, s2n-tls will instead depend on aws-lc-rs = "1". This will avoid issues of preventing it using the latest aws-lc-sys crates on newer releases. It'll also make it easier to pick up fips builds, since we rely on the logic in aws-lc-rs.

Call-outs:

I did some minor refactoring to the build scripts to try and make it a bit clearer.

Testing:

I've expanded the sys-testing crate to include the new functionality.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

codecov-commenter commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (3e194ee) 95.83% compared to head (4cf7dd5) 95.83%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #335 +/- ## ======================================= Coverage 95.83% 95.83% ======================================= Files 60 60 Lines 7868 7868 ======================================= Hits 7540 7540 Misses 328 328 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.