Cargo Features

[dependencies]
ohos-drawing-sys = { version = "0.1.1", default-features = false, features = ["api-10", "api-11", "api-12", "document-features"] }
default = api-10

The api-10 feature is set by default whenever ohos-drawing-sys is added without default-features = false somewhere in the dependency tree.

api-10 default api-11?

OpenHarmony API level

This crate by default exposes bindings for API-level 10. Optionally enable one of the api-* features to get access to bindings for newer OpenHarmony versions.

No effect. API-10 bindings can't be deselected. The feature exists for internal purposes.

api-11 api-12? = api-10

Enables bindings for OpenHarmony API-level 11

Affects ohos-drawing-sys::color_filter, ohos-drawing-sys::filter, ohos-drawing-sys::font, ohos-drawing-sys::mask_filter, ohos-drawing-sys::matrix, ohos-drawing-sys::point, ohos-drawing-sys::rect, ohos-drawing-sys::register_font, ohos-drawing-sys::round_rect, ohos-drawing-sys::shader_effect, ohos-drawing-sys::text_blob, ohos-drawing-sys::typeface

api-12 = api-11

**EXPERIMENTAL**: Enables bindings for OpenHarmony API-level 12 (beta-1).
Will stabilize once the final version has been released.

Affects ohos-drawing-sys::color_space, ohos-drawing-sys::error_code, ohos-drawing-sys::font_mgr, ohos-drawing-sys::gpu_context, ohos-drawing-sys::image, ohos-drawing-sys::image_filter, ohos-drawing-sys::memory_stream, ohos-drawing-sys::path_effect, ohos-drawing-sys::pixel_map, ohos-drawing-sys::sampling_options, ohos-drawing-sys::shadow_layer, ohos-drawing-sys::surface

document-features

Document available features when building the documentation

Enables document-features