Skip to content

Too long compilation time #45

@simnalamburt

Description

@simnalamburt

Using all default features of image crate leads this crate to bloated compilation time which is undesirable. We should opt-in those featuers. Below codes are the brief example of how to do it.

[features]
## create a feature in your app
default = ["gif_codec", "jpeg", "ico", "png_codec", "ppm", "tga", "tiff", "webp", "bmp", "hdr"]

gif_codec = ["image/gif_codec"]
ico = ["image/ico"]
jpeg = ["image/jpeg"]
png_codec = ["image/png_codec"]
ppm = ["image/ppm"]
tga = ["image/tga"]
tiff = ["image/tiff"]
webp = ["image/webp"]
bmp = ["image/bmp"]
hdr = ["image/hdr"]

[dependencies]
image = { version = "0.10.0", default-features = false }
References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions