From 4a85870c57b28a92dbfdc162833b3a7f7fbcc5c6 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sat, 7 Sep 2024 21:57:16 +0700 Subject: [PATCH] Use workspace dep for `swash`, disable default features. The example needs the default features, so enable them there, but the `parley` crate does not, so leave them disabled there. --- Cargo.toml | 3 ++- examples/swash_render/Cargo.toml | 2 +- parley/Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b96d2d42..40cb5946 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,5 +25,6 @@ rust.unused_qualifications = "warn" [workspace.dependencies] fontique = { version = "0.1.0", default-features = false, path = "fontique" } parley = { version = "0.1.0", default-features = false, path = "parley" } -skrifa = { version = "0.19.1", default-features = false } peniko = { version = "0.1.0", default-features = false } +skrifa = { version = "0.19.1", default-features = false } +swash = { version = "0.1.16", default-features = false } diff --git a/examples/swash_render/Cargo.toml b/examples/swash_render/Cargo.toml index ae5031b6..dc2d1c0f 100644 --- a/examples/swash_render/Cargo.toml +++ b/examples/swash_render/Cargo.toml @@ -12,7 +12,7 @@ parley = { workspace = true, default-features = true } skrifa = { workspace = true } peniko = { workspace = true } image = { version = "0.25.1", default-features = false, features = ["png"] } -swash = "0.1.16" +swash = { workspace = true, default-features = true } [lints] workspace = true diff --git a/parley/Cargo.toml b/parley/Cargo.toml index b29fc9ba..3726d087 100644 --- a/parley/Cargo.toml +++ b/parley/Cargo.toml @@ -20,7 +20,7 @@ libm = ["fontique/libm", "skrifa/libm", "peniko/libm"] system = ["std", "fontique/system"] [dependencies] -swash = "0.1.16" +swash = { workspace = true } skrifa = { workspace = true } peniko = { workspace = true } fontique = { workspace = true }