Cargo Features

cairo-sys-rs has no features set by default.

[dependencies]
cairo-sys-rs = { version = "0.20.7", features = ["v1_16", "v1_18", "xlib", "png", "pdf", "svg", "ps", "freetype", "script", "xcb", "use_glib", "win32-surface"] }
v1_16 v1_18?

Affects cairo-sys-rs::cairo_tag_begin, cairo-sys-rs::cairo_tag_end, cairo-sys-rs::cairo_font_options_get_variations, cairo-sys-rs::cairo_font_options_set_variations, cairo-sys-rs::cairo_svg_unit_t, cairo-sys-rs::cairo_pdf_outline_flags_t, cairo-sys-rs::cairo_pdf_metadata_t, cairo-sys-rs::cairo_pdf_surface_add_outline, cairo-sys-rs::cairo_pdf_surface_set_metadata, cairo-sys-rs::cairo_pdf_surface_set_page_label, cairo-sys-rs::cairo_pdf_surface_set_thumbnail_size, cairo-sys-rs::cairo_svg_surface_get_document_unit, cairo-sys-rs::cairo_svg_surface_set_document_unit

v1_18 = v1_16

Affects cairo-sys-rs::cairo_set_hairline, cairo-sys-rs::cairo_get_hairline, cairo-sys-rs::cairo_pdf_surface_set_custom_metadata

xlib = x11

Affects cairo-sys-rs::cairo_xlib_surface_create, cairo-sys-rs::cairo_xlib_surface_create_for_bitmap, cairo-sys-rs::cairo_xlib_surface_set_size, cairo-sys-rs::cairo_xlib_surface_set_drawable, cairo-sys-rs::cairo_xlib_surface_get_display, cairo-sys-rs::cairo_xlib_surface_get_drawable, cairo-sys-rs::cairo_xlib_surface_get_screen, cairo-sys-rs::cairo_xlib_surface_get_visual, cairo-sys-rs::cairo_xlib_surface_get_depth, cairo-sys-rs::cairo_xlib_surface_get_width, cairo-sys-rs::cairo_xlib_surface_get_height, cairo-sys-rs::cairo_xlib_device_debug_cap_xrender_version, cairo-sys-rs::cairo_xlib_device_debug_get_precision, cairo-sys-rs::cairo_xlib_device_debug_set_precision

png

Affects cairo-sys-rs::cairo_image_surface_create_from_png_stream, cairo-sys-rs::cairo_surface_write_to_png_stream

pdf

Affects cairo-sys-rs::cairo_pdf_version_t, cairo-sys-rs::cairo_pdf_surface_create, cairo-sys-rs::cairo_pdf_surface_create_for_stream, cairo-sys-rs::cairo_pdf_surface_restrict_to_version, cairo-sys-rs::cairo_pdf_get_versions, cairo-sys-rs::cairo_pdf_version_to_string, cairo-sys-rs::cairo_pdf_surface_set_size, cairo-sys-rs::cairo_pdf_outline_flags_t, cairo-sys-rs::cairo_pdf_metadata_t, cairo-sys-rs::cairo_pdf_surface_add_outline, cairo-sys-rs::cairo_pdf_surface_set_metadata, cairo-sys-rs::cairo_pdf_surface_set_custom_metadata, cairo-sys-rs::cairo_pdf_surface_set_page_label, cairo-sys-rs::cairo_pdf_surface_set_thumbnail_size

svg

Affects cairo-sys-rs::cairo_svg_version_t, cairo-sys-rs::cairo_svg_surface_create, cairo-sys-rs::cairo_svg_surface_create_for_stream, cairo-sys-rs::cairo_svg_surface_restrict_to_version, cairo-sys-rs::cairo_svg_get_versions, cairo-sys-rs::cairo_svg_version_to_string, cairo-sys-rs::cairo_svg_unit_t, cairo-sys-rs::cairo_svg_surface_get_document_unit, cairo-sys-rs::cairo_svg_surface_set_document_unit

ps

Affects cairo-sys-rs::cairo_ps_level_t, cairo-sys-rs::cairo_ps_surface_create, cairo-sys-rs::cairo_ps_surface_create_for_stream, cairo-sys-rs::cairo_ps_surface_restrict_to_level, cairo-sys-rs::cairo_ps_get_levels, cairo-sys-rs::cairo_ps_level_to_string, cairo-sys-rs::cairo_ps_surface_set_eps, cairo-sys-rs::cairo_ps_surface_get_eps, cairo-sys-rs::cairo_ps_surface_set_size, cairo-sys-rs::cairo_ps_surface_dsc_begin_setup, cairo-sys-rs::cairo_ps_surface_dsc_begin_page_setup, cairo-sys-rs::cairo_ps_surface_dsc_comment

freetype

Affects cairo-sys-rs::FT_Face, cairo-sys-rs::FcPattern, cairo-sys-rs::cairo_ft_font_face_create_for_ft_face, cairo-sys-rs::cairo_ft_font_face_create_for_pattern, cairo-sys-rs::cairo_ft_font_options_substitute, cairo-sys-rs::cairo_ft_scaled_font_lock_face, cairo-sys-rs::cairo_ft_scaled_font_unlock_face, cairo-sys-rs::cairo_ft_font_face_get_synthesize, cairo-sys-rs::cairo_ft_font_face_set_synthesize, cairo-sys-rs::cairo_ft_font_face_unset_synthesize

script

Affects cairo-sys-rs::cairo_script_mode_t, cairo-sys-rs::cairo_script_create, cairo-sys-rs::cairo_script_create_for_stream, cairo-sys-rs::cairo_script_from_recording_surface, cairo-sys-rs::cairo_script_get_mode, cairo-sys-rs::cairo_script_set_mode, cairo-sys-rs::cairo_script_surface_create, cairo-sys-rs::cairo_script_surface_create_for_target, cairo-sys-rs::cairo_script_write_comment

xcb

Affects cairo-sys-rs::xcb_drawable_t, cairo-sys-rs::xcb_pixmap_t, cairo-sys-rs::cairo_xcb_surface_create, cairo-sys-rs::cairo_xcb_surface_create_for_bitmap, cairo-sys-rs::cairo_xcb_surface_create_with_xrender_format, cairo-sys-rs::cairo_xcb_surface_set_size, cairo-sys-rs::cairo_xcb_surface_set_drawable, cairo-sys-rs::cairo_xcb_device_get_connection, cairo-sys-rs::cairo_xcb_device_debug_cap_xrender_version, cairo-sys-rs::cairo_xcb_device_debug_cap_xshm_version, cairo-sys-rs::cairo_xcb_device_debug_get_precision, cairo-sys-rs::cairo_xcb_device_debug_set_precision

use_glib = glib-sys

Affects cairo-sys-rs::gobject

win32-surface = windows-sys

Affects cairo-sys-rs::windows, cairo-sys-rs::cairo_win32_surface_create, cairo-sys-rs::cairo_win32_surface_create_with_format, cairo-sys-rs::cairo_win32_surface_create_with_dib, cairo-sys-rs::cairo_win32_surface_create_with_ddb, cairo-sys-rs::cairo_win32_printing_surface_create, cairo-sys-rs::cairo_win32_surface_get_dc, cairo-sys-rs::cairo_win32_surface_get_image

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.

glib-sys use_glib?
windows-sys win win32-surface?
x11 xlib?