aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorPolesznyák Márk <contact@pml68.dev>2025-10-20 12:47:36 +0200
committerPolesznyák Márk <contact@pml68.dev>2025-10-20 12:51:08 +0200
commite7509d41405a1f5af64f2f74166f2bc5f1673225 (patch)
treec2e56fb086d83938d4c40238afccc66f925caacb /Cargo.toml
parentfix: markdown `Viewer` impl (diff)
downloadiced_selection-e7509d41405a1f5af64f2f74166f2bc5f1673225.tar.gz
feat: make markdown support optional with a feature flag
Diffstat (limited to '')
-rw-r--r--Cargo.toml19
1 files changed, 13 insertions, 6 deletions
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