summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-09-29 00:09:41 +0200
committerLaurenz <laurmaedje@gmail.com>2021-09-29 00:09:41 +0200
commit2760e111454bdfdaa049879edf7ccfdacc41dd3c (patch)
tree9d34ce6ff9cbf72e26dd7ae95b4a6e1cb23ab41c
parent0e89facb538a6ddd6890f2516f6d33059e7b3483 (diff)
Put rand behind layout cache feature
-rw-r--r--Cargo.toml4
1 files changed, 2 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index ee94e2a3..c1841af9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,7 +8,7 @@ edition = "2018"
default = ["cli", "fs", "layout-cache"]
cli = ["anyhow", "codespan-reporting", "fs", "pico-args", "same-file"]
fs = ["dirs", "memmap2", "same-file", "walkdir"]
-layout-cache = []
+layout-cache = ["rand"]
[profile.dev]
# Faster compilation
@@ -25,7 +25,6 @@ image = { version = "0.23", default-features = false, features = ["png", "jpeg"]
itertools = "0.10"
miniz_oxide = "0.4"
pdf-writer = { git = "https://github.com/typst/pdf-writer", rev = "a750b66" }
-rand = "0.8"
rustybuzz = "0.4"
serde = { version = "1", features = ["derive", "rc"] }
ttf-parser = "0.12"
@@ -37,6 +36,7 @@ codespan-reporting = { version = "0.11", optional = true }
dirs = { version = "3", optional = true }
memmap2 = { version = "0.3", optional = true }
pico-args = { version = "0.4", optional = true }
+rand = { version = "0.8", optional = true }
same-file = { version = "1", optional = true }
walkdir = { version = "2", optional = true }