From 1ab7fc213d4230276f01b34bfe0ee82ec8bbe150 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 6 Jan 2025 13:39:29 -0700 Subject: [PATCH] Update swash to 0.2.0 and hook up std feature --- Cargo.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index cca5840..b67db53 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,6 @@ rustc-hash = { version = "1.1.0", default-features = false } rustybuzz = { version = "0.14", default-features = false, features = ["libm"] } self_cell = "1.0.1" smol_str = { version = "0.2.2", default-features = false } -swash = { version = "0.1.17", optional = true } syntect = { version = "5.1.0", optional = true } sys-locale = { version = "0.3.1", optional = true } ttf-parser = { version = "0.21", default-features = false } @@ -31,6 +30,12 @@ unicode-script = "0.5.5" unicode-segmentation = "1.10.1" rayon = { version = "1", optional = true } +[dependencies.swash] +version = "0.2.0" +default-features = false +features = ["render", "scale"] +optional = true + [dependencies.unicode-bidi] version = "0.3.13" default-features = false @@ -46,6 +51,7 @@ std = [ "fontdb/memmap", "fontdb/std", "rustybuzz/std", + "swash?/std", "sys-locale", "ttf-parser/std", "unicode-bidi/std",