Skip to content

Comments

Add features for all supported formats#13

Open
linkmauve wants to merge 1 commit intoUniversalGameExtraction:masterfrom
linkmauve:add-features
Open

Add features for all supported formats#13
linkmauve wants to merge 1 commit intoUniversalGameExtraction:masterfrom
linkmauve:add-features

Conversation

@linkmauve
Copy link

Building this library on my quad-core Cortex-A55 takes 1:20, which is too long to be pleasant to work on it. With only the bc1 feature enabled for instance, that goes down to 1.95s, or a factor 40 in compilation time.

With this change, all supported formats are still enabled by default, but can be disabled by setting default-features = false in the Cargo.toml (or passing --no-default-features to cargo), and then enabled independently.

The pvrtc or crunch features without the alloc feature don’t build, but that was the case before as well so I’m not fixing that here.

Do you want me to work on adding CI testing for all relevant combinations of features, or is that unnecessary?

Building this library on my quad-core Cortex-A55 takes 1:20, which is
too long to be pleasant to work on it.  With only the bc1 feature
enabled for instance, that goes down to 1.95s, or a factor 40 in
compilation time.

With this change, all supported formats are still enabled by default,
but can be disabled by setting default-features = false in the
Cargo.toml (or passing --no-default-features to cargo), and then enabled
independently.

The pvrtc or crunch features without the alloc feature don’t build, but
that was the case before as well so I’m not fixing that here.

Do you want me to work on adding CI testing for all relevant
combinations of features, or is that unnecessary?
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.

1 participant