-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Description
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