Skip to content

Commit

Permalink
Merge pull request #6 from cargo-actions/move_to_serde_yml
Browse files Browse the repository at this point in the history
Switch from deprecated serde_yaml to serde_yml
  • Loading branch information
sanderv32 authored Jul 23, 2024
2 parents 4f05db0 + 4a0d455 commit 62a5ca4
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 36 deletions.
140 changes: 107 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ glob = "0.3"
clap = { version = "4.5", features = ["derive", "color"] }
serde = "1.0"
serde_json = "1.0"
serde_yaml = "0.9"
valico = "4.0"
serde_yml = "0.0.11"

[profile.release]
opt-level = 3
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ pub fn run(config: &Config) -> Result<(), Box<dyn std::error::Error>> {
}
}

fn parse_src(fd: std::fs::File) -> serde_yaml::Result<serde_json::Value> {
serde_yaml::from_reader(fd)
fn parse_src(fd: std::fs::File) -> serde_yml::Result<serde_json::Value> {
serde_yml::from_reader(fd)
}

fn validate_paths(doc: &serde_json::Value) -> bool {
Expand Down

0 comments on commit 62a5ca4

Please sign in to comment.