Description: Use Debian packaged versions of dependencies vendored upstream Forwarded: not-needed Author: Blair Noctis Last-Update: 2026-08-13 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/Cargo.toml +++ b/Cargo.toml @@ -34 +34 @@ -font-awesome-as-a-crate = "0.3.1" +#font-awesome-as-a-crate = "0.3.1" --- a/crates/mdbook-html/Cargo.toml +++ b/crates/mdbook-html/Cargo.toml @@ -14 +14 @@ -font-awesome-as-a-crate.workspace = true +#font-awesome-as-a-crate.workspace = true --- a/crates/mdbook-html/src/html/tree.rs +++ b/crates/mdbook-html/src/html/tree.rs @@ -1051 +1051 @@ - use font_awesome_as_a_crate as fa; + use crate::fontawesome as fa; --- a/crates/mdbook-html/src/html_handlebars/helpers/fontawesome.rs +++ b/crates/mdbook-html/src/html_handlebars/helpers/fontawesome.rs @@ -1 +1 @@ -use font_awesome_as_a_crate as fa; +use crate::fontawesome as fa; --- a/crates/mdbook-html/src/theme/mod.rs +++ b/crates/mdbook-html/src/theme/mod.rs @@ -27 +27 @@ -static HIGHLIGHT_JS: &[u8] = include_bytes!("../../front-end/js/highlight.js"); +static HIGHLIGHT_JS: &[u8] = include_bytes!("../../../../debian/missing-sources/highlight.min.js"); @@ -31 +31 @@ -static CLIPBOARD_JS: &[u8] = include_bytes!("../../front-end/js/clipboard.min.js"); +static CLIPBOARD_JS: &[u8] = include_bytes!("/usr/share/nodejs/clipboard/dist/clipboard.js"); --- a/tests/testsuite/rendering/fontawesome/expected/fa.html +++ b/tests/testsuite/rendering/fontawesome/expected/fa.html @@ -2,3 +2,3 @@ -

-

-

+

+

+

@@ -7 +7 @@ -

\ No newline at end of file +

\ No newline at end of file --- a/crates/mdbook-html/src/theme/playground_editor.rs +++ b/crates/mdbook-html/src/theme/playground_editor.rs @@ -4 +4 @@ -pub(crate) static ACE_JS: &[u8] = include_bytes!("../../front-end/playground_editor/ace.js"); +pub(crate) static ACE_JS: &[u8] = include_bytes!("/usr/share/nodejs/ace-builds/src-min/ace.js"); @@ -6 +6 @@ - include_bytes!("../../front-end/playground_editor/mode-rust.js"); + include_bytes!("/usr/share/nodejs/ace-builds/src-min/mode-rust.js"); @@ -8 +8 @@ - include_bytes!("../../front-end/playground_editor/theme-dawn.js"); + include_bytes!("/usr/share/nodejs/ace-builds/src-min/theme-dawn.js"); @@ -10 +10 @@ - include_bytes!("../../front-end/playground_editor/theme-tomorrow_night.js"); + include_bytes!("/usr/share/nodejs/ace-builds/src-min/theme-tomorrow_night.js"); --- a/crates/mdbook-html/src/lib.rs +++ b/crates/mdbook-html/src/lib.rs @@ -8,0 +9,3 @@ + +#[path = "../../../debian/fontawesome.rs"] +mod fontawesome;