Skip to content

Commit

Permalink
Merge pull request #6 from langyo/dependabot/cargo/cargo-deps-fb62929d46
Browse files Browse the repository at this point in the history
Update yuuka requirement from ^0.3 to ^0.4 in the cargo-deps group
  • Loading branch information
langyo authored Nov 9, 2024
2 parents ea9224f + cc8b746 commit 0cc78d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ strum = { workspace = true }
uuid = { workspace = true }
log = { workspace = true }

yuuka = "^0.3"
yuuka = "^0.4"
sea-orm = { workspace = true }
5 changes: 3 additions & 2 deletions packages/types/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
use anyhow::{anyhow, Result};
use once_cell::sync::Lazy;
use serde::{Deserialize, Serialize};
use std::sync::{Arc, Mutex};

use yuuka::derive_struct;

use crate::consts::CACHE_DIR;

derive_struct!(
#[serde(rename_all = "kebab-case")]
#[derive(PartialEq, Serialize, Deserialize)]
#[macros_recursive(serde(rename_all = "kebab-case"))]
pub Config {
portal: {
title_suffix: String,
Expand Down
3 changes: 2 additions & 1 deletion packages/types/src/i18n.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ use serde::{Deserialize, Serialize};
use yuuka::derive_struct;

derive_struct!(
#[serde(rename_all = "kebab-case")]
#[derive(Serialize, Deserialize)]
#[macros_recursive(serde(rename_all = "kebab-case"))]
pub Config {
header: {
welcome: String,
Expand Down

0 comments on commit 0cc78d8

Please sign in to comment.