Skip to content
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

Reduce visibility on secp-sys symbols #289

Merged
merged 1 commit into from
Jun 8, 2021

Conversation

TheBlueMatt
Copy link
Member

@TheBlueMatt TheBlueMatt commented Mar 18, 2021

cc-rs builds C dependencies with reduced visibility to avoid
exporting the C symbols all the way out to any rust-built shared
libraries however we override it with SECP256K1_API. We should
avoid doing this, allowing LTO/DCE to do its work.

Note: THIS IS UNTESTED. #287 (comment)

real-or-random
real-or-random previously approved these changes Mar 19, 2021
@elichai
Copy link
Member

elichai commented Apr 7, 2021

@TheBlueMatt Can you rebase please? that will solve the CI failure

cc-rs builds C dependencies with reduced visibility to avoid
exporting the C symbols all the way out to any rust-built shared
libraries however we override it with SECP256K1_API. We should
avoid doing this, allowing LTO/DCE to do its work.
@TheBlueMatt
Copy link
Member Author

Rebased with no changes.

@thomaseizinger
Copy link
Contributor

Confirmed this doesn't break the way we use rust-secp256k1 in rust-secp256k1-zkp.

@apoelstra
Copy link
Member

I'd prefer if there were a comment on the line, but I'm fine merging as-is. At the very least git blame will lead anybody curious to this PR.

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack ee1103a

@apoelstra apoelstra merged commit 5ff59f7 into rust-bitcoin:master Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants