owengage / fastnbt

Fast serde serializer and deserializer for Minecraft's NBT and Anvil formats
MIT License
185 stars 35 forks source link

Fastanvil image feature flag #77

Closed icrayix closed 1 year ago

icrayix commented 1 year ago

Hi,

looking at fastanvils dependency tree (cargo tree) shows that a lot of dependencies are sub-dependencies of the image crate. That is even though I do not use any features related to rendering the world, etc.

Is there any chance we can factor out all image related features into a feature flag in order to reduce the amount of overhead for people that do not use it?

owengage commented 1 year ago

This sounds like a good idea to me. I believe flags can be named after crates now, so an image feature that is default would be good.

Since fastanvil is pre1.0 I'm not too worried about breaking changes, but I don't think this will introduce any.

owengage commented 1 year ago

Published fastanvil-0.28.0. :)