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

Problem: the size of cpp static library is huge #464

Open
damoncro opened this issue Jun 29, 2022 · 3 comments
Open

Problem: the size of cpp static library is huge #464

damoncro opened this issue Jun 29, 2022 · 3 comments

Comments

@damoncro
Copy link
Collaborator

damoncro commented Jun 29, 2022

Describe the bug
In linux libdefi_wallet_core_cpp.a is 1.1GB, in mac it is 865Mb.

@leejw51crypto
Copy link
Collaborator

leejw51crypto commented Jul 4, 2022

not a bug, maybe not use static lib?

in readme, we can recommend to use dynamic lib than static lib

@tomtau
Copy link
Contributor

tomtau commented Jul 4, 2022

you can set some release profile features: https://github.com/johnthagen/min-sized-rust but overall, static binaries may always be large

@tomtau
Copy link
Contributor

tomtau commented Jul 4, 2022

things like symbols or panic handling may be useful for these initial release for bug reports

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

No branches or pull requests

3 participants