Introduce backend feature flags in iced_renderer
This commit is contained in:
parent
06bbcc310e
commit
9b4bcd287a
6 changed files with 147 additions and 93 deletions
|
|
@ -12,6 +12,11 @@ keywords = ["gui", "ui", "graphics", "interface", "widgets"]
|
|||
categories = ["gui"]
|
||||
|
||||
[features]
|
||||
default = ["wgpu", "tiny-skia"]
|
||||
# Enable the `wgpu` GPU-accelerated renderer backend
|
||||
wgpu = ["iced_renderer/wgpu"]
|
||||
# Enable the `tiny-skia` software renderer backend
|
||||
tiny-skia = ["iced_renderer/tiny-skia"]
|
||||
# Enables the `Image` widget
|
||||
image = ["iced_widget/image", "image_rs"]
|
||||
# Enables the `Svg` widget
|
||||
|
|
@ -58,6 +63,7 @@ members = [
|
|||
[dependencies]
|
||||
iced_core = { version = "0.8", path = "core" }
|
||||
iced_futures = { version = "0.6", path = "futures" }
|
||||
iced_renderer = { version = "0.1", path = "renderer" }
|
||||
iced_widget = { version = "0.1", path = "widget" }
|
||||
iced_winit = { version = "0.8", path = "winit", features = ["application"] }
|
||||
thiserror = "1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue