Skip to content

Commit

Permalink
Fix serde dependency usage (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja authored Jun 21, 2024
1 parent c4d4cf0 commit 4a3f014
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/csr-minimal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ path = "src/lib.rs"

[dependencies]
leptos = { version = "0.6.12", features = ["csr"] }
leptos-fluent = { path = "../../leptos-fluent" }
leptos-fluent = { path = "../../leptos-fluent", default-features = false }
fluent-templates = "0.9"
console_error_panic_hook = "0.1"

Expand Down
2 changes: 2 additions & 0 deletions leptos-fluent-macros/src/languages.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
use std::fs;
use std::path::PathBuf;

#[cfg(any(feature = "json", feature = "yaml", feature = "json5"))]
#[derive(serde::Deserialize)]
#[serde(untagged)]
enum LanguagesFileLanguage {
CodeName(String, String),
CodeNameDir(String, String, String),
}

#[cfg(any(feature = "json", feature = "yaml", feature = "json5"))]
fn set_dir_to_languages_from_languages_file(
languages: &[LanguagesFileLanguage],
) -> Vec<(String, String, String)> {
Expand Down

0 comments on commit 4a3f014

Please sign in to comment.