From 9f3325cbe7901e7d2350c1554029ccaf5ff61621 Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Mon, 20 Feb 2023 11:30:55 +0100 Subject: Replace `toml_edit` with `basic-toml` --- askama_derive/Cargo.toml | 4 ++-- askama_derive/src/config.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/askama_derive/Cargo.toml b/askama_derive/Cargo.toml index 15dd36b..c13e7ca 100644 --- a/askama_derive/Cargo.toml +++ b/askama_derive/Cargo.toml @@ -14,7 +14,7 @@ rust-version = "1.58" proc-macro = true [features] -config = ["serde", "toml_edit"] +config = ["serde", "basic-toml"] humansize = [] markdown = [] urlencode = [] @@ -38,4 +38,4 @@ proc-macro2 = "1" quote = "1" serde = { version = "1.0", optional = true, features = ["derive"] } syn = "1" -toml_edit = { version = "0.19", optional = true, features = ["serde"] } +basic-toml = { version = "0.1.1", optional = true } diff --git a/askama_derive/src/config.rs b/askama_derive/src/config.rs index a075744..eec20ed 100644 --- a/askama_derive/src/config.rs +++ b/askama_derive/src/config.rs @@ -192,7 +192,7 @@ struct RawConfig { impl RawConfig { #[cfg(feature = "config")] fn from_toml_str(s: &str) -> std::result::Result { - toml_edit::de::from_str(s) + basic_toml::from_str(s) .map_err(|e| format!("invalid TOML in {CONFIG_FILE_NAME}: {e}").into()) } -- cgit