summaryrefslogtreecommitdiffstats
path: root/examples/solar_system
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-09-07 03:30:35 +0200
committerLibravatar GitHub <noreply@github.com>2023-09-07 03:30:35 +0200
commitd1822ad8116604590b7e9be51fc0aea4292a0760 (patch)
tree547c601fbcba58409225bc853c27286a2747a99d /examples/solar_system
parentc8fed143eb14d790da0592c5e24c741f6fda101e (diff)
parentd315e27451d46a815d18ed6037547d178413ede7 (diff)
downloadiced-d1822ad8116604590b7e9be51fc0aea4292a0760.tar.gz
iced-d1822ad8116604590b7e9be51fc0aea4292a0760.tar.bz2
iced-d1822ad8116604590b7e9be51fc0aea4292a0760.zip
Merge pull request #2069 from iced-rs/use-workspace-dependencies
Use workspace dependencies and package inheritance
Diffstat (limited to 'examples/solar_system')
-rw-r--r--examples/solar_system/Cargo.toml6
-rw-r--r--examples/solar_system/src/main.rs2
2 files changed, 5 insertions, 3 deletions
diff --git a/examples/solar_system/Cargo.toml b/examples/solar_system/Cargo.toml
index 1a98a87e..ca64da14 100644
--- a/examples/solar_system/Cargo.toml
+++ b/examples/solar_system/Cargo.toml
@@ -6,6 +6,8 @@ edition = "2021"
publish = false
[dependencies]
-iced = { path = "../..", features = ["canvas", "tokio", "debug"] }
-env_logger = "0.10.0"
+iced.workspace = true
+iced.features = ["debug", "canvas", "tokio"]
+
rand = "0.8.3"
+tracing-subscriber = "0.3"
diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs
index 58d06206..8fa8946e 100644
--- a/examples/solar_system/src/main.rs
+++ b/examples/solar_system/src/main.rs
@@ -23,7 +23,7 @@ use iced::{
use std::time::Instant;
pub fn main() -> iced::Result {
- env_logger::builder().format_timestamp(None).init();
+ tracing_subscriber::fmt::init();
SolarSystem::run(Settings {
antialiasing: true,