aboutsummaryrefslogtreecommitdiff
path: root/examples
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 /examples
parentfix: markdown `Viewer` impl (diff)
downloadiced_selection-e7509d41405a1f5af64f2f74166f2bc5f1673225.tar.gz
feat: make markdown support optional with a feature flag
Diffstat (limited to 'examples')
-rw-r--r--examples/name/Cargo.toml8
-rw-r--r--examples/name/src/main.rs (renamed from examples/name.rs)1
-rw-r--r--examples/rich/Cargo.toml9
-rw-r--r--examples/rich/src/main.rs (renamed from examples/iced.rs)1
4 files changed, 17 insertions, 2 deletions
diff --git a/examples/name/Cargo.toml b/examples/name/Cargo.toml
new file mode 100644
index 0000000..23c3b58
--- /dev/null
+++ b/examples/name/Cargo.toml
@@ -0,0 +1,8 @@
+[package]
+name = "name"
+version = "0.0.0"
+edition = "2024"
+
+[dependencies]
+iced.workspace = true
+iced_selection = { path = "../.." }
diff --git a/examples/name.rs b/examples/name/src/main.rs
index 6d0edec..2a733d5 100644
--- a/examples/name.rs
+++ b/examples/name/src/main.rs
@@ -1,4 +1,3 @@
-#![allow(missing_docs)]
use iced::widget::{center, column, text_input};
use iced::{Center, Element};
use iced_selection::text;
diff --git a/examples/rich/Cargo.toml b/examples/rich/Cargo.toml
new file mode 100644
index 0000000..a016a5e
--- /dev/null
+++ b/examples/rich/Cargo.toml
@@ -0,0 +1,9 @@
+[package]
+name = "rich"
+version = "0.0.0"
+edition = "2024"
+
+[dependencies]
+iced.workspace = true
+iced_selection = { path = "../.." }
+open.workspace = true
diff --git a/examples/iced.rs b/examples/rich/src/main.rs
index e031d08..6c47e0f 100644
--- a/examples/iced.rs
+++ b/examples/rich/src/main.rs
@@ -1,4 +1,3 @@
-#![allow(missing_docs)]
use iced::widget::{center, column, responsive};
use iced::{Center, Element, color};
use iced_selection::{rich_text, span};