Skip to content

Commit a85dde9

Browse files
authored
Merge pull request #600 from praseodym/yaml-rust2
Replace unmaintained `yaml-rust` dependency with `yaml-rust2`
2 parents 162a7f3 + 498099e commit a85dde9

File tree

3 files changed

+34
-15
lines changed

3 files changed

+34
-15
lines changed

Cargo.lock

Lines changed: 30 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ exclude = [
2222
features = ["metadata"]
2323

2424
[dependencies]
25-
yaml-rust = { version = "0.4.5", optional = true }
25+
yaml-rust = { package = "yaml-rust2", version = "0.10.4", optional = true, default-features = false }
2626
onig = { version = "6.5.1", optional = true, default-features = false }
2727
fancy-regex = { version = "0.11", optional = true }
2828
walkdir = "2.0"

tests/snapshots/public-api.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -892,13 +892,13 @@ impl core::panic::unwind_safe::UnwindSafe for syntect::parsing::ParseScopeError
892892
pub syntect::parsing::ParseSyntaxError::BadFileRef
893893
pub syntect::parsing::ParseSyntaxError::EmptyFile
894894
pub syntect::parsing::ParseSyntaxError::InvalidScope(syntect::parsing::ParseScopeError)
895-
pub syntect::parsing::ParseSyntaxError::InvalidYaml(yaml_rust::scanner::ScanError)
895+
pub syntect::parsing::ParseSyntaxError::InvalidYaml(yaml_rust2::scanner::ScanError)
896896
pub syntect::parsing::ParseSyntaxError::MainMissing
897897
pub syntect::parsing::ParseSyntaxError::MissingMandatoryKey(&'static str)
898898
pub syntect::parsing::ParseSyntaxError::RegexCompileError(alloc::string::String, alloc::boxed::Box<(dyn core::error::Error + core::marker::Send + core::marker::Sync + 'static)>)
899899
pub syntect::parsing::ParseSyntaxError::TypeMismatch
900-
impl core::convert::From<yaml_rust::scanner::ScanError> for syntect::parsing::ParseSyntaxError
901-
pub fn syntect::parsing::ParseSyntaxError::from(source: yaml_rust::scanner::ScanError) -> Self
900+
impl core::convert::From<yaml_rust2::scanner::ScanError> for syntect::parsing::ParseSyntaxError
901+
pub fn syntect::parsing::ParseSyntaxError::from(source: yaml_rust2::scanner::ScanError) -> Self
902902
impl core::error::Error for syntect::parsing::ParseSyntaxError
903903
pub fn syntect::parsing::ParseSyntaxError::source(&self) -> core::option::Option<&(dyn core::error::Error + 'static)>
904904
impl core::fmt::Debug for syntect::parsing::ParseSyntaxError

0 commit comments

Comments
 (0)