From eec42ec369f1c7372475fdb16e487597c371d297 Mon Sep 17 00:00:00 2001 From: Xiretza Date: Tue, 18 Jul 2023 20:27:59 +0000 Subject: [PATCH] Update toml to 0.7 --- Cargo.lock | 30 ++++++++++++++++++++++++++++-- Cargo.toml | 2 +- src/setup.rs | 2 +- 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 44b209b..ed81b55 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1291,7 +1291,7 @@ dependencies = [ "thiserror", "time", "tokio", - "toml", + "toml 0.7.6", "tracing", "tracing-error", "tracing-subscriber", @@ -2332,7 +2332,7 @@ dependencies = [ "ruma-identifiers-validation", "serde", "syn 1.0.109", - "toml", + "toml 0.5.11", ] [[package]] @@ -2452,6 +2452,15 @@ dependencies = [ "serde", ] +[[package]] +name = "serde_spanned" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96426c9936fd7a0124915f9185ea1d20aa9445cc9821142f0a73bc9207a2e186" +dependencies = [ + "serde", +] + [[package]] name = "serde_urlencoded" version = "0.7.1" @@ -2770,11 +2779,26 @@ dependencies = [ "serde", ] +[[package]] +name = "toml" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c17e963a819c331dcacd7ab957d80bc2b9a9c1e71c804826d2f283dd65306542" +dependencies = [ + "serde", + "serde_spanned", + "toml_datetime", + "toml_edit", +] + [[package]] name = "toml_datetime" version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b" +dependencies = [ + "serde", +] [[package]] name = "toml_edit" @@ -2783,6 +2807,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8123f27e969974a3dfba720fdb560be359f57b44302d280ba72e76a74480e8a" dependencies = [ "indexmap 2.0.0", + "serde", + "serde_spanned", "toml_datetime", "winnow", ] diff --git a/Cargo.toml b/Cargo.toml index 6266031..e82d334 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ spaceapi = "0.8.1" thiserror = "1.0.37" time = { version = "0.3.17", features = ["local-offset", "formatting", "macros"] } tokio = { version = "1.21.2", features = ["full"] } -toml = "0.5.9" +toml = "0.7.6" url = { version = "2.3.1", features = ["serde"] } xdg = "2.4.1" diff --git a/src/setup.rs b/src/setup.rs index 69715bf..0e2c785 100644 --- a/src/setup.rs +++ b/src/setup.rs @@ -58,7 +58,7 @@ pub(crate) async fn setup(setup: Setup) -> Result<()> { homeserver_url: setup.homeserver_url, }; - tokio::fs::write(crate::session_path()?, toml::to_vec(&data)?).await?; + tokio::fs::write(crate::session_path()?, toml::to_string(&data)?).await?; client.sync_once(SyncSettings::default()).await?;