Introduce iced_renderer subcrate featuring runtime renderer fallback

This commit is contained in:
Héctor Ramón Jiménez 2023-02-24 23:24:48 +01:00
parent 368cadd25a
commit 5100b5d0a1
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
16 changed files with 371 additions and 72 deletions

26
renderer/Cargo.toml Normal file
View file

@ -0,0 +1,26 @@
[package]
name = "iced_renderer"
version = "0.1.0"
edition = "2021"
[features]
image = ["iced_wgpu/image"]
svg = ["iced_wgpu/svg"]
tracing = ["iced_wgpu/tracing"]
[dependencies]
raw-window-handle = "0.5"
[dependencies.iced_native]
version = "0.9"
path = "../native"
[dependencies.iced_graphics]
version = "0.7"
path = "../graphics"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
iced_wgpu = { version = "0.9", path = "../wgpu" }
[target.'cfg(target_arch = "wasm32")'.dependencies]
iced_wgpu = { version = "0.9", path = "../wgpu", features = ["webgl"] }