From 287c099f91b6db59c1d021b4768a4cda8a2eaea3 Mon Sep 17 00:00:00 2001 From: GyulyVGC Date: Mon, 29 Dec 2025 16:10:33 +0100 Subject: [PATCH] use plotters-iced2 from crates.io --- Cargo.lock | 9 +++++---- Cargo.toml | 2 +- src/chart/types/preview_chart.rs | 2 +- src/chart/types/traffic_chart.rs | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8adf5ce7..faa4bd5f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3737,9 +3737,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df42e13c12958a16b3f7f4386b9ab1f3e7933914ecea48da7139435263a4172a" [[package]] -name = "plotters-iced" -version = "0.12.0" -source = "git+https://github.com/Joylei/plotters-iced.git?branch=iced-0.14#3d14d7708a88c29236af5e65dbfac44cae04d79f" +name = "plotters-iced2" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b1039c8645f00d8a217cefe8ad37f3a8b268a51f7de5eff429b78920ad1a9ea" dependencies = [ "iced_graphics", "iced_widget", @@ -4834,7 +4835,7 @@ dependencies = [ "phf_codegen", "phf_shared", "plotters", - "plotters-iced", + "plotters-iced2", "reqwest", "rfd", "rodio", diff --git a/Cargo.toml b/Cargo.toml index 06d86b35..4b776f51 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,7 +42,7 @@ etherparse = "0.19.0" chrono = { version = "0.4.42", default-features = false, features = ["clock"] } plotters = { version = "0.3.7", default-features = false, features = ["area_series", "line_series"] } iced = { version = "0.14.0", features = ["tokio", "svg", "advanced", "lazy", "image"] } -plotters-iced = { git = "https://github.com/Joylei/plotters-iced.git", branch = "iced-0.14" } +plotters-iced2 = "0.14.0" maxminddb = "0.27.1" confy = "2.0.0" serde = { version = "1.0.228", default-features = false, features = ["derive"] } diff --git a/src/chart/types/preview_chart.rs b/src/chart/types/preview_chart.rs index bbe243fa..d10612f7 100644 --- a/src/chart/types/preview_chart.rs +++ b/src/chart/types/preview_chart.rs @@ -3,7 +3,7 @@ use iced::Element; use iced::widget::Column; use plotters::prelude::*; -use plotters_iced::{Chart, ChartBuilder, ChartWidget, DrawingBackend}; +use plotters_iced2::{Chart, ChartBuilder, ChartWidget, DrawingBackend}; use crate::chart::types::chart_series::{ChartSeries, sample_spline}; use crate::gui::styles::style_constants::CHARTS_LINE_BORDER; diff --git a/src/chart/types/traffic_chart.rs b/src/chart/types/traffic_chart.rs index f6ea754b..18cd537b 100644 --- a/src/chart/types/traffic_chart.rs +++ b/src/chart/types/traffic_chart.rs @@ -7,7 +7,7 @@ use iced::{Element, Length, Padding}; use plotters::prelude::*; use plotters::series::LineSeries; -use plotters_iced::{Chart, ChartBuilder, ChartWidget, DrawingBackend}; +use plotters_iced2::{Chart, ChartBuilder, ChartWidget, DrawingBackend}; use splines::Spline; use crate::chart::types::chart_series::{ChartSeries, sample_spline};