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

Allow turning off file formats with features #25

Merged
merged 7 commits into from
Apr 18, 2022

Conversation

ravenclaw900
Copy link
Contributor

@ravenclaw900 ravenclaw900 commented Apr 16, 2022

Resolves #23

Not sure I like how I had to handle most of the match blocks, since I couldn't find an easy way to disable enum fields with features, but it works. Brings size of hello_world example from 1.2 MB to 670 KB, and lists from 1.2 MB to 673 KB on macOS.

src/serialization.rs Show resolved Hide resolved
examples/lists/Cargo.toml Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
@seladb
Copy link
Owner

seladb commented Apr 17, 2022

@ravenclaw900 I'd also add a few sentences to the documentation in lib.rs that list the features and explain how to turn them on/off

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.

[Feature request]Have features to disable unneeded file format
2 participants