Skip to content

Commit 07fa114

Browse files
airstrikex86y
authored andcommitted
fix: remove dependency
1 parent 968b560 commit 07fa114

File tree

6 files changed

+56
-50
lines changed

6 files changed

+56
-50
lines changed

Cargo.lock

+11-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+12-5
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,20 @@ serde_json = "1.0.103"
1010
once_cell = "1.18"
1111
async-std = "1.12.0"
1212
directories-next = "2.0"
13-
cbqn = { version = "0.1.0", default-features=false, optional = true }
13+
cbqn = { version = "0.1.0", default-features = false, optional = true }
1414
phf = "0.11.1"
1515
unicode-segmentation = "1.10.1"
16-
iced = { git = "https://github.com/iced-rs/iced", features = ["async-std", "debug", "lazy", "svg", "advanced", "markdown", "highlighter"], rev = "dcdf1307006883f50083c186ca7b8656bfa60873" }
17-
iced_core = { git = "https://github.com/iced-rs/iced", rev = "dcdf1307006883f50083c186ca7b8656bfa60873" }
18-
iced_runtime = { git = "https://github.com/iced-rs/iced", rev = "dcdf1307006883f50083c186ca7b8656bfa60873" }
19-
ngnk = { version = "0.2.3", optional = true}
16+
iced = { git = "https://github.com/iced-rs/iced", features = [
17+
"async-std",
18+
"debug",
19+
"lazy",
20+
"svg",
21+
"advanced",
22+
"markdown",
23+
"highlighter",
24+
], branch = "master" }
25+
iced_runtime = { git = "https://github.com/iced-rs/iced", branch = "master" }
26+
ngnk = { version = "0.2.3", optional = true }
2027

2128

2229
[package.metadata.bundle]

src/views/pane.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ use iced::alignment::Alignment;
99
use iced::widget::{pane_grid, svg};
1010
use iced::{
1111
color,
12-
widget::{button, column, container, row, scrollable, text, Column, Container},
13-
Element, Length,
12+
widget::{
13+
button, column, container, row, scrollable, text, text::LineHeight, Column, Container,
14+
},
15+
Element, Font, Length,
1416
};
1517

16-
use iced_core::{text::LineHeight, Font};
1718
use serde::{Deserialize, Serialize};
1819

1920
#[derive(Clone, Copy, Serialize, Deserialize, Debug, Hash, PartialEq, Eq)]

src/views/tabs.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
use iced::{
2-
widget::{button, row, text, Container},
3-
Element,
2+
widget::{button, row, text, text::LineHeight, Container},
3+
Element, Font,
44
};
5-
use iced_core::{text::LineHeight, Font};
65

76
use crate::{
87
utils::{macros::bqn386, HistoryMap},

src/views/toolbar.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
use iced::{
2-
widget::{button, container, markdown, text, tooltip},
3-
Element,
2+
widget::{button, container, markdown, text, text::LineHeight, tooltip},
3+
Element, Font,
44
};
5-
use iced_core::{text::LineHeight, Font};
65
use once_cell::sync::Lazy;
76

87
use crate::{

src/widgets/text_input.rs

+25-24
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,27 @@ pub use value::Value;
1111

1212
use editor::Editor;
1313

14-
use iced_core::alignment;
15-
use iced_core::clipboard::{self, Clipboard};
16-
use iced_core::event::{self, Event};
17-
use iced_core::keyboard;
18-
use iced_core::keyboard::key;
19-
use iced_core::layout;
20-
use iced_core::mouse::{self, click};
21-
use iced_core::renderer;
22-
use iced_core::text::paragraph;
23-
use iced_core::text::{self, Text};
24-
use iced_core::time::{Duration, Instant};
25-
use iced_core::touch;
26-
use iced_core::widget;
27-
use iced_core::widget::operation::{self, Operation};
28-
use iced_core::widget::tree::{self, Tree};
29-
use iced_core::window;
30-
use iced_core::{
31-
Background, Border, Color, Element, Layout, Length, Padding, Pixels, Point, Rectangle, Shell,
32-
Size, Theme, Vector, Widget,
14+
use iced::advanced::{
15+
clipboard, layout,
16+
mouse::{self, click},
17+
renderer,
18+
text::{self, paragraph, Text},
19+
widget::{
20+
operation::{self, Operation},
21+
tree::{self, Tree},
22+
},
23+
Clipboard, Layout, Shell, Widget,
24+
};
25+
use iced::alignment;
26+
use iced::event::{self, Event};
27+
use iced::keyboard;
28+
use iced::keyboard::key;
29+
use iced::time::{Duration, Instant};
30+
use iced::touch;
31+
use iced::window;
32+
use iced::{
33+
Background, Border, Color, Element, Length, Padding, Pixels, Point, Rectangle, Size, Theme,
34+
Vector,
3335
};
3436
use iced_runtime::task::{self, Task};
3537
use iced_runtime::Action;
@@ -1027,23 +1029,23 @@ pub enum Side {
10271029

10281030
/// The identifier of a [`TextInput`].
10291031
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
1030-
pub struct Id(widget::Id);
1032+
pub struct Id(iced::advanced::widget::Id);
10311033

10321034
impl Id {
10331035
/// Creates a custom [`Id`].
10341036
pub fn new(id: impl Into<std::borrow::Cow<'static, str>>) -> Self {
1035-
Self(widget::Id::new(id))
1037+
Self(iced::advanced::widget::Id::new(id))
10361038
}
10371039

10381040
/// Creates a unique [`Id`].
10391041
///
10401042
/// This function produces a different [`Id`] every time it is called.
10411043
pub fn unique() -> Self {
1042-
Self(widget::Id::unique())
1044+
Self(iced::advanced::widget::Id::unique())
10431045
}
10441046
}
10451047

1046-
impl From<Id> for widget::Id {
1048+
impl From<Id> for iced::advanced::widget::Id {
10471049
fn from(id: Id) -> Self {
10481050
id.0
10491051
}
@@ -1400,4 +1402,3 @@ pub fn default(theme: &Theme, status: Status) -> Style {
14001402
},
14011403
}
14021404
}
1403-

0 commit comments

Comments
 (0)