summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar rhysd <lin90162@yahoo.co.jp>2025-01-29 00:45:14 +0900
committerLibravatar rhysd <lin90162@yahoo.co.jp>2025-01-29 00:45:14 +0900
commitf51ce47f375a6b187f1d97386b618f14b84c36a7 (patch)
tree28ac26629cce05e8316a09e43232efbf7c956841 /examples
parentce4ee9323d31d7f346b1d775945f7629f3c5ab64 (diff)
downloadiced-f51ce47f375a6b187f1d97386b618f14b84c36a7.tar.gz
iced-f51ce47f375a6b187f1d97386b618f14b84c36a7.tar.bz2
iced-f51ce47f375a6b187f1d97386b618f14b84c36a7.zip
Replace unmaintained `directories-next` crate with `directories` crate
[`directories-next`][1] crate is no longer maintained and [`directories`][2] crate is still maintained. `directories-next` had been forked from `directories` but it died because the original `directories` crate revived the maintenance. [1]: https://crates.io/crates/directories-next [2]: https://crates.io/crates/directories
Diffstat (limited to 'examples')
-rw-r--r--examples/todos/Cargo.toml2
-rw-r--r--examples/todos/src/main.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/todos/Cargo.toml b/examples/todos/Cargo.toml
index 16f4fdd2..5d42a88d 100644
--- a/examples/todos/Cargo.toml
+++ b/examples/todos/Cargo.toml
@@ -15,7 +15,7 @@ uuid = { version = "1.0", features = ["v4", "fast-rng", "serde"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
async-std.workspace = true
-directories-next = "2.0"
+directories = "6.0"
tracing-subscriber = "0.3"
[target.'cfg(target_arch = "wasm32")'.dependencies]
diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs
index 7759552c..7faf742e 100644
--- a/examples/todos/src/main.rs
+++ b/examples/todos/src/main.rs
@@ -490,7 +490,7 @@ enum SaveError {
impl SavedState {
fn path() -> std::path::PathBuf {
let mut path = if let Some(project_dirs) =
- directories_next::ProjectDirs::from("rs", "Iced", "Todos")
+ directories::ProjectDirs::from("rs", "Iced", "Todos")
{
project_dirs.data_dir().into()
} else {