Cargo Features

[dependencies]
cairo-rs-colors = { version = "0.15.0", default-features = false, features = ["png", "pdf", "svg", "ps", "use_glib", "v1_16", "freetype", "script", "xcb", "xlib", "dox", "win32-surface"] }
default = use_glib

The use_glib feature is set by default whenever cairo-rs-colors is added without default-features = false somewhere in the dependency tree.

png

Enables png of cairo-sys-rs ^0.14.0

pdf

Enables pdf of cairo-sys-rs ^0.14.0

Affects enums::PdfMetadata, enums::PdfVersion

svg

Enables svg of cairo-sys-rs ^0.14.0

Affects enums::SvgVersion, enums::SvgUnit

ps

Enables ps of cairo-sys-rs ^0.14.0

Affects enums::PsLevel

use_glib default = glib

Enables use_glib of cairo-sys-rs ^0.14.0

v1_16

Enables v1_16 of cairo-sys-rs ^0.14.0

Affects constants::MIME_TYPE_CCITT_FAX, constants::MIME_TYPE_CCITT_FAX_PARAMS, constants::MIME_TYPE_EPS, constants::MIME_TYPE_EPS_PARAMS, constants::PDF_OUTLINE_ROOT, constants::CAIRO_TAG_DEST, constants::CAIRO_TAG_LINK, enums::SvgUnit

freetype dox? = freetype-crate

Enables freetype of cairo-sys-rs ^0.14.0

Affects enums::FtSynthesize

script

Enables script of cairo-sys-rs ^0.14.0

Affects enums::ScriptMode

xcb

Enables xcb of cairo-sys-rs ^0.14.0

xlib

Enables xlib of cairo-sys-rs ^0.14.0

dox = freetype

Enables dox of cairo-sys-rs ^0.14.0 and glib ^0.14.0

Affects constants::MIME_TYPE_CCITT_FAX, constants::MIME_TYPE_CCITT_FAX_PARAMS, constants::MIME_TYPE_EPS, constants::MIME_TYPE_EPS_PARAMS, constants::PDF_OUTLINE_ROOT, constants::CAIRO_TAG_DEST, constants::CAIRO_TAG_LINK, enums::PdfMetadata, enums::PdfVersion, enums::SvgVersion, enums::PsLevel, enums::FtSynthesize, enums::ScriptMode, enums::SvgUnit

win32-surface

Enables win32-surface of cairo-sys-rs ^0.14.0

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.

freetype-crate freetype?

Enables freetype

glib dox? use_glib

Enables glib ^0.14.0