From 89fa86ab5bcfbca2f5e255fdb267a8ea9283d615 Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Mon, 8 Dec 2025 20:40:10 +0100 Subject: feat: prepare for release --- Cargo.toml | 15 ++++++++++++--- src/text/rich.rs | 8 ++++++-- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 71eeac3..2895ffd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,10 +8,18 @@ license = "MIT" readme = "README.md" homepage = "https://sr.ht/~pml68/iced_selection" repository = "https://git.sr.ht/~pml68/iced_selection" -documentation = "https://iced-selection.pml68.dev" categories = ["gui"] keywords = ["gui", "ui", "graphics", "interface", "widgets"] rust-version = "1.88" +exclude = [ + ".cargo/config.toml", + ".builds/*", + "docs/*", + ".gitignore", + ".gitattributes", + "examples", + "rustfmt.toml", +] [features] default = [] @@ -22,9 +30,10 @@ iced_widget.workspace = true unicode-segmentation.workspace = true [workspace.dependencies] -iced_widget = { git = "https://github.com/iced-rs/iced", branch = "master" } +iced_widget = "0.14" unicode-segmentation = "1.0" -iced = { git = "https://github.com/iced-rs/iced", branch = "master" } + +iced = "0.14" open = "5.3" [workspace] diff --git a/src/text/rich.rs b/src/text/rich.rs index e0f2a1c..5b43672 100644 --- a/src/text/rich.rs +++ b/src/text/rich.rs @@ -155,11 +155,15 @@ where /// Sets the message that will be produced when a link of the [`Rich`] text /// is clicked. + /// + /// If the spans of the [`Rich`] text contain no links, you may need to call + /// this method with `on_link_click(never)` in order for the compiler to infer + /// the proper `Link` generic type. pub fn on_link_click( mut self, - on_link_clicked: impl Fn(Link) -> Message + 'a, + on_link_click: impl Fn(Link) -> Message + 'a, ) -> Self { - self.on_link_click = Some(Box::new(on_link_clicked)); + self.on_link_click = Some(Box::new(on_link_click)); self } -- cgit v1.2.3