Use workspace dependencies and package inheritance
We are also taking this as a chance to synchronize the versions of all the crates! Because of this, we will skip the `0.11` version.
This commit is contained in:
parent
a56b25b909
commit
f468e25d0c
59 changed files with 447 additions and 423 deletions
|
|
@ -6,18 +6,19 @@ edition = "2021"
|
|||
publish = false
|
||||
|
||||
[dependencies]
|
||||
iced_winit = { path = "../../winit" }
|
||||
iced_wgpu = { path = "../../wgpu" }
|
||||
iced_widget = { path = "../../widget" }
|
||||
iced_renderer = { path = "../../renderer", features = ["wgpu"] }
|
||||
env_logger = "0.10"
|
||||
iced_winit.workspace = true
|
||||
iced_wgpu.workspace = true
|
||||
iced_widget.workspace = true
|
||||
|
||||
tracing-subscriber = "0.3"
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
console_error_panic_hook = "0.1.7"
|
||||
console_log = "0.2.0"
|
||||
log = "0.4"
|
||||
log.workspace = true
|
||||
wasm-bindgen = "0.2"
|
||||
web-sys = { version = "0.3", features = ["Element", "HtmlCanvasElement", "Window", "Document"] }
|
||||
|
||||
# This dependency a little bit quirky, it is deep in the tree and without `js` feature it
|
||||
# refuses to work with `wasm32-unknown-unknown target`. Unfortunately, we need this patch
|
||||
# to make it work
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
};
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
env_logger::init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
// Initialize winit
|
||||
let event_loop = EventLoop::new();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue