summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-02-26 00:13:19 +0100
committerLaurenz <laurmaedje@gmail.com>2022-02-26 00:13:44 +0100
commit4f85fc3acd840ff8802035abcdcf2191689bb628 (patch)
treec91071afc2758ed98b01c619b5e6d9eac3281a5a
parentb0f4b13f6d4a1fe7742707d08e11ba03f3542b58 (diff)
Remove dependency on itertools
-rw-r--r--Cargo.lock11
-rw-r--r--Cargo.toml6
-rw-r--r--src/library/par.rs2
3 files changed, 3 insertions, 16 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 8da75a6c..4a6d4f0e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -275,15 +275,6 @@ dependencies = [
]
[[package]]
-name = "itertools"
-version = "0.10.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3"
-dependencies = [
- "either",
-]
-
-[[package]]
name = "itoa"
version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -812,11 +803,11 @@ dependencies = [
"bytemuck",
"codespan-reporting",
"dirs",
+ "either",
"flate2",
"fxhash",
"iai",
"image",
- "itertools",
"kurbo",
"memmap2",
"miniz_oxide 0.4.4",
diff --git a/Cargo.toml b/Cargo.toml
index d709b0b0..3971b971 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -9,18 +9,14 @@ default = ["fs"]
cli = ["fs", "pico-args", "codespan-reporting", "same-file"]
fs = ["dirs", "memmap2", "same-file", "walkdir"]
-# Dependency updates:
-# - Bump ttf-parser when rustybuzz is updated
-# - Bump usvg and resvg in conjunction with svg2pdf
-
[dependencies]
# Workspace
typst-macros = { path = "./macros" }
# Utilities
bytemuck = "1"
+either = "1"
fxhash = "0.2"
-itertools = "0.10"
once_cell = "1"
serde = { version = "1", features = ["derive"] }
typed-arena = "2"
diff --git a/src/library/par.rs b/src/library/par.rs
index 8b4adf92..6d5a0597 100644
--- a/src/library/par.rs
+++ b/src/library/par.rs
@@ -2,7 +2,7 @@
use std::sync::Arc;
-use itertools::Either;
+use either::Either;
use unicode_bidi::{BidiInfo, Level};
use xi_unicode::LineBreakIterator;