Skip to content

Commit

Permalink
Make iced_wgpu a mandatory dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Feb 10, 2023
1 parent 107f5bb commit b5815b9
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -38,7 +35,7 @@ system = ["iced_winit/system"]
# Enables chrome traces
chrome-trace = [
"iced_winit/chrome-trace",
"iced_wgpu?/tracing",
"iced_wgpu/tracing",
]

[badges]
Expand Down Expand Up @@ -71,10 +68,10 @@ package = "image"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
iced_wgpu = { version = "0.8", path = "wgpu", optional = true }
iced_wgpu = { version = "0.8", path = "wgpu" }

[target.'cfg(target_arch = "wasm32")'.dependencies]
iced_wgpu = { version = "0.8", path = "wgpu", features = ["webgl"], optional = true }
iced_wgpu = { version = "0.8", path = "wgpu", features = ["webgl"] }

[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]
Expand Down

0 comments on commit b5815b9

Please sign in to comment.