From a4da7a8fd8fa7d23d0ddce57e73cf41a27ee75ab Mon Sep 17 00:00:00 2001 From: Gabriel de Perthuis Date: Thu, 8 Feb 2024 12:41:53 +0100 Subject: [PATCH] Explain what has become of separate-front-target-dir The change in #216 was not actionable and contradicted the way the option was documented in the README. See #203 and #217. --- README.md | 2 +- src/config/project.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 888d765d..3655ecbb 100644 --- a/README.md +++ b/README.md @@ -191,7 +191,7 @@ lib-profile-dev = "my-debug-profile" # Fixes cargo bug that prevents incremental compilation (see #203) # -# Optional. Defaults to false +# Optional. Defaults to false prior to 0.2.3, unconditionally enabled (with the setting becoming deprecated) since 0.2.3 and #216 separate-front-target-dir = true # Pass additional parameters to the cargo process compiling to WASM diff --git a/src/config/project.rs b/src/config/project.rs index ef49b384..9f5c1b23 100644 --- a/src/config/project.rs +++ b/src/config/project.rs @@ -195,7 +195,7 @@ pub struct ProjectConfig { pub tmp_dir: Utf8PathBuf, /// Deprecated. Keeping this here to warn users to remove it in case they have it in their config. - #[deprecated = "This option is deprecated. Please remove it from your config."] + #[deprecated = "This option is deprecated since cargo-leptos 0.2.3 (when it became unconditionally enabled). You may remove it from your config."] pub separate_front_target_dir: Option, // Profiles @@ -259,8 +259,8 @@ impl ProjectConfig { #[allow(deprecated)] if conf.separate_front_target_dir.is_some() { - log::warn!("Depreciated the `separate-front-target-dir` option is deprecated"); - log::warn!("Depreciated please remove it from your config in your Cargo.toml") + log::warn!("Deprecated: the `separate-front-target-dir` option is deprecated since cargo-leptos 0.2.3"); + log::warn!("It is now unconditionally enabled; you can remove it from your Cargo.toml") } Ok(conf)