From edd467cfda6f5dbb67ace70aac7a8adffee61b05 Mon Sep 17 00:00:00 2001 From: Nickolas Fotopoulos Date: Fri, 27 Sep 2024 21:45:08 -0700 Subject: [PATCH] Fix CI failures and cargo test by bumping font-kit version --- plotters/Cargo.toml | 47 ++++++++++++++++++++++++++++----------------- 1 file changed, 29 insertions(+), 18 deletions(-) diff --git a/plotters/Cargo.toml b/plotters/Cargo.toml index 14df9698..4489f0ed 100644 --- a/plotters/Cargo.toml +++ b/plotters/Cargo.toml @@ -32,7 +32,7 @@ path = "../plotters-svg" ttf-parser = { version = "0.15.0", optional = true } lazy_static = { version = "1.4.0", optional = true } pathfinder_geometry = { version = "0.5.1", optional = true } -font-kit = { version = "0.11.0", optional = true } +font-kit = { version = "0.14.2", optional = true } [target.'cfg(not(all(target_arch = "wasm32", not(target_os = "wasi"))))'.dependencies.image] version = "0.24.2" @@ -46,27 +46,37 @@ version = "0.2.62" [target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.web-sys] version = "0.3.51" features = [ - "Document", - "DomRect", - "Element", - "HtmlElement", - "Node", - "Window", - "HtmlCanvasElement", - "CanvasRenderingContext2d", + "Document", + "DomRect", + "Element", + "HtmlElement", + "Node", + "Window", + "HtmlCanvasElement", + "CanvasRenderingContext2d", ] [features] default = [ - "bitmap_backend", "bitmap_encoder", "bitmap_gif", - "svg_backend", - "chrono", - "ttf", - "image", - "deprecated_items", "all_series", "all_elements", - "full_palette" + "bitmap_backend", + "bitmap_encoder", + "bitmap_gif", + "svg_backend", + "chrono", + "ttf", + "image", + "deprecated_items", + "all_series", + "all_elements", + "full_palette", +] +all_series = [ + "area_series", + "line_series", + "point_series", + "surface_series", + "histogram", ] -all_series = ["area_series", "line_series", "point_series", "surface_series", "histogram"] all_elements = ["errorbar", "candlestick", "boxplot"] # Tier 1 Backends @@ -99,7 +109,8 @@ fontconfig-dlopen = ["font-kit/source-fontconfig-dlopen"] # Misc datetime = ["chrono"] evcxr = ["svg_backend"] -deprecated_items = [] # Keep some of the deprecated items for backward compatibility +deprecated_items = [ +] # Keep some of the deprecated items for backward compatibility [dev-dependencies] itertools = "0.10.0"