Skip to content

Commit

Permalink
Fix unmaintained audit warning for yaml-rust
Browse files Browse the repository at this point in the history
  • Loading branch information
SleeplessOne1917 committed May 30, 2024
1 parent 7111b03 commit 1bee9c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exclude = [
]

[dependencies]
yaml-rust = { version = "0.4.5", optional = true }
yaml-rust2 = { version = "0.8", optional = true }
onig = { version = "6.0", optional = true, default-features = false }
fancy-regex = { version = "0.11", optional = true }
walkdir = "2.0"
Expand Down Expand Up @@ -69,7 +69,7 @@ html = ["parsing"]
# Support for parsing .tmTheme files and .tmPreferences files
plist-load = ["plist"]
# Support for parsing .sublime-syntax files
yaml-load = ["yaml-rust", "parsing"]
yaml-load = ["yaml-rust2", "parsing"]

default-onig = ["parsing", "default-syntaxes", "default-themes", "html", "plist-load", "yaml-load", "dump-load", "dump-create", "regex-onig"]
# In order to switch to the fancy-regex engine, disable default features then add the default-fancy feature
Expand Down
3 changes: 1 addition & 2 deletions src/parsing/yaml_load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ use std::collections::HashMap;
use std::error::Error;
use std::ops::DerefMut;
use std::path::Path;
use yaml_rust::yaml::Hash;
use yaml_rust::{ScanError, Yaml, YamlLoader};
use yaml_rust2::{ScanError, Yaml, YamlLoader, yaml::Hash};

#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
Expand Down

0 comments on commit 1bee9c4

Please sign in to comment.