Expose system module through feature flag
This commit is contained in:
parent
5eefa5d4ea
commit
93bfe2c75e
8 changed files with 30 additions and 14 deletions
|
|
@ -12,12 +12,12 @@ categories = ["gui"]
|
|||
|
||||
[features]
|
||||
debug = ["iced_native/debug"]
|
||||
system = ["sysinfo"]
|
||||
|
||||
[dependencies]
|
||||
window_clipboard = "0.2"
|
||||
log = "0.4"
|
||||
thiserror = "1.0"
|
||||
sysinfo = "0.23"
|
||||
|
||||
[dependencies.winit]
|
||||
version = "0.26"
|
||||
|
|
@ -42,3 +42,7 @@ version = "0.3.6"
|
|||
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
|
||||
version = "0.3"
|
||||
features = ["Document", "Window"]
|
||||
|
||||
[dependencies.sysinfo]
|
||||
version = "0.23"
|
||||
optional = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue