Make iced_wgpu a mandatory dependency
This commit is contained in:
parent
a0597471b8
commit
b2c87cdd23
1 changed files with 5 additions and 8 deletions
13
Cargo.toml
13
Cargo.toml
|
|
@ -12,17 +12,14 @@ keywords = ["gui", "ui", "graphics", "interface", "widgets"]
|
|||
categories = ["gui"]
|
||||
|
||||
[features]
|
||||
default = ["wgpu"]
|
||||
# Enables the `Image` widget
|
||||
image = ["iced_wgpu?/image", "image_rs"]
|
||||
image = ["iced_wgpu/image", "image_rs"]
|
||||
# Enables the `Svg` widget
|
||||
svg = ["iced_wgpu?/svg"]
|
||||
svg = ["iced_wgpu/svg"]
|
||||
# Enables the `Canvas` widget
|
||||
canvas = ["iced_graphics/canvas"]
|
||||
# Enables the `QRCode` widget
|
||||
qr_code = ["iced_graphics/qr_code"]
|
||||
# Enables the `iced_wgpu` renderer
|
||||
wgpu = ["iced_wgpu"]
|
||||
# Enables a debug view in native platforms (press F12)
|
||||
debug = ["iced_winit/debug"]
|
||||
# Enables `tokio` as the `executor::Default` on native platforms
|
||||
|
|
@ -38,7 +35,7 @@ system = ["iced_winit/system"]
|
|||
# Enables chrome traces
|
||||
chrome-trace = [
|
||||
"iced_winit/chrome-trace",
|
||||
"iced_wgpu?/tracing",
|
||||
"iced_wgpu/tracing",
|
||||
]
|
||||
|
||||
[badges]
|
||||
|
|
@ -71,10 +68,10 @@ package = "image"
|
|||
optional = true
|
||||
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||
iced_wgpu = { version = "0.9", path = "wgpu", optional = true }
|
||||
iced_wgpu = { version = "0.9", path = "wgpu" }
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
iced_wgpu = { version = "0.9", path = "wgpu", features = ["webgl"], optional = true }
|
||||
iced_wgpu = { version = "0.9", path = "wgpu", features = ["webgl"] }
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue