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
|
|
@ -4,9 +4,11 @@ version = "0.1.0"
|
|||
edition = "2021"
|
||||
|
||||
[features]
|
||||
wgpu = ["iced_wgpu"]
|
||||
tiny-skia = ["iced_tiny_skia"]
|
||||
image = ["iced_wgpu/image", "iced_tiny_skia/image"]
|
||||
svg = ["iced_wgpu/svg", "iced_tiny_skia/svg"]
|
||||
geometry = ["iced_wgpu/geometry", "iced_tiny_skia/geometry"]
|
||||
geometry = ["iced_graphics/geometry", "iced_wgpu?/geometry", "iced_tiny_skia?/geometry"]
|
||||
tracing = ["iced_wgpu/tracing"]
|
||||
|
||||
[dependencies]
|
||||
|
|
@ -20,7 +22,9 @@ path = "../graphics"
|
|||
[dependencies.iced_wgpu]
|
||||
version = "0.9"
|
||||
path = "../wgpu"
|
||||
optional = true
|
||||
|
||||
[dependencies.iced_tiny_skia]
|
||||
version = "0.1"
|
||||
path = "../tiny_skia"
|
||||
optional = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue