Cargo Features

[dependencies]
masonry = { version = "0.1.2", default-features = false, features = ["gtk", "svg", "x11", "serde_deps", "png", "jpeg", "jpeg_rayon", "gif", "bmp", "ico", "tiff", "webp", "pnm", "dds", "tga", "farbfeld", "dxt", "hdr", "image-all", "chrono"] }
default = gtk, jpeg, png

These default features are set whenever masonry is added without default-features = false somewhere in the dependency tree.

gtk default

Enables gtk of druid-shell

svg image-all? = usvg
x11

Enables x11 of druid-shell

serde_deps

Enables serde of druid-shell and im

png default image-all?

passing on all the image features. AVIF is not supported because it does not support decoding, and that's all we use Image for.

Enables image_png of druid-shell

jpeg default image-all?

Enables jpeg of druid-shell

jpeg_rayon image-all?

Enables jpeg_rayon of druid-shell

gif image-all?

Enables gif of druid-shell

bmp image-all?

Enables bmp of druid-shell

ico image-all?

Enables ico of druid-shell

tiff image-all?

Enables tiff of druid-shell

webp image-all?

Enables webp of druid-shell

pnm image-all?

Enables pnm of druid-shell

dds image-all?

Enables dds of druid-shell

tga image-all?

Enables tga of druid-shell

farbfeld image-all?

Enables farbfeld of druid-shell

dxt image-all?

Enables dxt of druid-shell

hdr image-all?

Enables hdr of druid-shell

image-all = bmp, dds, dxt, farbfeld, gif, hdr, ico, jpeg, jpeg_rayon, png, pnm, svg, tga, tiff, webp

Remember to update this when changing an image feature.

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.

chrono implicit feature

Enables chrono

Optional dependencies

im serde_deps?
usvg svg?

Enables usvg ^0.14.1