Package: rust-version-sync Version: 0.9.5-4 Severity: normal Tags: patch User: zixing....@canonical.com
Dear Maintainer, The rust-pulldown-cmark package is about to be updated to 0.10. This patch will upgrade the pulldown-cmark crate in rust-version-sync to 0.10 and also adapt to any API changes. A modified version of the patch is forwarded to the upstream as: https://github.com/mgeisler/version-sync/pull/151 Thanks for considering the patch.
diff -Nru rust-version-sync-0.9.5/debian/patches/0001-update-pulldown-cmark-to-0-10.patch rust-version-sync-0.9.5/debian/patches/0001-update-pulldown-cmark-to-0-10.patch --- rust-version-sync-0.9.5/debian/patches/0001-update-pulldown-cmark-to-0-10.patch 1969-12-31 17:00:00.000000000 -0700 +++ rust-version-sync-0.9.5/debian/patches/0001-update-pulldown-cmark-to-0-10.patch 2024-05-24 15:58:32.000000000 -0600 @@ -0,0 +1,42 @@ +Description: Upgrade pulldown-cmark to 0.10 +Author: Zixing Liu <zixing....@canonical.com> +Origin: backport, https://github.com/mgeisler/version-sync/pull/151/commits/cc74ef5f749b1422e324155ef5e68c14437902ec.patch +Bug: https://github.com/mgeisler/version-sync/pull/151 +Forwarded: https://github.com/mgeisler/version-sync/pull/151.patch +Last-Update: 2024-05-24 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: rust-version-sync/src/markdown_deps.rs +=================================================================== +--- rust-version-sync.orig/src/markdown_deps.rs ++++ rust-version-sync/src/markdown_deps.rs +@@ -1,6 +1,6 @@ + #![cfg(feature = "markdown_deps_updated")] + use pulldown_cmark::CodeBlockKind::Fenced; +-use pulldown_cmark::{Event, Parser, Tag}; ++use pulldown_cmark::{Event, Parser, Tag, TagEnd}; + use semver::{Version, VersionReq}; + use toml::Value; + +@@ -78,7 +78,7 @@ fn find_toml_blocks(text: &str) -> Vec<C + block.content.push_str(&code); + } + } +- Event::End(Tag::CodeBlock(_)) => { ++ Event::End(TagEnd::CodeBlock) => { + if let Some(block) = current_block.take() { + code_blocks.push(block); + } +Index: rust-version-sync/Cargo.toml +=================================================================== +--- rust-version-sync.orig/Cargo.toml ++++ rust-version-sync/Cargo.toml +@@ -19,7 +19,7 @@ contains_regex = ["regex", "semver"] + + [dependencies] + proc-macro2 = { version = "1.0.36", default-features = false, features = ["span-locations"], optional = true } +-pulldown-cmark = { version = "0.9.1", default-features = false, optional = true } ++pulldown-cmark = { version = "0.10", default-features = false, optional = true } + regex = { version = "1.5.4", default-features = false, features = ["std", "unicode"], optional = true } + semver = { version = "1.0.5", optional = true } + syn = { version = "2.0.15", default-features = false, features = ["parsing", "printing", "full"], optional = true } diff -Nru rust-version-sync-0.9.5/debian/patches/series rust-version-sync-0.9.5/debian/patches/series --- rust-version-sync-0.9.5/debian/patches/series 2024-01-23 09:08:59.000000000 -0700 +++ rust-version-sync-0.9.5/debian/patches/series 2024-05-24 15:58:21.000000000 -0600 @@ -1 +1,2 @@ 1001_toml.patch +0001-update-pulldown-cmark-to-0-10.patch