diff --git a/packages/crowbook/0ff64adee9c7ddf01b9b019fadc04153a1151575.patch b/packages/crowbook/0ff64adee9c7ddf01b9b019fadc04153a1151575.patch new file mode 100644 index 0000000000..47ed87c5b1 --- /dev/null +++ b/packages/crowbook/0ff64adee9c7ddf01b9b019fadc04153a1151575.patch @@ -0,0 +1,150 @@ +From 0ff64adee9c7ddf01b9b019fadc04153a1151575 Mon Sep 17 00:00:00 2001 +From: Elisabeth Henry +Date: Fri, 4 Aug 2023 04:58:47 +0200 +Subject: [PATCH] Replace rustc-serialize dependency with base64 + +--- + Cargo.toml | 2 +- + src/lib/html_if.rs | 8 +++----- + src/lib/html_single.rs | 14 ++++++-------- + src/lib/misc.rs | 6 ++++++ + src/lib/resource_handler.rs | 4 ++-- + 5 files changed, 18 insertions(+), 16 deletions(-) + +diff --git a/Cargo.toml b/Cargo.toml +index 7cecd42..9649a3c 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -54,7 +54,7 @@ yaml-rust = "0.4" + mustache = "0.9" + uuid = { version = "1", features = ["v4"] } + walkdir = "2" +-rustc-serialize = "0.3" ++base64 = "0.21" + rayon = "1.6" + crowbook-text-processing = "^1.1.1" + lazy_static = "1" +diff --git a/src/lib/html_if.rs b/src/lib/html_if.rs +index 975d97a..2d749c4 100644 +--- a/src/lib/html_if.rs ++++ b/src/lib/html_if.rs +@@ -23,8 +23,7 @@ use crate::html::HtmlRenderer; + use crate::parser::Parser; + use crate::renderer::Renderer; + use crate::token::Token; +- +-use rustc_serialize::base64::{self, ToBase64}; ++use crate::misc; + + use std::convert::{AsMut, AsRef}; + use std::io; +@@ -333,12 +332,11 @@ return crowbook_return_variable.replace(/<\\/ul>