-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(aws-lc-sys): add links
attribute to Cargo.toml
#277
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #277 +/- ##
==========================================
- Coverage 95.46% 95.42% -0.04%
==========================================
Files 50 51 +1
Lines 6701 6733 +32
==========================================
+ Hits 6397 6425 +28
- Misses 304 308 +4 ☔ View full report in Codecov by Sentry. |
Not incorrect, but the solution would require us to at least publish one additional crate (build) dependency which I think we were trying to avoid until we have better automation in place for the crate publishing process. |
I don't think that's the only solution. It could be solved with symlinks, path attribute or include!. All of those could be used to pull the |
Can path-attributes reference files outside the crate root, same question for Anyways we don't need to solve that here, I can make a corresponding PR for the aws-lc-fips-sys crate to go along with this. |
Description of changes:
The
aws-lc-sys
crate does not currently set thelinks
attribute in the Cargo.toml. This prevents other crates from reading theinclude
path and using it in other C libraries.This change adds the
links
attribute and adds an integration test to ensure this functionality is preserved.Call-outs:
I did not refactor the
aws-lc-fips-sys
crate. There's quite a bit of copy/paste between the build scripts and could probably use a refactor.Testing:
I've added an integration test crate (
aws-lc-sys-testing
) showing that the change is now working and will be preserved in the future.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.