diff options
author | 2023-09-04 12:58:41 +0200 | |
---|---|---|
committer | 2023-09-04 13:08:17 +0200 | |
commit | f468e25d0c67a01ee79d892f6e8ba9be019f06c7 (patch) | |
tree | c099dc3a7c4ef6faa5ce762832a286d0a55ec316 /examples/integration | |
parent | a56b25b9096d47ada3c4349f5b91110dfaa92bf6 (diff) | |
download | iced-f468e25d0c67a01ee79d892f6e8ba9be019f06c7.tar.gz iced-f468e25d0c67a01ee79d892f6e8ba9be019f06c7.tar.bz2 iced-f468e25d0c67a01ee79d892f6e8ba9be019f06c7.zip |
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.
Diffstat (limited to 'examples/integration')
-rw-r--r-- | examples/integration/Cargo.toml | 13 | ||||
-rw-r--r-- | examples/integration/src/main.rs | 2 |
2 files changed, 8 insertions, 7 deletions
diff --git a/examples/integration/Cargo.toml b/examples/integration/Cargo.toml index 22914742..4c55daa7 100644 --- a/examples/integration/Cargo.toml +++ b/examples/integration/Cargo.toml @@ -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 diff --git a/examples/integration/src/main.rs b/examples/integration/src/main.rs index 98b58f16..af48af5f 100644 --- a/examples/integration/src/main.rs +++ b/examples/integration/src/main.rs @@ -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(); |