mirror of https://github.com/lapce/lapce.git
Remove usvg from Cargo.tomls
This commit is contained in:
parent
8199a60e4f
commit
dee2579830
|
@ -1929,7 +1929,6 @@ dependencies = [
|
||||||
"unicode-segmentation",
|
"unicode-segmentation",
|
||||||
"unicode-width",
|
"unicode-width",
|
||||||
"ureq",
|
"ureq",
|
||||||
"usvg",
|
|
||||||
"uuid",
|
"uuid",
|
||||||
"xi-rope",
|
"xi-rope",
|
||||||
"xi-unicode",
|
"xi-unicode",
|
||||||
|
@ -2030,7 +2029,6 @@ dependencies = [
|
||||||
"toml",
|
"toml",
|
||||||
"unicode-segmentation",
|
"unicode-segmentation",
|
||||||
"unicode-width",
|
"unicode-width",
|
||||||
"usvg",
|
|
||||||
"xi-rope",
|
"xi-rope",
|
||||||
"xi-unicode",
|
"xi-unicode",
|
||||||
]
|
]
|
||||||
|
|
|
@ -30,7 +30,6 @@ im = { version = "15.0.0", features = ["serde"] }
|
||||||
crossbeam-channel = "0.5.0"
|
crossbeam-channel = "0.5.0"
|
||||||
crossbeam-utils = "0.8.4"
|
crossbeam-utils = "0.8.4"
|
||||||
regex = "1.4.2"
|
regex = "1.4.2"
|
||||||
usvg = "0.14.0"
|
|
||||||
jsonrpc-lite = "0.5.0"
|
jsonrpc-lite = "0.5.0"
|
||||||
bit-vec = "0.5.0"
|
bit-vec = "0.5.0"
|
||||||
parking_lot = { version = "0.11.0", features = ["deadlock_detection"] }
|
parking_lot = { version = "0.11.0", features = ["deadlock_detection"] }
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
WidgetId,
|
WidgetId,
|
||||||
};
|
};
|
||||||
use druid::{
|
use druid::{
|
||||||
Data, Env, EventCtx, Size,
|
Data, Env, EventCtx,
|
||||||
};
|
};
|
||||||
use fuzzy_matcher::skim::SkimMatcherV2;
|
use fuzzy_matcher::skim::SkimMatcherV2;
|
||||||
use fuzzy_matcher::FuzzyMatcher;
|
use fuzzy_matcher::FuzzyMatcher;
|
||||||
|
@ -17,7 +17,6 @@
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::cmp::Ordering;
|
use std::cmp::Ordering;
|
||||||
use usvg;
|
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
@ -1008,10 +1007,3 @@ fn filter_items(
|
||||||
items
|
items
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn svg_tree_size(svg_tree: &usvg::Tree) -> Size {
|
|
||||||
match *svg_tree.root().borrow() {
|
|
||||||
usvg::NodeKind::Svg(svg) => Size::new(svg.size.width(), svg.size.height()),
|
|
||||||
_ => Size::ZERO,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -28,7 +28,6 @@ im = { version = "15.0.0", features = ["serde"] }
|
||||||
crossbeam-channel = "0.5.0"
|
crossbeam-channel = "0.5.0"
|
||||||
crossbeam-utils = "0.8.4"
|
crossbeam-utils = "0.8.4"
|
||||||
regex = "1.4.2"
|
regex = "1.4.2"
|
||||||
usvg = "0.14.0"
|
|
||||||
jsonrpc-lite = "0.5.0"
|
jsonrpc-lite = "0.5.0"
|
||||||
bit-vec = "0.5.0"
|
bit-vec = "0.5.0"
|
||||||
parking_lot = { version = "0.11.0", features = ["deadlock_detection"] }
|
parking_lot = { version = "0.11.0", features = ["deadlock_detection"] }
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
use lsp_types::SymbolKind;
|
use lsp_types::SymbolKind;
|
||||||
use usvg;
|
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
editor::view::LapceEditorView,
|
editor::view::LapceEditorView,
|
||||||
|
@ -940,10 +939,3 @@ pub fn new(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn svg_tree_size(svg_tree: &usvg::Tree) -> Size {
|
|
||||||
match *svg_tree.root().borrow() {
|
|
||||||
usvg::NodeKind::Svg(svg) => Size::new(svg.size.width(), svg.size.height()),
|
|
||||||
_ => Size::ZERO,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue