Cargo Features
[dependencies]
cairo-rs = { version = "0.20.1", default-features = false, features = ["png", "pdf", "svg", "ps", "use_glib", "v1_16", "v1_18", "freetype", "script", "xcb", "xlib", "win32-surface"] }
- default = use_glib
-
The
use_glib
feature is set by default whenevercairo-rs
is added without
somewhere in the dependency tree.default-features = false - png
-
Enables png of cairo-sys-rs
-
Enables pdf of cairo-sys-rs
Affects
enums::PdfMetadata
,enums::PdfVersion
… - svg
-
Enables svg of cairo-sys-rs
Affects
enums::SvgVersion
,enums::SvgUnit
… - ps
-
Enables ps of cairo-sys-rs
Affects
enums::PsLevel
… - use_glib default = glib
-
Enables use_glib of cairo-sys-rs
- v1_16 v1_18?
-
Enables v1_16 of cairo-sys-rs
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
… - v1_18 = v1_16
-
Enables v1_18 of cairo-sys-rs
- freetype = freetype-rs
-
Enables freetype of cairo-sys-rs
Affects
enums::FtSynthesize
… - script
-
Enables script of cairo-sys-rs
Affects
enums::ScriptMode
… - xcb
-
Enables xcb of cairo-sys-rs
- xlib
-
Enables xlib of cairo-sys-rs
- win32-surface
-
Enables win32-surface of cairo-sys-rs
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.