Skip to content

Commit

Permalink
feat(libmake): ✨ switching to serde_yml following deprecation of serd…
Browse files Browse the repository at this point in the history
…e_yaml
  • Loading branch information
sebastienrousseau committed Mar 29, 2024
1 parent 2e9d931 commit 92f548e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ rlg = "0.0.3"
serde = { version = "1.0.197", features = ["derive"] }
serde_ini = "0.2.0"
serde_json = "1.0.115"
serde_yaml = "0.9.33"
serde_yml = "0.0.1"
tempfile = "3.10.1"
toml = "0.8.12"
uuid = { version = "1.8.0", features = ["v4"] }
Expand Down
2 changes: 1 addition & 1 deletion src/generators/yaml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use crate::macro_generate_files;
///
pub fn generate_from_yaml(path: &str) -> io::Result<()> {
let contents = fs::read_to_string(path)?;
let params: FileGenerationParams = serde_yaml::from_str(&contents)
let params: FileGenerationParams = serde_yml::from_str(&contents)
.map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
macro_generate_files!(params.clone()).map_err(|e| {
io::Error::new(io::ErrorKind::Other, e)
Expand Down
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub fn get_csv_field(

macro_get_field!(get_ini_field, serde_ini::from_read);
macro_get_field!(get_json_field, serde_json::from_reader);
macro_get_field!(get_yaml_field, serde_yaml::from_reader);
macro_get_field!(get_yaml_field, serde_yml::from_reader);

/// Retrieves a specific field's value from a configuration file.
///
Expand Down
2 changes: 1 addition & 1 deletion template/Cargo.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ env_logger = "0.11.3"
rlg = "0.0.3"
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.115"
serde_yaml = "0.9.33"
serde_yml = "0.0.1"
toml = "0.8.12"
vrd = "0.0.6"

Expand Down

0 comments on commit 92f548e

Please sign in to comment.