aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-06-02 22:57:07 +0200
committerpml68 <contact@pml68.dev>2025-06-02 23:09:46 +0200
commit4742a63043906b5ff154730070f07dc6b9929eed (patch)
treee2c19a4f22074f6b231cb8605c2b2414a39858f8
parentfeat: switch from `String` to `Fragment` for `title` (diff)
downloadiced_dialog-4742a63043906b5ff154730070f07dc6b9929eed.tar.gz
ci: fix workflow
-rw-r--r--.github/workflows/ci.yml2
-rw-r--r--Cargo.toml11
-rw-r--r--example/Cargo.toml8
-rw-r--r--examples/save.rs (renamed from example/src/main.rs)1
4 files changed, 7 insertions, 15 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index daff1be..154ee76 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -18,4 +18,4 @@ jobs:
- name: Run tests
run: cargo test --verbose
- name: Build example
- run: cargo build -p example
+ run: cargo build --example save
diff --git a/Cargo.toml b/Cargo.toml
index 3e8d4ca..35d3ed8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,15 +12,14 @@ keywords = ["gui", "ui", "graphics", "interface", "widgets"]
rust-version = "1.80"
[dependencies]
-iced_widget.workspace = true
-iced_core.workspace = true
-
-[workspace.dependencies]
iced_widget = "0.13.4"
iced_core = { version = "0.13.2", features = ["advanced"] }
-[workspace]
-members = ["example"]
+[dev-dependencies]
+iced = "0.13.1"
+
+[[example]]
+name = "save"
[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]
diff --git a/example/Cargo.toml b/example/Cargo.toml
deleted file mode 100644
index 9d6a50d..0000000
--- a/example/Cargo.toml
+++ /dev/null
@@ -1,8 +0,0 @@
-[package]
-name = "example"
-version = "0.0.1"
-edition = "2021"
-
-[dependencies]
-iced = "0.13.1"
-iced_dialog = { path = ".." }
diff --git a/example/src/main.rs b/examples/save.rs
index 52903c8..c81d3d6 100644
--- a/example/src/main.rs
+++ b/examples/save.rs
@@ -1,3 +1,4 @@
+#![allow(missing_docs)]
use iced::{
Element, Length, Task,
widget::{button, center, column, text},