From e7509d41405a1f5af64f2f74166f2bc5f1673225 Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Mon, 20 Oct 2025 12:47:36 +0200 Subject: feat: make markdown support optional with a feature flag --- Cargo.toml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 849c30e..a2c7a29 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,16 +13,23 @@ categories = ["gui"] keywords = ["gui", "ui", "graphics", "interface", "widgets"] rust-version = "1.88" +[features] +default = [] +markdown = ["iced_widget/markdown"] + [dependencies] -iced_widget = { git = "https://github.com/iced-rs/iced", features = [ - "markdown", -] } -unicode-segmentation = "1.0" +iced_widget.workspace = true +unicode-segmentation.workspace = true -[dev-dependencies] -iced = { git = "https://github.com/iced-rs/iced", features = ["markdown"] } +[workspace.dependencies] +iced_widget = { git = "https://github.com/iced-rs/iced" } +unicode-segmentation = "1.0" +iced = { git = "https://github.com/iced-rs/iced" } open = "5.3" +[workspace] +members = ["examples/*"] + [package.metadata.docs.rs] rustdoc-args = ["--cfg", "docsrs"] all-features = true -- cgit v1.2.3