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

Make 'build-assets' an optional capability for application #1791

Merged
merged 2 commits into from
Aug 17, 2021

Conversation

Enselic
Copy link
Collaborator

@Enselic Enselic commented Aug 10, 2021

The main short-term benefit of this PR is to make building minimal-application (previously called quick-build-application) even faster.

But it also opens up a major long-term possibility:

  • If we end up creating a separate bat-assets binary to build assets, we can still allow users to optionally keep the current capability in the main app

For the curious, here are some numbers, comparing minimal-application with application for stripped release builds. Note that I am including trishume/syntect#345 in below numbers:

variant stripped release binary size dependencies to build
minimal-application 3,5M 121
application 4,7M 166

I have not yet done broad verification of this PR. Would be great to get your high-level feedback on it before I polish it.

Also structure features a bit more clever to avoid duplication of
feature dependency declarations.
@sharkdp
Copy link
Owner

sharkdp commented Aug 11, 2021

I think we should maybe be careful not to make the conditional compilation configuration too fine-grained to avoid combinatorial complexity, but the asset building seems like a very reasonable part to make optional 👍

@Enselic
Copy link
Collaborator Author

Enselic commented Aug 17, 2021

I've done some additional verification now, and everything seems to work as it should. Merging.

@Enselic Enselic merged commit 25fa577 into sharkdp:master Aug 17, 2021
@Enselic Enselic deleted the build-assets-feature branch August 17, 2021 08:58
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.

2 participants