From a2928ed301e90fb5d12209aa88a549c95ee797cb Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 11 Mar 2025 11:29:26 +0100 Subject: [PATCH] Make dependency on randomness optional --- crates/typst-kit/Cargo.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/typst-kit/Cargo.toml b/crates/typst-kit/Cargo.toml index d542976fd..10670f5a3 100644 --- a/crates/typst-kit/Cargo.toml +++ b/crates/typst-kit/Cargo.toml @@ -24,7 +24,6 @@ fontdb = { workspace = true, optional = true } native-tls = { workspace = true, optional = true } once_cell = { workspace = true } serde = { workspace = true } -rand = { workspace = true } serde_json = { workspace = true } tar = { workspace = true, optional = true } ureq = { workspace = true, optional = true } @@ -44,7 +43,7 @@ fonts = ["dep:fontdb", "fontdb/memmap", "fontdb/fontconfig"] downloads = ["dep:env_proxy", "dep:native-tls", "dep:ureq", "dep:openssl"] # Add package downloading utilities, implies `downloads` -packages = ["downloads", "dep:dirs", "dep:flate2", "dep:tar"] +packages = ["downloads", "dep:dirs", "dep:flate2", "dep:tar", "dep:rand"] # Embeds some fonts into the binary: # - For text: Libertinus Serif, New Computer Modern