diff --git a/Cargo.toml b/Cargo.toml index ee94e2a30..c1841af9b 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 }