Cargo Features
[dependencies]
imagine = { version = "0.5.1", default-features = false, features = ["alloc", "png", "bmp", "netpbm", "miniz_oxide"] }
- default = alloc, bmp, miniz_oxide, netpbm, png
-
These default features are set whenever
imagine
is added without
somewhere in the dependency tree.default-features = false - alloc default
-
Affects
alloc_bitmap::Bitmap
,alloc_bitmap::Palmap
,bmp::bmp_try_bitmap_rgb
,bmp::bmp_try_bitmap_rgba
,imagine::try_bitmap_rgba
,netpbm::netpbm_try_bitmap_rgb
,netpbm::netpbm_try_bitmap_rgba
,png::png_try_bitmap_rgba
… - png default = bitfrob, png_filters
-
Portable Network Graphics
Affects
imagine::png
… - bmp default = bitfrob, pack1
-
Windows Bitmap
Affects
imagine::bmp
… - netpbm default
-
Covers all the Netpbm files: pbm, pgm, ppm, pnm, pam
Affects
imagine::netpbm
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- png_filters png
- bitfrob bmp png
- miniz_oxide default
-
Enables miniz_oxide ^0.7.1
- pack1 bmp
-
Enables pack1 ^0.1.1