Merge #194665: mdbook-*: update for Rust 1.64 compat

...into staging-next

+2124 -30
+7 -2
pkgs/applications/misc/mdzk/default.nix
··· 8 8 owner = "mdzk-rs"; 9 9 repo = "mdzk"; 10 10 rev = version; 11 - sha256 = "sha256-V//tVcIzhCh03VjwMC+R2ynaOFm+dp6qxa0oqBfvGUs="; 11 + hash = "sha256-V//tVcIzhCh03VjwMC+R2ynaOFm+dp6qxa0oqBfvGUs="; 12 12 }; 13 13 14 - cargoSha256 = "sha256-2lPckUhnyfHaVWXzZXKliolDZiPtNl9UBZIKs6tUaNQ="; 14 + cargoPatches = [ 15 + # Remove when new version of mdzk is released. 16 + ./update-mdbook-for-rust-1.64.patch 17 + ]; 18 + 19 + cargoHash = "sha256-5zGUBvmf68tCk5jGrNn+ukgYbiKzrlmZvWrYgoJf2zk="; 15 20 16 21 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; 17 22
+246
pkgs/applications/misc/mdzk/update-mdbook-for-rust-1.64.patch
··· 1 + diff --git a/Cargo.lock b/Cargo.lock 2 + index ae63793..4068e02 100644 3 + --- a/Cargo.lock 4 + +++ b/Cargo.lock 5 + @@ -162,12 +162,46 @@ dependencies = [ 6 + "ansi_term", 7 + "atty", 8 + "bitflags", 9 + - "strsim", 10 + - "textwrap", 11 + + "strsim 0.8.0", 12 + + "textwrap 0.11.0", 13 + "unicode-width", 14 + "vec_map", 15 + ] 16 + 17 + +[[package]] 18 + +name = "clap" 19 + +version = "3.2.2" 20 + +source = "registry+https://github.com/rust-lang/crates.io-index" 21 + +checksum = "8e538f9ee5aa3b3963f09a997035f883677966ed50fce0292611927ce6f6d8c6" 22 + +dependencies = [ 23 + + "atty", 24 + + "bitflags", 25 + + "clap_lex", 26 + + "indexmap", 27 + + "lazy_static", 28 + + "strsim 0.10.0", 29 + + "termcolor", 30 + + "textwrap 0.15.1", 31 + +] 32 + + 33 + +[[package]] 34 + +name = "clap_complete" 35 + +version = "3.2.5" 36 + +source = "registry+https://github.com/rust-lang/crates.io-index" 37 + +checksum = "3f7a2e0a962c45ce25afce14220bc24f9dade0a1787f185cecf96bfba7847cd8" 38 + +dependencies = [ 39 + + "clap 3.2.2", 40 + +] 41 + + 42 + +[[package]] 43 + +name = "clap_lex" 44 + +version = "0.2.4" 45 + +source = "registry+https://github.com/rust-lang/crates.io-index" 46 + +checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5" 47 + +dependencies = [ 48 + + "os_str_bytes", 49 + +] 50 + + 51 + [[package]] 52 + name = "cpufeatures" 53 + version = "0.2.1" 54 + @@ -222,9 +256,9 @@ dependencies = [ 55 + 56 + [[package]] 57 + name = "env_logger" 58 + -version = "0.7.1" 59 + +version = "0.9.1" 60 + source = "registry+https://github.com/rust-lang/crates.io-index" 61 + -checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36" 62 + +checksum = "c90bf5f19754d10198ccb95b70664fc925bd1fc090a0fd9a6ebc54acc8cd6272" 63 + dependencies = [ 64 + "atty", 65 + "humantime", 66 + @@ -385,15 +419,6 @@ dependencies = [ 67 + "version_check", 68 + ] 69 + 70 + -[[package]] 71 + -name = "getopts" 72 + -version = "0.2.21" 73 + -source = "registry+https://github.com/rust-lang/crates.io-index" 74 + -checksum = "14dbbfd5c71d70241ecf9e6f13737f7b5ce823821063188d7e46c41d371eebd5" 75 + -dependencies = [ 76 + - "unicode-width", 77 + -] 78 + - 79 + [[package]] 80 + name = "getrandom" 81 + version = "0.1.16" 82 + @@ -471,7 +496,7 @@ dependencies = [ 83 + "log", 84 + "pest", 85 + "pest_derive", 86 + - "quick-error 2.0.1", 87 + + "quick-error", 88 + "serde", 89 + "serde_json", 90 + ] 91 + @@ -575,12 +600,9 @@ checksum = "6456b8a6c8f33fee7d958fcd1b60d55b11940a79e63ae87013e6d22e26034440" 92 + 93 + [[package]] 94 + name = "humantime" 95 + -version = "1.3.0" 96 + +version = "2.1.0" 97 + source = "registry+https://github.com/rust-lang/crates.io-index" 98 + -checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f" 99 + -dependencies = [ 100 + - "quick-error 1.2.3", 101 + -] 102 + +checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" 103 + 104 + [[package]] 105 + name = "hyper" 106 + @@ -822,13 +844,14 @@ checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" 107 + 108 + [[package]] 109 + name = "mdbook" 110 + -version = "0.4.15" 111 + +version = "0.4.21" 112 + source = "registry+https://github.com/rust-lang/crates.io-index" 113 + -checksum = "241f10687eb3b4e0634b3b4e423f97c5f1efbd69dc9522e24a8b94583eeec3c6" 114 + +checksum = "23f3e133c6d515528745ffd3b9f0c7d975ae039f0b6abb099f2168daa2afb4f9" 115 + dependencies = [ 116 + "anyhow", 117 + "chrono", 118 + - "clap", 119 + + "clap 3.2.2", 120 + + "clap_complete", 121 + "env_logger", 122 + "handlebars", 123 + "lazy_static", 124 + @@ -838,7 +861,6 @@ dependencies = [ 125 + "pulldown-cmark", 126 + "regex", 127 + "serde", 128 + - "serde_derive", 129 + "serde_json", 130 + "shlex", 131 + "tempfile", 132 + @@ -1062,6 +1084,12 @@ dependencies = [ 133 + "winapi 0.3.9", 134 + ] 135 + 136 + +[[package]] 137 + +name = "os_str_bytes" 138 + +version = "6.3.0" 139 + +source = "registry+https://github.com/rust-lang/crates.io-index" 140 + +checksum = "9ff7415e9ae3fff1225851df9e0d9e4e5479f947619774677a63572e55e80eff" 141 + + 142 + [[package]] 143 + name = "parking_lot" 144 + version = "0.11.2" 145 + @@ -1258,17 +1286,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" 146 + checksum = "34f197a544b0c9ab3ae46c359a7ec9cbbb5c7bf97054266fecb7ead794a181d6" 147 + dependencies = [ 148 + "bitflags", 149 + - "getopts", 150 + "memchr", 151 + "unicase", 152 + ] 153 + 154 + -[[package]] 155 + -name = "quick-error" 156 + -version = "1.2.3" 157 + -source = "registry+https://github.com/rust-lang/crates.io-index" 158 + -checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" 159 + - 160 + [[package]] 161 + name = "quick-error" 162 + version = "2.0.1" 163 + @@ -1386,9 +1407,9 @@ dependencies = [ 164 + 165 + [[package]] 166 + name = "regex" 167 + -version = "1.5.4" 168 + +version = "1.6.0" 169 + source = "registry+https://github.com/rust-lang/crates.io-index" 170 + -checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461" 171 + +checksum = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b" 172 + dependencies = [ 173 + "aho-corasick", 174 + "memchr", 175 + @@ -1403,9 +1424,9 @@ checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" 176 + 177 + [[package]] 178 + name = "regex-syntax" 179 + -version = "0.6.25" 180 + +version = "0.6.27" 181 + source = "registry+https://github.com/rust-lang/crates.io-index" 182 + -checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b" 183 + +checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244" 184 + 185 + [[package]] 186 + name = "remove_dir_all" 187 + @@ -1577,13 +1598,19 @@ version = "0.8.0" 188 + source = "registry+https://github.com/rust-lang/crates.io-index" 189 + checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" 190 + 191 + +[[package]] 192 + +name = "strsim" 193 + +version = "0.10.0" 194 + +source = "registry+https://github.com/rust-lang/crates.io-index" 195 + +checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" 196 + + 197 + [[package]] 198 + name = "structopt" 199 + version = "0.3.26" 200 + source = "registry+https://github.com/rust-lang/crates.io-index" 201 + checksum = "0c6b5c64445ba8094a6ab0c3cd2ad323e07171012d9c98b0b15651daf1787a10" 202 + dependencies = [ 203 + - "clap", 204 + + "clap 2.33.3", 205 + "lazy_static", 206 + "structopt-derive", 207 + ] 208 + @@ -1673,6 +1700,12 @@ dependencies = [ 209 + "unicode-width", 210 + ] 211 + 212 + +[[package]] 213 + +name = "textwrap" 214 + +version = "0.15.1" 215 + +source = "registry+https://github.com/rust-lang/crates.io-index" 216 + +checksum = "949517c0cf1bf4ee812e2e07e08ab448e3ae0d23472aee8a06c985f0c8815b16" 217 + + 218 + [[package]] 219 + name = "thiserror" 220 + version = "1.0.30" 221 + diff --git a/Cargo.toml b/Cargo.toml 222 + index dfeeb45..8b1e4e5 100644 223 + --- a/Cargo.toml 224 + +++ b/Cargo.toml 225 + @@ -38,7 +38,7 @@ handlebars = "4.2.1" 226 + ignore = "0.4.18" 227 + lazy_static = "1.4.0" 228 + lazy-regex = "2.2.2" 229 + -mdbook = { version = "0.4.15", default-features = false } 230 + +mdbook = { version = "0.4.21", default-features = false } 231 + notify = "4.0.17" 232 + pest = "2.1.3" 233 + pest_derive = "2.1.0" 234 + diff --git a/src/renderer/mdzk_renderer.rs b/src/renderer/mdzk_renderer.rs 235 + index 55b2423..f8480ca 100644 236 + --- a/src/renderer/mdzk_renderer.rs 237 + +++ b/src/renderer/mdzk_renderer.rs 238 + @@ -92,7 +92,7 @@ impl Renderer for HtmlMdzk { 239 + "description", 240 + json!(ctx.config.book.description.clone().unwrap_or_default()), 241 + ); 242 + - if let Some(ref livereload) = html_config.livereload_url { 243 + + if let Some(ref livereload) = html_config.live_reload_endpoint { 244 + data.insert("livereload", json!(livereload)); 245 + } 246 + data.insert("fold_enable", json!(html_config.fold.enable));
+16 -5
pkgs/tools/text/mdbook-admonish/default.nix
··· 1 - { lib, stdenv, fetchCrate, rustPlatform, CoreServices }: 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, rustPlatform, CoreServices }: 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "mdbook-admonish"; 5 5 version = "1.7.0"; 6 6 7 - src = fetchCrate { 8 - inherit pname version; 9 - sha256 = "sha256-QvFHpAsQ+S7q/Ye0YEf0phZcVvAs1a80Hd3eIGZBsrI="; 7 + src = fetchFromGitHub { 8 + owner = "tommilligan"; 9 + repo = pname; 10 + rev = "v${version}"; 11 + hash = "sha256-AGOq05NevkRU8qHsJIWd2WfZ4i7w/wexf6c0fUAaoLg="; 10 12 }; 11 13 12 - cargoSha256 = "sha256-v7MGJlDm5nvydjFAZZS94afZY2OVUjJQ9eXYaY9JxBs="; 14 + cargoPatches = [ 15 + # https://github.com/tommilligan/mdbook-admonish/pull/33 16 + (fetchpatch { 17 + name = "update-mdbook-for-rust-1.64.patch"; 18 + url = "https://github.com/tommilligan/mdbook-admonish/commit/650123645b18a3f8ed170738c7c1813315095ed9.patch"; 19 + hash = "sha256-8LMk+Dgz9k0g9fbGGC0X2byyJtfDDgvdGxO06mD6GDI="; 20 + }) 21 + ]; 22 + 23 + cargoHash = "sha256-5PWfze00/mWmzYqP5M1pAPt+SuknpU9dc0B7RSikuTE="; 13 24 14 25 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; 15 26
+8 -3
pkgs/tools/text/mdbook-graphviz/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices, graphviz }: 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, rustPlatform, CoreServices, graphviz }: 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "mdbook-graphviz"; ··· 8 8 owner = "dylanowen"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-HTHGb23wc10iAWXX/TNMXjTLWm+OSf1WWW1+/aQRcsk="; 11 + hash = "sha256-HTHGb23wc10iAWXX/TNMXjTLWm+OSf1WWW1+/aQRcsk="; 12 12 }; 13 13 14 - cargoSha256 = "sha256-7z/4brKY9vpic8mv1b4P/8DE+VyColYnPPoPmY9891M="; 14 + cargoPatches = [ 15 + # Remove when updating mdbook-graphviz past 0.1.4. 16 + ./update-mdbook-for-rust-1.64.patch 17 + ]; 18 + 19 + cargoHash = "sha256-keDyfXooPU/GOx56OTq5psDohfZ0E478bnWn0bbC29o="; 15 20 16 21 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; 17 22
+369
pkgs/tools/text/mdbook-graphviz/update-mdbook-for-rust-1.64.patch
··· 1 + diff --git a/Cargo.lock b/Cargo.lock 2 + index 292fb1f..ce66190 100644 3 + --- a/Cargo.lock 4 + +++ b/Cargo.lock 5 + @@ -26,15 +26,6 @@ dependencies = [ 6 + "url", 7 + ] 8 + 9 + -[[package]] 10 + -name = "ansi_term" 11 + -version = "0.12.1" 12 + -source = "registry+https://github.com/rust-lang/crates.io-index" 13 + -checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" 14 + -dependencies = [ 15 + - "winapi 0.3.9", 16 + -] 17 + - 18 + [[package]] 19 + name = "anyhow" 20 + version = "1.0.52" 21 + @@ -156,32 +147,36 @@ dependencies = [ 22 + 23 + [[package]] 24 + name = "clap" 25 + -version = "2.34.0" 26 + +version = "3.2.22" 27 + source = "registry+https://github.com/rust-lang/crates.io-index" 28 + -checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" 29 + +checksum = "86447ad904c7fb335a790c9d7fe3d0d971dc523b8ccd1561a520de9a85302750" 30 + dependencies = [ 31 + - "ansi_term", 32 + "atty", 33 + "bitflags", 34 + - "strsim 0.8.0", 35 + - "textwrap 0.11.0", 36 + - "unicode-width", 37 + - "vec_map", 38 + + "clap_lex", 39 + + "indexmap", 40 + + "once_cell", 41 + + "strsim", 42 + + "termcolor", 43 + + "textwrap", 44 + ] 45 + 46 + [[package]] 47 + -name = "clap" 48 + -version = "3.0.4" 49 + +name = "clap_complete" 50 + +version = "3.2.5" 51 + source = "registry+https://github.com/rust-lang/crates.io-index" 52 + -checksum = "d01c9347757e131122b19cd19a05c85805b68c2352a97b623efdc3c295290299" 53 + +checksum = "3f7a2e0a962c45ce25afce14220bc24f9dade0a1787f185cecf96bfba7847cd8" 54 + +dependencies = [ 55 + + "clap", 56 + +] 57 + + 58 + +[[package]] 59 + +name = "clap_lex" 60 + +version = "0.2.4" 61 + +source = "registry+https://github.com/rust-lang/crates.io-index" 62 + +checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5" 63 + dependencies = [ 64 + - "atty", 65 + - "bitflags", 66 + - "indexmap", 67 + "os_str_bytes", 68 + - "strsim 0.10.0", 69 + - "termcolor", 70 + - "textwrap 0.14.2", 71 + ] 72 + 73 + [[package]] 74 + @@ -213,24 +208,21 @@ dependencies = [ 75 + 76 + [[package]] 77 + name = "elasticlunr-rs" 78 + -version = "2.3.14" 79 + +version = "3.0.1" 80 + source = "registry+https://github.com/rust-lang/crates.io-index" 81 + -checksum = "60eee99ae400fb1c4521ea3bd678994cb66572754d240449368e8ecd40281569" 82 + +checksum = "b94d9c8df0fe6879ca12e7633fdfe467c503722cc981fc463703472d2b876448" 83 + dependencies = [ 84 + - "lazy_static", 85 + "regex", 86 + "serde", 87 + "serde_derive", 88 + "serde_json", 89 + - "strum", 90 + - "strum_macros", 91 + ] 92 + 93 + [[package]] 94 + name = "env_logger" 95 + -version = "0.7.1" 96 + +version = "0.9.1" 97 + source = "registry+https://github.com/rust-lang/crates.io-index" 98 + -checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36" 99 + +checksum = "c90bf5f19754d10198ccb95b70664fc925bd1fc090a0fd9a6ebc54acc8cd6272" 100 + dependencies = [ 101 + "atty", 102 + "humantime", 103 + @@ -465,7 +457,7 @@ dependencies = [ 104 + "log", 105 + "pest", 106 + "pest_derive", 107 + - "quick-error 2.0.1", 108 + + "quick-error", 109 + "serde", 110 + "serde_json", 111 + ] 112 + @@ -501,15 +493,6 @@ dependencies = [ 113 + "http", 114 + ] 115 + 116 + -[[package]] 117 + -name = "heck" 118 + -version = "0.3.3" 119 + -source = "registry+https://github.com/rust-lang/crates.io-index" 120 + -checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" 121 + -dependencies = [ 122 + - "unicode-segmentation", 123 + -] 124 + - 125 + [[package]] 126 + name = "hermit-abi" 127 + version = "0.1.19" 128 + @@ -569,12 +552,9 @@ checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421" 129 + 130 + [[package]] 131 + name = "humantime" 132 + -version = "1.3.0" 133 + +version = "2.1.0" 134 + source = "registry+https://github.com/rust-lang/crates.io-index" 135 + -checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f" 136 + -dependencies = [ 137 + - "quick-error 1.2.3", 138 + -] 139 + +checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" 140 + 141 + [[package]] 142 + name = "hyper" 143 + @@ -763,14 +743,15 @@ checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" 144 + 145 + [[package]] 146 + name = "mdbook" 147 + -version = "0.4.15" 148 + +version = "0.4.21" 149 + source = "registry+https://github.com/rust-lang/crates.io-index" 150 + -checksum = "241f10687eb3b4e0634b3b4e423f97c5f1efbd69dc9522e24a8b94583eeec3c6" 151 + +checksum = "23f3e133c6d515528745ffd3b9f0c7d975ae039f0b6abb099f2168daa2afb4f9" 152 + dependencies = [ 153 + "ammonia", 154 + "anyhow", 155 + "chrono", 156 + - "clap 2.34.0", 157 + + "clap", 158 + + "clap_complete", 159 + "elasticlunr-rs", 160 + "env_logger", 161 + "futures-util", 162 + @@ -784,7 +765,6 @@ dependencies = [ 163 + "pulldown-cmark", 164 + "regex", 165 + "serde", 166 + - "serde_derive", 167 + "serde_json", 168 + "shlex", 169 + "tempfile", 170 + @@ -798,7 +778,7 @@ dependencies = [ 171 + name = "mdbook-graphviz" 172 + version = "0.1.4" 173 + dependencies = [ 174 + - "clap 3.0.4", 175 + + "clap", 176 + "lazy_static", 177 + "mdbook", 178 + "pulldown-cmark", 179 + @@ -810,9 +790,9 @@ dependencies = [ 180 + 181 + [[package]] 182 + name = "memchr" 183 + -version = "2.4.1" 184 + +version = "2.5.0" 185 + source = "registry+https://github.com/rust-lang/crates.io-index" 186 + -checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" 187 + +checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" 188 + 189 + [[package]] 190 + name = "mime" 191 + @@ -968,6 +948,12 @@ dependencies = [ 192 + "libc", 193 + ] 194 + 195 + +[[package]] 196 + +name = "once_cell" 197 + +version = "1.15.0" 198 + +source = "registry+https://github.com/rust-lang/crates.io-index" 199 + +checksum = "e82dad04139b71a90c080c8463fe0dc7902db5192d939bd0950f074d014339e1" 200 + + 201 + [[package]] 202 + name = "opaque-debug" 203 + version = "0.2.3" 204 + @@ -995,9 +981,6 @@ name = "os_str_bytes" 205 + version = "6.0.0" 206 + source = "registry+https://github.com/rust-lang/crates.io-index" 207 + checksum = "8e22443d1643a904602595ba1cd8f7d896afe56d26712531c5ff73a15b2fbf64" 208 + -dependencies = [ 209 + - "memchr", 210 + -] 211 + 212 + [[package]] 213 + name = "parking_lot" 214 + @@ -1166,9 +1149,9 @@ dependencies = [ 215 + 216 + [[package]] 217 + name = "pulldown-cmark" 218 + -version = "0.9.0" 219 + +version = "0.9.2" 220 + source = "registry+https://github.com/rust-lang/crates.io-index" 221 + -checksum = "acd16514d1af5f7a71f909a44ef253cdb712a376d7ebc8ae4a471a9be9743548" 222 + +checksum = "2d9cc634bc78768157b5cbfe988ffcd1dcba95cd2b2f03a88316c08c6d00ed63" 223 + dependencies = [ 224 + "bitflags", 225 + "getopts", 226 + @@ -1185,12 +1168,6 @@ dependencies = [ 227 + "pulldown-cmark", 228 + ] 229 + 230 + -[[package]] 231 + -name = "quick-error" 232 + -version = "1.2.3" 233 + -source = "registry+https://github.com/rust-lang/crates.io-index" 234 + -checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" 235 + - 236 + [[package]] 237 + name = "quick-error" 238 + version = "2.0.1" 239 + @@ -1308,9 +1285,9 @@ dependencies = [ 240 + 241 + [[package]] 242 + name = "regex" 243 + -version = "1.5.4" 244 + +version = "1.6.0" 245 + source = "registry+https://github.com/rust-lang/crates.io-index" 246 + -checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461" 247 + +checksum = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b" 248 + dependencies = [ 249 + "aho-corasick", 250 + "memchr", 251 + @@ -1325,9 +1302,9 @@ checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" 252 + 253 + [[package]] 254 + name = "regex-syntax" 255 + -version = "0.6.25" 256 + +version = "0.6.27" 257 + source = "registry+https://github.com/rust-lang/crates.io-index" 258 + -checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b" 259 + +checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244" 260 + 261 + [[package]] 262 + name = "remove_dir_all" 263 + @@ -1370,6 +1347,9 @@ name = "serde" 264 + version = "1.0.133" 265 + source = "registry+https://github.com/rust-lang/crates.io-index" 266 + checksum = "97565067517b60e2d1ea8b268e59ce036de907ac523ad83a0475da04e818989a" 267 + +dependencies = [ 268 + + "serde_derive", 269 + +] 270 + 271 + [[package]] 272 + name = "serde_derive" 273 + @@ -1490,36 +1470,12 @@ dependencies = [ 274 + "quote", 275 + ] 276 + 277 + -[[package]] 278 + -name = "strsim" 279 + -version = "0.8.0" 280 + -source = "registry+https://github.com/rust-lang/crates.io-index" 281 + -checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" 282 + - 283 + [[package]] 284 + name = "strsim" 285 + version = "0.10.0" 286 + source = "registry+https://github.com/rust-lang/crates.io-index" 287 + checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" 288 + 289 + -[[package]] 290 + -name = "strum" 291 + -version = "0.21.0" 292 + -source = "registry+https://github.com/rust-lang/crates.io-index" 293 + -checksum = "aaf86bbcfd1fa9670b7a129f64fc0c9fcbbfe4f1bc4210e9e98fe71ffc12cde2" 294 + - 295 + -[[package]] 296 + -name = "strum_macros" 297 + -version = "0.21.1" 298 + -source = "registry+https://github.com/rust-lang/crates.io-index" 299 + -checksum = "d06aaeeee809dbc59eb4556183dd927df67db1540de5be8d3ec0b6636358a5ec" 300 + -dependencies = [ 301 + - "heck", 302 + - "proc-macro2", 303 + - "quote", 304 + - "syn", 305 + -] 306 + - 307 + [[package]] 308 + name = "syn" 309 + version = "1.0.84" 310 + @@ -1567,18 +1523,9 @@ dependencies = [ 311 + 312 + [[package]] 313 + name = "textwrap" 314 + -version = "0.11.0" 315 + +version = "0.15.1" 316 + source = "registry+https://github.com/rust-lang/crates.io-index" 317 + -checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" 318 + -dependencies = [ 319 + - "unicode-width", 320 + -] 321 + - 322 + -[[package]] 323 + -name = "textwrap" 324 + -version = "0.14.2" 325 + -source = "registry+https://github.com/rust-lang/crates.io-index" 326 + -checksum = "0066c8d12af8b5acd21e00547c3797fde4e8677254a7ee429176ccebbe93dd80" 327 + +checksum = "949517c0cf1bf4ee812e2e07e08ab448e3ae0d23472aee8a06c985f0c8815b16" 328 + 329 + [[package]] 330 + name = "thiserror" 331 + @@ -1793,12 +1740,6 @@ dependencies = [ 332 + "tinyvec", 333 + ] 334 + 335 + -[[package]] 336 + -name = "unicode-segmentation" 337 + -version = "1.8.0" 338 + -source = "registry+https://github.com/rust-lang/crates.io-index" 339 + -checksum = "8895849a949e7845e06bd6dc1aa51731a103c42707010a5b591c0038fb73385b" 340 + - 341 + [[package]] 342 + name = "unicode-width" 343 + version = "0.1.9" 344 + @@ -1829,12 +1770,6 @@ version = "0.7.6" 345 + source = "registry+https://github.com/rust-lang/crates.io-index" 346 + checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" 347 + 348 + -[[package]] 349 + -name = "vec_map" 350 + -version = "0.8.2" 351 + -source = "registry+https://github.com/rust-lang/crates.io-index" 352 + -checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" 353 + - 354 + [[package]] 355 + name = "version_check" 356 + version = "0.9.4" 357 + diff --git a/Cargo.toml b/Cargo.toml 358 + index 18b4b0e..3a88235 100644 359 + --- a/Cargo.toml 360 + +++ b/Cargo.toml 361 + @@ -12,7 +12,7 @@ edition = "2018" 362 + # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 363 + 364 + [dependencies] 365 + -mdbook = "^0.4.15" 366 + +mdbook = "^0.4.21" 367 + clap = "3.0" 368 + serde_json = "1.0" 369 + pulldown-cmark = "0.9"
+7 -2
pkgs/tools/text/mdbook-katex/default.nix
··· 8 8 owner = "lzanini"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-5PzXX7icRxcHpzjp3x/9ssn2o0444uHrzBn1Ds1DEPM="; 11 + hash = "sha256-5PzXX7icRxcHpzjp3x/9ssn2o0444uHrzBn1Ds1DEPM="; 12 12 }; 13 13 14 - cargoSha256 = "sha256-tqdpIBlKiyYSWFPYTnzVeDML2GM+mukbOHS3sNYUgdc="; 14 + cargoPatches = [ 15 + # Remove when https://github.com/lzanini/mdbook-katex/pull/35 is in a new release. 16 + ./update-mdbook-for-rust-1.64.patch 17 + ]; 18 + 19 + cargoHash = "sha256-lrEirKkGf9/8yLyLSON54UaeQ3Xtl7g7ezUc7e1KVHw="; 15 20 16 21 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; 17 22
+1417
pkgs/tools/text/mdbook-katex/update-mdbook-for-rust-1.64.patch
··· 1 + diff --git a/Cargo.lock b/Cargo.lock 2 + index 3ff0894..ffef44f 100644 3 + --- a/Cargo.lock 4 + +++ b/Cargo.lock 5 + @@ -1,10 +1,12 @@ 6 + # This file is automatically @generated by Cargo. 7 + # It is not intended for manual editing. 8 + +version = 3 9 + + 10 + [[package]] 11 + name = "aho-corasick" 12 + -version = "0.7.15" 13 + +version = "0.7.19" 14 + source = "registry+https://github.com/rust-lang/crates.io-index" 15 + -checksum = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5" 16 + +checksum = "b4f55bd91a0978cbfd91c457a164bab8b4001c833b7f323132c0a4e1922dd44e" 17 + dependencies = [ 18 + "memchr", 19 + ] 20 + @@ -52,9 +54,9 @@ dependencies = [ 21 + 22 + [[package]] 23 + name = "autocfg" 24 + -version = "1.0.1" 25 + +version = "1.1.0" 26 + source = "registry+https://github.com/rust-lang/crates.io-index" 27 + -checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" 28 + +checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 29 + 30 + [[package]] 31 + name = "base64" 32 + @@ -62,11 +64,17 @@ version = "0.12.3" 33 + source = "registry+https://github.com/rust-lang/crates.io-index" 34 + checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" 35 + 36 + +[[package]] 37 + +name = "base64" 38 + +version = "0.13.0" 39 + +source = "registry+https://github.com/rust-lang/crates.io-index" 40 + +checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" 41 + + 42 + [[package]] 43 + name = "bitflags" 44 + -version = "1.2.1" 45 + +version = "1.3.2" 46 + source = "registry+https://github.com/rust-lang/crates.io-index" 47 + -checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" 48 + +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 49 + 50 + [[package]] 51 + name = "block-buffer" 52 + @@ -82,9 +90,9 @@ dependencies = [ 53 + 54 + [[package]] 55 + name = "block-buffer" 56 + -version = "0.9.0" 57 + +version = "0.10.3" 58 + source = "registry+https://github.com/rust-lang/crates.io-index" 59 + -checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" 60 + +checksum = "69cce20737498f97b993470a6e536b8523f0af7892a4f928cceb1ac5e52ebe7e" 61 + dependencies = [ 62 + "generic-array 0.14.4", 63 + ] 64 + @@ -98,6 +106,17 @@ dependencies = [ 65 + "byte-tools", 66 + ] 67 + 68 + +[[package]] 69 + +name = "bstr" 70 + +version = "0.2.17" 71 + +source = "registry+https://github.com/rust-lang/crates.io-index" 72 + +checksum = "ba3569f383e8f1598449f1a423e72e99569137b47740b1da11ef19af3d5c3223" 73 + +dependencies = [ 74 + + "lazy_static", 75 + + "memchr", 76 + + "regex-automata", 77 + +] 78 + + 79 + [[package]] 80 + name = "byte-tools" 81 + version = "0.3.1" 82 + @@ -116,6 +135,12 @@ version = "0.5.6" 83 + source = "registry+https://github.com/rust-lang/crates.io-index" 84 + checksum = "0e4cec68f03f32e44924783795810fa50a7035d8c8ebe78580ad7e6c703fba38" 85 + 86 + +[[package]] 87 + +name = "bytes" 88 + +version = "1.2.1" 89 + +source = "registry+https://github.com/rust-lang/crates.io-index" 90 + +checksum = "ec8a7b6a70fde80372154c65702f00a0f56f3e1c36abbc6c440484be248856db" 91 + + 92 + [[package]] 93 + name = "cc" 94 + version = "1.0.62" 95 + @@ -157,11 +182,45 @@ dependencies = [ 96 + "atty", 97 + "bitflags", 98 + "strsim 0.8.0", 99 + - "textwrap", 100 + + "textwrap 0.11.0", 101 + "unicode-width", 102 + "vec_map", 103 + ] 104 + 105 + +[[package]] 106 + +name = "clap" 107 + +version = "3.2.22" 108 + +source = "registry+https://github.com/rust-lang/crates.io-index" 109 + +checksum = "86447ad904c7fb335a790c9d7fe3d0d971dc523b8ccd1561a520de9a85302750" 110 + +dependencies = [ 111 + + "atty", 112 + + "bitflags", 113 + + "clap_lex", 114 + + "indexmap", 115 + + "once_cell", 116 + + "strsim 0.10.0", 117 + + "termcolor", 118 + + "textwrap 0.15.1", 119 + +] 120 + + 121 + +[[package]] 122 + +name = "clap_complete" 123 + +version = "3.2.5" 124 + +source = "registry+https://github.com/rust-lang/crates.io-index" 125 + +checksum = "3f7a2e0a962c45ce25afce14220bc24f9dade0a1787f185cecf96bfba7847cd8" 126 + +dependencies = [ 127 + + "clap 3.2.22", 128 + +] 129 + + 130 + +[[package]] 131 + +name = "clap_lex" 132 + +version = "0.2.4" 133 + +source = "registry+https://github.com/rust-lang/crates.io-index" 134 + +checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5" 135 + +dependencies = [ 136 + + "os_str_bytes", 137 + +] 138 + + 139 + [[package]] 140 + name = "copy_dir" 141 + version = "0.1.2" 142 + @@ -172,10 +231,23 @@ dependencies = [ 143 + ] 144 + 145 + [[package]] 146 + -name = "cpuid-bool" 147 + -version = "0.1.2" 148 + +name = "cpufeatures" 149 + +version = "0.2.5" 150 + +source = "registry+https://github.com/rust-lang/crates.io-index" 151 + +checksum = "28d997bd5e24a5928dd43e46dc529867e207907fe0b239c3477d924f7f2ca320" 152 + +dependencies = [ 153 + + "libc", 154 + +] 155 + + 156 + +[[package]] 157 + +name = "crypto-common" 158 + +version = "0.1.6" 159 + source = "registry+https://github.com/rust-lang/crates.io-index" 160 + -checksum = "8aebca1129a03dc6dc2b127edd729435bbc4a37e1d5f4d7513165089ceb02634" 161 + +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" 162 + +dependencies = [ 163 + + "generic-array 0.14.4", 164 + + "typenum", 165 + +] 166 + 167 + [[package]] 168 + name = "darling" 169 + @@ -248,39 +320,31 @@ dependencies = [ 170 + 171 + [[package]] 172 + name = "digest" 173 + -version = "0.9.0" 174 + +version = "0.10.5" 175 + source = "registry+https://github.com/rust-lang/crates.io-index" 176 + -checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" 177 + +checksum = "adfbc57365a37acbd2ebf2b64d7e69bb766e2fea813521ed536f5d0520dcf86c" 178 + dependencies = [ 179 + - "generic-array 0.14.4", 180 + + "block-buffer 0.10.3", 181 + + "crypto-common", 182 + ] 183 + 184 + -[[package]] 185 + -name = "dtoa" 186 + -version = "0.4.6" 187 + -source = "registry+https://github.com/rust-lang/crates.io-index" 188 + -checksum = "134951f4028bdadb9b84baf4232681efbf277da25144b9b0ad65df75946c422b" 189 + - 190 + [[package]] 191 + name = "elasticlunr-rs" 192 + -version = "2.3.9" 193 + +version = "3.0.1" 194 + source = "registry+https://github.com/rust-lang/crates.io-index" 195 + -checksum = "35622eb004c8f0c5e7e2032815f3314a93df0db30a1ce5c94e62c1ecc81e22b9" 196 + +checksum = "b94d9c8df0fe6879ca12e7633fdfe467c503722cc981fc463703472d2b876448" 197 + dependencies = [ 198 + - "lazy_static", 199 + "regex", 200 + "serde", 201 + "serde_derive", 202 + "serde_json", 203 + - "strum", 204 + - "strum_macros", 205 + ] 206 + 207 + [[package]] 208 + name = "env_logger" 209 + -version = "0.7.1" 210 + +version = "0.9.1" 211 + source = "registry+https://github.com/rust-lang/crates.io-index" 212 + -checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36" 213 + +checksum = "c90bf5f19754d10198ccb95b70664fc925bd1fc090a0fd9a6ebc54acc8cd6272" 214 + dependencies = [ 215 + "atty", 216 + "humantime", 217 + @@ -368,25 +432,11 @@ dependencies = [ 218 + "new_debug_unreachable", 219 + ] 220 + 221 + -[[package]] 222 + -name = "futures" 223 + -version = "0.3.8" 224 + -source = "registry+https://github.com/rust-lang/crates.io-index" 225 + -checksum = "9b3b0c040a1fe6529d30b3c5944b280c7f0dcb2930d2c3062bca967b602583d0" 226 + -dependencies = [ 227 + - "futures-channel", 228 + - "futures-core", 229 + - "futures-io", 230 + - "futures-sink", 231 + - "futures-task", 232 + - "futures-util", 233 + -] 234 + - 235 + [[package]] 236 + name = "futures-channel" 237 + -version = "0.3.8" 238 + +version = "0.3.24" 239 + source = "registry+https://github.com/rust-lang/crates.io-index" 240 + -checksum = "4b7109687aa4e177ef6fe84553af6280ef2778bdb7783ba44c9dc3399110fe64" 241 + +checksum = "30bdd20c28fadd505d0fd6712cdfcb0d4b5648baf45faef7f852afb2399bb050" 242 + dependencies = [ 243 + "futures-core", 244 + "futures-sink", 245 + @@ -394,23 +444,16 @@ dependencies = [ 246 + 247 + [[package]] 248 + name = "futures-core" 249 + -version = "0.3.8" 250 + +version = "0.3.24" 251 + source = "registry+https://github.com/rust-lang/crates.io-index" 252 + -checksum = "847ce131b72ffb13b6109a221da9ad97a64cbe48feb1028356b836b47b8f1748" 253 + - 254 + -[[package]] 255 + -name = "futures-io" 256 + -version = "0.3.8" 257 + -source = "registry+https://github.com/rust-lang/crates.io-index" 258 + -checksum = "611834ce18aaa1bd13c4b374f5d653e1027cf99b6b502584ff8c9a64413b30bb" 259 + +checksum = "4e5aa3de05362c3fb88de6531e6296e85cde7739cccad4b9dfeeb7f6ebce56bf" 260 + 261 + [[package]] 262 + name = "futures-macro" 263 + -version = "0.3.8" 264 + +version = "0.3.24" 265 + source = "registry+https://github.com/rust-lang/crates.io-index" 266 + -checksum = "77408a692f1f97bcc61dc001d752e00643408fbc922e4d634c655df50d595556" 267 + +checksum = "42cd15d1c7456c04dbdf7e88bcd69760d74f3a798d6444e16974b505b0e62f17" 268 + dependencies = [ 269 + - "proc-macro-hack", 270 + "proc-macro2", 271 + "quote", 272 + "syn", 273 + @@ -418,33 +461,28 @@ dependencies = [ 274 + 275 + [[package]] 276 + name = "futures-sink" 277 + -version = "0.3.8" 278 + +version = "0.3.24" 279 + source = "registry+https://github.com/rust-lang/crates.io-index" 280 + -checksum = "f878195a49cee50e006b02b93cf7e0a95a38ac7b776b4c4d9cc1207cd20fcb3d" 281 + +checksum = "21b20ba5a92e727ba30e72834706623d94ac93a725410b6a6b6fbc1b07f7ba56" 282 + 283 + [[package]] 284 + name = "futures-task" 285 + -version = "0.3.8" 286 + +version = "0.3.24" 287 + source = "registry+https://github.com/rust-lang/crates.io-index" 288 + -checksum = "7c554eb5bf48b2426c4771ab68c6b14468b6e76cc90996f528c3338d761a4d0d" 289 + -dependencies = [ 290 + - "once_cell", 291 + -] 292 + +checksum = "a6508c467c73851293f390476d4491cf4d227dbabcd4170f3bb6044959b294f1" 293 + 294 + [[package]] 295 + name = "futures-util" 296 + -version = "0.3.8" 297 + +version = "0.3.24" 298 + source = "registry+https://github.com/rust-lang/crates.io-index" 299 + -checksum = "d304cff4a7b99cfb7986f7d43fbe93d175e72e704a8860787cc95e9ffd85cbd2" 300 + +checksum = "44fb6cb1be61cc1d2e43b262516aafcf63b241cffdb1d3fa115f91d9c7b09c90" 301 + dependencies = [ 302 + "futures-core", 303 + "futures-macro", 304 + "futures-sink", 305 + "futures-task", 306 + - "pin-project 1.0.1", 307 + + "pin-project-lite", 308 + "pin-utils", 309 + - "proc-macro-hack", 310 + - "proc-macro-nested", 311 + "slab", 312 + ] 313 + 314 + @@ -468,23 +506,25 @@ dependencies = [ 315 + ] 316 + 317 + [[package]] 318 + -name = "getopts" 319 + -version = "0.2.21" 320 + +name = "getrandom" 321 + +version = "0.1.15" 322 + source = "registry+https://github.com/rust-lang/crates.io-index" 323 + -checksum = "14dbbfd5c71d70241ecf9e6f13737f7b5ce823821063188d7e46c41d371eebd5" 324 + +checksum = "fc587bc0ec293155d5bfa6b9891ec18a1e330c234f896ea47fbada4cadbe47e6" 325 + dependencies = [ 326 + - "unicode-width", 327 + + "cfg-if 0.1.10", 328 + + "libc", 329 + + "wasi 0.9.0+wasi-snapshot-preview1", 330 + ] 331 + 332 + [[package]] 333 + name = "getrandom" 334 + -version = "0.1.15" 335 + +version = "0.2.7" 336 + source = "registry+https://github.com/rust-lang/crates.io-index" 337 + -checksum = "fc587bc0ec293155d5bfa6b9891ec18a1e330c234f896ea47fbada4cadbe47e6" 338 + +checksum = "4eb1a864a501629691edf6c15a593b7a51eebaa1e8468e9ddc623de7c9b58ec6" 339 + dependencies = [ 340 + - "cfg-if 0.1.10", 341 + + "cfg-if 1.0.0", 342 + "libc", 343 + - "wasi 0.9.0+wasi-snapshot-preview1", 344 + + "wasi 0.11.0+wasi-snapshot-preview1", 345 + ] 346 + 347 + [[package]] 348 + @@ -504,11 +544,11 @@ checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" 349 + 350 + [[package]] 351 + name = "h2" 352 + -version = "0.2.7" 353 + +version = "0.3.14" 354 + source = "registry+https://github.com/rust-lang/crates.io-index" 355 + -checksum = "5e4728fd124914ad25e99e3d15a9361a879f6620f63cb56bbb08f95abb97a535" 356 + +checksum = "5ca32592cf21ac7ccab1825cd87f6c9b3d9022c44d086172ed0966bec8af30be" 357 + dependencies = [ 358 + - "bytes", 359 + + "bytes 1.2.1", 360 + "fnv", 361 + "futures-core", 362 + "futures-sink", 363 + @@ -519,21 +559,20 @@ dependencies = [ 364 + "tokio", 365 + "tokio-util", 366 + "tracing", 367 + - "tracing-futures", 368 + ] 369 + 370 + [[package]] 371 + name = "handlebars" 372 + -version = "3.5.1" 373 + +version = "4.3.5" 374 + source = "registry+https://github.com/rust-lang/crates.io-index" 375 + -checksum = "2764f9796c0ddca4b82c07f25dd2cb3db30b9a8f47940e78e1c883d9e95c3db9" 376 + +checksum = "433e4ab33f1213cdc25b5fa45c76881240cfe79284cf2b395e8b9e312a30a2fd" 377 + dependencies = [ 378 + "log", 379 + "pest", 380 + "pest_derive", 381 + - "quick-error 2.0.0", 382 + "serde", 383 + "serde_json", 384 + + "thiserror", 385 + ] 386 + 387 + [[package]] 388 + @@ -548,9 +587,9 @@ version = "0.3.2" 389 + source = "registry+https://github.com/rust-lang/crates.io-index" 390 + checksum = "ed18eb2459bf1a09ad2d6b1547840c3e5e62882fa09b9a6a20b1de8e3228848f" 391 + dependencies = [ 392 + - "base64", 393 + + "base64 0.12.3", 394 + "bitflags", 395 + - "bytes", 396 + + "bytes 0.5.6", 397 + "headers-core", 398 + "http", 399 + "mime", 400 + @@ -567,15 +606,6 @@ dependencies = [ 401 + "http", 402 + ] 403 + 404 + -[[package]] 405 + -name = "heck" 406 + -version = "0.3.1" 407 + -source = "registry+https://github.com/rust-lang/crates.io-index" 408 + -checksum = "20564e78d53d2bb135c343b3f47714a56af2061f1c928fdb541dc7b9fdd94205" 409 + -dependencies = [ 410 + - "unicode-segmentation", 411 + -] 412 + - 413 + [[package]] 414 + name = "hermit-abi" 415 + version = "0.1.17" 416 + @@ -605,19 +635,20 @@ version = "0.2.1" 417 + source = "registry+https://github.com/rust-lang/crates.io-index" 418 + checksum = "28d569972648b2c512421b5f2a405ad6ac9666547189d0c5477a3f200f3e02f9" 419 + dependencies = [ 420 + - "bytes", 421 + + "bytes 0.5.6", 422 + "fnv", 423 + - "itoa", 424 + + "itoa 0.4.6", 425 + ] 426 + 427 + [[package]] 428 + name = "http-body" 429 + -version = "0.3.1" 430 + +version = "0.4.5" 431 + source = "registry+https://github.com/rust-lang/crates.io-index" 432 + -checksum = "13d5ff830006f7646652e057693569bfe0d51760c0085a071769d142a205111b" 433 + +checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1" 434 + dependencies = [ 435 + - "bytes", 436 + + "bytes 1.2.1", 437 + "http", 438 + + "pin-project-lite", 439 + ] 440 + 441 + [[package]] 442 + @@ -634,20 +665,17 @@ checksum = "494b4d60369511e7dea41cf646832512a94e542f68bb9c49e54518e0f468eb47" 443 + 444 + [[package]] 445 + name = "humantime" 446 + -version = "1.3.0" 447 + +version = "2.1.0" 448 + source = "registry+https://github.com/rust-lang/crates.io-index" 449 + -checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f" 450 + -dependencies = [ 451 + - "quick-error 1.2.3", 452 + -] 453 + +checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" 454 + 455 + [[package]] 456 + name = "hyper" 457 + -version = "0.13.9" 458 + +version = "0.14.5" 459 + source = "registry+https://github.com/rust-lang/crates.io-index" 460 + -checksum = "f6ad767baac13b44d4529fcf58ba2cd0995e36e7b435bc5b039de6f47e880dbf" 461 + +checksum = "8bf09f61b52cfcf4c00de50df88ae423d6c02354e385a86341133b5338630ad1" 462 + dependencies = [ 463 + - "bytes", 464 + + "bytes 1.2.1", 465 + "futures-channel", 466 + "futures-core", 467 + "futures-util", 468 + @@ -656,8 +684,8 @@ dependencies = [ 469 + "http-body", 470 + "httparse", 471 + "httpdate", 472 + - "itoa", 473 + - "pin-project 1.0.1", 474 + + "itoa 0.4.6", 475 + + "pin-project", 476 + "socket2", 477 + "tokio", 478 + "tower-service", 479 + @@ -712,15 +740,6 @@ dependencies = [ 480 + "libc", 481 + ] 482 + 483 + -[[package]] 484 + -name = "input_buffer" 485 + -version = "0.3.1" 486 + -source = "registry+https://github.com/rust-lang/crates.io-index" 487 + -checksum = "19a8a95243d5a0398cae618ec29477c6e3cb631152be5c19481f80bc71559754" 488 + -dependencies = [ 489 + - "bytes", 490 + -] 491 + - 492 + [[package]] 493 + name = "iovec" 494 + version = "0.1.4" 495 + @@ -736,6 +755,12 @@ version = "0.4.6" 496 + source = "registry+https://github.com/rust-lang/crates.io-index" 497 + checksum = "dc6f3ad7b9d11a0c00842ff8de1b60ee58661048eb8049ed33c73594f359d7e6" 498 + 499 + +[[package]] 500 + +name = "itoa" 501 + +version = "1.0.3" 502 + +source = "registry+https://github.com/rust-lang/crates.io-index" 503 + +checksum = "6c8af84674fe1f223a982c933a0ee1086ac4d4052aa0fb8060c12c6ad838e754" 504 + + 505 + [[package]] 506 + name = "katex" 507 + version = "0.3.2" 508 + @@ -771,9 +796,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" 509 + 510 + [[package]] 511 + name = "libc" 512 + -version = "0.2.80" 513 + +version = "0.2.134" 514 + source = "registry+https://github.com/rust-lang/crates.io-index" 515 + -checksum = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614" 516 + +checksum = "329c933548736bc49fd575ee68c89e8be4d260064184389a5b77517cddd99ffb" 517 + 518 + [[package]] 519 + name = "libquickjs-sys" 520 + @@ -843,14 +868,15 @@ checksum = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08" 521 + 522 + [[package]] 523 + name = "mdbook" 524 + -version = "0.4.4" 525 + +version = "0.4.21" 526 + source = "registry+https://github.com/rust-lang/crates.io-index" 527 + -checksum = "714a3ac362b9b32eef9468ecfe604cb8e2204d50793602e9d49fee44781230e7" 528 + +checksum = "23f3e133c6d515528745ffd3b9f0c7d975ae039f0b6abb099f2168daa2afb4f9" 529 + dependencies = [ 530 + "ammonia", 531 + "anyhow", 532 + "chrono", 533 + - "clap", 534 + + "clap 3.2.22", 535 + + "clap_complete", 536 + "elasticlunr-rs", 537 + "env_logger", 538 + "futures-util", 539 + @@ -860,16 +886,16 @@ dependencies = [ 540 + "log", 541 + "memchr", 542 + "notify", 543 + - "open", 544 + + "opener", 545 + "pulldown-cmark", 546 + "regex", 547 + "serde", 548 + - "serde_derive", 549 + "serde_json", 550 + "shlex", 551 + "tempfile", 552 + "tokio", 553 + "toml", 554 + + "topological-sort", 555 + "warp", 556 + ] 557 + 558 + @@ -877,7 +903,7 @@ dependencies = [ 559 + name = "mdbook-katex" 560 + version = "0.2.10" 561 + dependencies = [ 562 + - "clap", 563 + + "clap 2.33.3", 564 + "katex", 565 + "mdbook", 566 + "serde_json", 567 + @@ -886,9 +912,9 @@ dependencies = [ 568 + 569 + [[package]] 570 + name = "memchr" 571 + -version = "2.3.4" 572 + +version = "2.5.0" 573 + source = "registry+https://github.com/rust-lang/crates.io-index" 574 + -checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" 575 + +checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" 576 + 577 + [[package]] 578 + name = "mime" 579 + @@ -925,6 +951,18 @@ dependencies = [ 580 + "winapi 0.2.8", 581 + ] 582 + 583 + +[[package]] 584 + +name = "mio" 585 + +version = "0.8.4" 586 + +source = "registry+https://github.com/rust-lang/crates.io-index" 587 + +checksum = "57ee1c23c7c63b0c9250c339ffdc69255f110b298b901b9f6c82547b7b87caaf" 588 + +dependencies = [ 589 + + "libc", 590 + + "log", 591 + + "wasi 0.11.0+wasi-snapshot-preview1", 592 + + "windows-sys", 593 + +] 594 + + 595 + [[package]] 596 + name = "mio-extras" 597 + version = "2.0.6" 598 + @@ -933,7 +971,7 @@ checksum = "52403fe290012ce777c4626790c8951324a2b9e3316b3143779c72b029742f19" 599 + dependencies = [ 600 + "lazycell", 601 + "log", 602 + - "mio", 603 + + "mio 0.6.22", 604 + "slab", 605 + ] 606 + 607 + @@ -978,7 +1016,7 @@ dependencies = [ 608 + "fsevent-sys", 609 + "inotify", 610 + "libc", 611 + - "mio", 612 + + "mio 0.6.22", 613 + "mio-extras", 614 + "walkdir 2.3.1", 615 + "winapi 0.3.9", 616 + @@ -1004,32 +1042,43 @@ dependencies = [ 617 + ] 618 + 619 + [[package]] 620 + -name = "once_cell" 621 + -version = "1.5.2" 622 + +name = "num_cpus" 623 + +version = "1.13.1" 624 + source = "registry+https://github.com/rust-lang/crates.io-index" 625 + -checksum = "13bd41f508810a131401606d54ac32a467c97172d74ba7662562ebba5ad07fa0" 626 + +checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1" 627 + +dependencies = [ 628 + + "hermit-abi", 629 + + "libc", 630 + +] 631 + 632 + [[package]] 633 + -name = "opaque-debug" 634 + -version = "0.2.3" 635 + +name = "once_cell" 636 + +version = "1.15.0" 637 + source = "registry+https://github.com/rust-lang/crates.io-index" 638 + -checksum = "2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529c" 639 + +checksum = "e82dad04139b71a90c080c8463fe0dc7902db5192d939bd0950f074d014339e1" 640 + 641 + [[package]] 642 + name = "opaque-debug" 643 + -version = "0.3.0" 644 + +version = "0.2.3" 645 + source = "registry+https://github.com/rust-lang/crates.io-index" 646 + -checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" 647 + +checksum = "2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529c" 648 + 649 + [[package]] 650 + -name = "open" 651 + -version = "1.4.0" 652 + +name = "opener" 653 + +version = "0.5.0" 654 + source = "registry+https://github.com/rust-lang/crates.io-index" 655 + -checksum = "7c283bf0114efea9e42f1a60edea9859e8c47528eae09d01df4b29c1e489cc48" 656 + +checksum = "4ea3ebcd72a54701f56345f16785a6d3ac2df7e986d273eb4395c0b01db17952" 657 + dependencies = [ 658 + + "bstr", 659 + "winapi 0.3.9", 660 + ] 661 + 662 + +[[package]] 663 + +name = "os_str_bytes" 664 + +version = "6.3.0" 665 + +source = "registry+https://github.com/rust-lang/crates.io-index" 666 + +checksum = "9ff7415e9ae3fff1225851df9e0d9e4e5479f947619774677a63572e55e80eff" 667 + + 668 + [[package]] 669 + name = "percent-encoding" 670 + version = "2.1.0" 671 + @@ -1105,7 +1154,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" 672 + checksum = "17367f0cc86f2d25802b2c26ee58a7b23faeccf78a396094c13dced0d0182526" 673 + dependencies = [ 674 + "phf_shared", 675 + - "rand", 676 + + "rand 0.7.3", 677 + ] 678 + 679 + [[package]] 680 + @@ -1117,33 +1166,13 @@ dependencies = [ 681 + "siphasher", 682 + ] 683 + 684 + -[[package]] 685 + -name = "pin-project" 686 + -version = "0.4.27" 687 + -source = "registry+https://github.com/rust-lang/crates.io-index" 688 + -checksum = "2ffbc8e94b38ea3d2d8ba92aea2983b503cd75d0888d75b86bb37970b5698e15" 689 + -dependencies = [ 690 + - "pin-project-internal 0.4.27", 691 + -] 692 + - 693 + [[package]] 694 + name = "pin-project" 695 + version = "1.0.1" 696 + source = "registry+https://github.com/rust-lang/crates.io-index" 697 + checksum = "ee41d838744f60d959d7074e3afb6b35c7456d0f61cad38a24e35e6553f73841" 698 + dependencies = [ 699 + - "pin-project-internal 1.0.1", 700 + -] 701 + - 702 + -[[package]] 703 + -name = "pin-project-internal" 704 + -version = "0.4.27" 705 + -source = "registry+https://github.com/rust-lang/crates.io-index" 706 + -checksum = "65ad2ae56b6abe3a1ee25f15ee605bacadb9a764edaba9c2bf4103800d4a1895" 707 + -dependencies = [ 708 + - "proc-macro2", 709 + - "quote", 710 + - "syn", 711 + + "pin-project-internal", 712 + ] 713 + 714 + [[package]] 715 + @@ -1159,9 +1188,9 @@ dependencies = [ 716 + 717 + [[package]] 718 + name = "pin-project-lite" 719 + -version = "0.1.11" 720 + +version = "0.2.9" 721 + source = "registry+https://github.com/rust-lang/crates.io-index" 722 + -checksum = "c917123afa01924fc84bb20c4c03f004d9c38e5127e3c039bbf7f4b9c76a2f6b" 723 + +checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" 724 + 725 + [[package]] 726 + name = "pin-utils" 727 + @@ -1181,18 +1210,6 @@ version = "0.1.1" 728 + source = "registry+https://github.com/rust-lang/crates.io-index" 729 + checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" 730 + 731 + -[[package]] 732 + -name = "proc-macro-hack" 733 + -version = "0.5.19" 734 + -source = "registry+https://github.com/rust-lang/crates.io-index" 735 + -checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5" 736 + - 737 + -[[package]] 738 + -name = "proc-macro-nested" 739 + -version = "0.1.6" 740 + -source = "registry+https://github.com/rust-lang/crates.io-index" 741 + -checksum = "eba180dafb9038b050a4c280019bbedf9f2467b61e5d892dcad585bb57aadc5a" 742 + - 743 + [[package]] 744 + name = "proc-macro2" 745 + version = "1.0.24" 746 + @@ -1204,28 +1221,15 @@ dependencies = [ 747 + 748 + [[package]] 749 + name = "pulldown-cmark" 750 + -version = "0.7.2" 751 + +version = "0.9.2" 752 + source = "registry+https://github.com/rust-lang/crates.io-index" 753 + -checksum = "ca36dea94d187597e104a5c8e4b07576a8a45aa5db48a65e12940d3eb7461f55" 754 + +checksum = "2d9cc634bc78768157b5cbfe988ffcd1dcba95cd2b2f03a88316c08c6d00ed63" 755 + dependencies = [ 756 + "bitflags", 757 + - "getopts", 758 + "memchr", 759 + "unicase", 760 + ] 761 + 762 + -[[package]] 763 + -name = "quick-error" 764 + -version = "1.2.3" 765 + -source = "registry+https://github.com/rust-lang/crates.io-index" 766 + -checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" 767 + - 768 + -[[package]] 769 + -name = "quick-error" 770 + -version = "2.0.0" 771 + -source = "registry+https://github.com/rust-lang/crates.io-index" 772 + -checksum = "3ac73b1112776fc109b2e61909bc46c7e1bf0d7f690ffb1676553acce16d5cda" 773 + - 774 + [[package]] 775 + name = "quick-js" 776 + version = "0.4.0" 777 + @@ -1251,14 +1255,25 @@ version = "0.7.3" 778 + source = "registry+https://github.com/rust-lang/crates.io-index" 779 + checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" 780 + dependencies = [ 781 + - "getrandom", 782 + + "getrandom 0.1.15", 783 + "libc", 784 + - "rand_chacha", 785 + - "rand_core", 786 + + "rand_chacha 0.2.2", 787 + + "rand_core 0.5.1", 788 + "rand_hc", 789 + "rand_pcg", 790 + ] 791 + 792 + +[[package]] 793 + +name = "rand" 794 + +version = "0.8.5" 795 + +source = "registry+https://github.com/rust-lang/crates.io-index" 796 + +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" 797 + +dependencies = [ 798 + + "libc", 799 + + "rand_chacha 0.3.1", 800 + + "rand_core 0.6.4", 801 + +] 802 + + 803 + [[package]] 804 + name = "rand_chacha" 805 + version = "0.2.2" 806 + @@ -1266,7 +1281,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" 807 + checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" 808 + dependencies = [ 809 + "ppv-lite86", 810 + - "rand_core", 811 + + "rand_core 0.5.1", 812 + +] 813 + + 814 + +[[package]] 815 + +name = "rand_chacha" 816 + +version = "0.3.1" 817 + +source = "registry+https://github.com/rust-lang/crates.io-index" 818 + +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" 819 + +dependencies = [ 820 + + "ppv-lite86", 821 + + "rand_core 0.6.4", 822 + ] 823 + 824 + [[package]] 825 + @@ -1275,7 +1300,16 @@ version = "0.5.1" 826 + source = "registry+https://github.com/rust-lang/crates.io-index" 827 + checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" 828 + dependencies = [ 829 + - "getrandom", 830 + + "getrandom 0.1.15", 831 + +] 832 + + 833 + +[[package]] 834 + +name = "rand_core" 835 + +version = "0.6.4" 836 + +source = "registry+https://github.com/rust-lang/crates.io-index" 837 + +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" 838 + +dependencies = [ 839 + + "getrandom 0.2.7", 840 + ] 841 + 842 + [[package]] 843 + @@ -1284,7 +1318,7 @@ version = "0.2.0" 844 + source = "registry+https://github.com/rust-lang/crates.io-index" 845 + checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" 846 + dependencies = [ 847 + - "rand_core", 848 + + "rand_core 0.5.1", 849 + ] 850 + 851 + [[package]] 852 + @@ -1293,7 +1327,7 @@ version = "0.2.1" 853 + source = "registry+https://github.com/rust-lang/crates.io-index" 854 + checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" 855 + dependencies = [ 856 + - "rand_core", 857 + + "rand_core 0.5.1", 858 + ] 859 + 860 + [[package]] 861 + @@ -1304,21 +1338,26 @@ checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" 862 + 863 + [[package]] 864 + name = "regex" 865 + -version = "1.4.2" 866 + +version = "1.6.0" 867 + source = "registry+https://github.com/rust-lang/crates.io-index" 868 + -checksum = "38cf2c13ed4745de91a5eb834e11c00bcc3709e773173b2ce4c56c9fbde04b9c" 869 + +checksum = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b" 870 + dependencies = [ 871 + "aho-corasick", 872 + "memchr", 873 + "regex-syntax", 874 + - "thread_local", 875 + ] 876 + 877 + +[[package]] 878 + +name = "regex-automata" 879 + +version = "0.1.10" 880 + +source = "registry+https://github.com/rust-lang/crates.io-index" 881 + +checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" 882 + + 883 + [[package]] 884 + name = "regex-syntax" 885 + -version = "0.6.21" 886 + +version = "0.6.27" 887 + source = "registry+https://github.com/rust-lang/crates.io-index" 888 + -checksum = "3b181ba2dcf07aaccad5448e8ead58db5b742cf85dfe035e2227f137a539a189" 889 + +checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244" 890 + 891 + [[package]] 892 + name = "remove_dir_all" 893 + @@ -1329,6 +1368,15 @@ dependencies = [ 894 + "winapi 0.3.9", 895 + ] 896 + 897 + +[[package]] 898 + +name = "rustls-pemfile" 899 + +version = "0.2.1" 900 + +source = "registry+https://github.com/rust-lang/crates.io-index" 901 + +checksum = "5eebeaeb360c87bfb72e84abdb3447159c0eaececf1bef2aecd65a8be949d1c9" 902 + +dependencies = [ 903 + + "base64 0.13.0", 904 + +] 905 + + 906 + [[package]] 907 + name = "ryu" 908 + version = "1.0.5" 909 + @@ -1355,6 +1403,9 @@ name = "serde" 910 + version = "1.0.117" 911 + source = "registry+https://github.com/rust-lang/crates.io-index" 912 + checksum = "b88fa983de7720629c9387e9f517353ed404164b1e482c970a90c1a4aaf7dc1a" 913 + +dependencies = [ 914 + + "serde_derive", 915 + +] 916 + 917 + [[package]] 918 + name = "serde_derive" 919 + @@ -1373,21 +1424,21 @@ version = "1.0.59" 920 + source = "registry+https://github.com/rust-lang/crates.io-index" 921 + checksum = "dcac07dbffa1c65e7f816ab9eba78eb142c6d44410f4eeba1e26e4f5dfa56b95" 922 + dependencies = [ 923 + - "itoa", 924 + + "itoa 0.4.6", 925 + "ryu", 926 + "serde", 927 + ] 928 + 929 + [[package]] 930 + name = "serde_urlencoded" 931 + -version = "0.6.1" 932 + +version = "0.7.1" 933 + source = "registry+https://github.com/rust-lang/crates.io-index" 934 + -checksum = "9ec5d77e2d4c73717816afac02670d5c4f534ea95ed430442cad02e7a6e32c97" 935 + +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" 936 + dependencies = [ 937 + - "dtoa", 938 + - "itoa", 939 + + "form_urlencoded", 940 + + "itoa 1.0.3", 941 + + "ryu", 942 + "serde", 943 + - "url", 944 + ] 945 + 946 + [[package]] 947 + @@ -1399,27 +1450,25 @@ dependencies = [ 948 + "block-buffer 0.7.3", 949 + "digest 0.8.1", 950 + "fake-simd", 951 + - "opaque-debug 0.2.3", 952 + + "opaque-debug", 953 + ] 954 + 955 + [[package]] 956 + name = "sha-1" 957 + -version = "0.9.2" 958 + +version = "0.10.0" 959 + source = "registry+https://github.com/rust-lang/crates.io-index" 960 + -checksum = "ce3cdf1b5e620a498ee6f2a171885ac7e22f0e12089ec4b3d22b84921792507c" 961 + +checksum = "028f48d513f9678cda28f6e4064755b3fbb2af6acd672f2c209b62323f7aea0f" 962 + dependencies = [ 963 + - "block-buffer 0.9.0", 964 + "cfg-if 1.0.0", 965 + - "cpuid-bool", 966 + - "digest 0.9.0", 967 + - "opaque-debug 0.3.0", 968 + + "cpufeatures", 969 + + "digest 0.10.5", 970 + ] 971 + 972 + [[package]] 973 + name = "shlex" 974 + -version = "0.1.1" 975 + +version = "1.1.0" 976 + source = "registry+https://github.com/rust-lang/crates.io-index" 977 + -checksum = "7fdf1b9db47230893d76faad238fd6097fd6d6a9245cd7a4d90dbd639536bbd2" 978 + +checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3" 979 + 980 + [[package]] 981 + name = "siphasher" 982 + @@ -1435,13 +1484,11 @@ checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" 983 + 984 + [[package]] 985 + name = "socket2" 986 + -version = "0.3.16" 987 + +version = "0.4.7" 988 + source = "registry+https://github.com/rust-lang/crates.io-index" 989 + -checksum = "7fd8b795c389288baa5f355489c65e71fd48a02104600d15c4cfbc561e9e429d" 990 + +checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" 991 + dependencies = [ 992 + - "cfg-if 0.1.10", 993 + "libc", 994 + - "redox_syscall", 995 + "winapi 0.3.9", 996 + ] 997 + 998 + @@ -1483,28 +1530,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" 999 + checksum = "6446ced80d6c486436db5c078dde11a9f73d42b57fb273121e160b84f63d894c" 1000 + 1001 + [[package]] 1002 + -name = "strum" 1003 + -version = "0.18.0" 1004 + +name = "strsim" 1005 + +version = "0.10.0" 1006 + source = "registry+https://github.com/rust-lang/crates.io-index" 1007 + -checksum = "57bd81eb48f4c437cadc685403cad539345bf703d78e63707418431cecd4522b" 1008 + - 1009 + -[[package]] 1010 + -name = "strum_macros" 1011 + -version = "0.18.0" 1012 + -source = "registry+https://github.com/rust-lang/crates.io-index" 1013 + -checksum = "87c85aa3f8ea653bfd3ddf25f7ee357ee4d204731f6aa9ad04002306f6e2774c" 1014 + -dependencies = [ 1015 + - "heck", 1016 + - "proc-macro2", 1017 + - "quote", 1018 + - "syn", 1019 + -] 1020 + +checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" 1021 + 1022 + [[package]] 1023 + name = "syn" 1024 + -version = "1.0.48" 1025 + +version = "1.0.67" 1026 + source = "registry+https://github.com/rust-lang/crates.io-index" 1027 + -checksum = "cc371affeffc477f42a221a1e4297aedcea33d47d19b61455588bd9d8f6b19ac" 1028 + +checksum = "6498a9efc342871f91cc2d0d694c674368b4ceb40f62b65a7a08c3792935e702" 1029 + dependencies = [ 1030 + "proc-macro2", 1031 + "quote", 1032 + @@ -1519,7 +1554,7 @@ checksum = "7a6e24d9338a0a5be79593e2fa15a648add6138caa803e2d5bc782c371732ca9" 1033 + dependencies = [ 1034 + "cfg-if 0.1.10", 1035 + "libc", 1036 + - "rand", 1037 + + "rand 0.7.3", 1038 + "redox_syscall", 1039 + "remove_dir_all", 1040 + "winapi 0.3.9", 1041 + @@ -1538,9 +1573,9 @@ dependencies = [ 1042 + 1043 + [[package]] 1044 + name = "termcolor" 1045 + -version = "1.1.0" 1046 + +version = "1.1.3" 1047 + source = "registry+https://github.com/rust-lang/crates.io-index" 1048 + -checksum = "bb6bfa289a4d7c5766392812c0a1f4c1ba45afa1ad47803c11e1f407d846d75f" 1049 + +checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755" 1050 + dependencies = [ 1051 + "winapi-util", 1052 + ] 1053 + @@ -1554,35 +1589,32 @@ dependencies = [ 1054 + "unicode-width", 1055 + ] 1056 + 1057 + +[[package]] 1058 + +name = "textwrap" 1059 + +version = "0.15.1" 1060 + +source = "registry+https://github.com/rust-lang/crates.io-index" 1061 + +checksum = "949517c0cf1bf4ee812e2e07e08ab448e3ae0d23472aee8a06c985f0c8815b16" 1062 + + 1063 + [[package]] 1064 + name = "thiserror" 1065 + -version = "1.0.22" 1066 + +version = "1.0.37" 1067 + source = "registry+https://github.com/rust-lang/crates.io-index" 1068 + -checksum = "0e9ae34b84616eedaaf1e9dd6026dbe00dcafa92aa0c8077cb69df1fcfe5e53e" 1069 + +checksum = "10deb33631e3c9018b9baf9dcbbc4f737320d2b576bac10f6aefa048fa407e3e" 1070 + dependencies = [ 1071 + "thiserror-impl", 1072 + ] 1073 + 1074 + [[package]] 1075 + name = "thiserror-impl" 1076 + -version = "1.0.22" 1077 + +version = "1.0.37" 1078 + source = "registry+https://github.com/rust-lang/crates.io-index" 1079 + -checksum = "9ba20f23e85b10754cd195504aebf6a27e2e6cbe28c17778a0c930724628dd56" 1080 + +checksum = "982d17546b47146b28f7c22e3d08465f6b8903d0ea13c1660d9d84a6e7adcdbb" 1081 + dependencies = [ 1082 + "proc-macro2", 1083 + "quote", 1084 + "syn", 1085 + ] 1086 + 1087 + -[[package]] 1088 + -name = "thread_local" 1089 + -version = "1.0.1" 1090 + -source = "registry+https://github.com/rust-lang/crates.io-index" 1091 + -checksum = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14" 1092 + -dependencies = [ 1093 + - "lazy_static", 1094 + -] 1095 + - 1096 + [[package]] 1097 + name = "time" 1098 + version = "0.1.44" 1099 + @@ -1611,58 +1643,68 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" 1100 + 1101 + [[package]] 1102 + name = "tokio" 1103 + -version = "0.2.23" 1104 + +version = "1.21.2" 1105 + source = "registry+https://github.com/rust-lang/crates.io-index" 1106 + -checksum = "a6d7ad61edd59bfcc7e80dababf0f4aed2e6d5e0ba1659356ae889752dfc12ff" 1107 + +checksum = "a9e03c497dc955702ba729190dc4aac6f2a0ce97f913e5b1b5912fc5039d9099" 1108 + dependencies = [ 1109 + - "bytes", 1110 + - "fnv", 1111 + - "futures-core", 1112 + - "iovec", 1113 + - "lazy_static", 1114 + + "autocfg", 1115 + + "bytes 1.2.1", 1116 + + "libc", 1117 + "memchr", 1118 + - "mio", 1119 + + "mio 0.8.4", 1120 + + "num_cpus", 1121 + "pin-project-lite", 1122 + - "slab", 1123 + + "socket2", 1124 + "tokio-macros", 1125 + + "winapi 0.3.9", 1126 + ] 1127 + 1128 + [[package]] 1129 + name = "tokio-macros" 1130 + -version = "0.2.6" 1131 + +version = "1.8.0" 1132 + source = "registry+https://github.com/rust-lang/crates.io-index" 1133 + -checksum = "e44da00bfc73a25f814cd8d7e57a68a5c31b74b3152a0a1d1f590c97ed06265a" 1134 + +checksum = "9724f9a975fb987ef7a3cd9be0350edcbe130698af5b8f7a631e23d42d052484" 1135 + dependencies = [ 1136 + "proc-macro2", 1137 + "quote", 1138 + "syn", 1139 + ] 1140 + 1141 + +[[package]] 1142 + +name = "tokio-stream" 1143 + +version = "0.1.10" 1144 + +source = "registry+https://github.com/rust-lang/crates.io-index" 1145 + +checksum = "f6edf2d6bc038a43d31353570e27270603f4648d18f5ed10c0e179abe43255af" 1146 + +dependencies = [ 1147 + + "futures-core", 1148 + + "pin-project-lite", 1149 + + "tokio", 1150 + +] 1151 + + 1152 + [[package]] 1153 + name = "tokio-tungstenite" 1154 + -version = "0.11.0" 1155 + +version = "0.17.2" 1156 + source = "registry+https://github.com/rust-lang/crates.io-index" 1157 + -checksum = "6d9e878ad426ca286e4dcae09cbd4e1973a7f8987d97570e2469703dd7f5720c" 1158 + +checksum = "f714dd15bead90401d77e04243611caec13726c2408afd5b31901dfcdcb3b181" 1159 + dependencies = [ 1160 + "futures-util", 1161 + "log", 1162 + - "pin-project 0.4.27", 1163 + "tokio", 1164 + "tungstenite", 1165 + ] 1166 + 1167 + [[package]] 1168 + name = "tokio-util" 1169 + -version = "0.3.1" 1170 + +version = "0.7.4" 1171 + source = "registry+https://github.com/rust-lang/crates.io-index" 1172 + -checksum = "be8242891f2b6cbef26a2d7e8605133c2c554cd35b3e4948ea892d6d68436499" 1173 + +checksum = "0bb2e075f03b3d66d8d8785356224ba688d2906a371015e225beeb65ca92c740" 1174 + dependencies = [ 1175 + - "bytes", 1176 + + "bytes 1.2.1", 1177 + "futures-core", 1178 + "futures-sink", 1179 + - "log", 1180 + "pin-project-lite", 1181 + "tokio", 1182 + + "tracing", 1183 + ] 1184 + 1185 + [[package]] 1186 + @@ -1674,6 +1716,12 @@ dependencies = [ 1187 + "serde", 1188 + ] 1189 + 1190 + +[[package]] 1191 + +name = "topological-sort" 1192 + +version = "0.1.0" 1193 + +source = "registry+https://github.com/rust-lang/crates.io-index" 1194 + +checksum = "aa7c7f42dea4b1b99439786f5633aeb9c14c1b53f75e282803c2ec2ad545873c" 1195 + + 1196 + [[package]] 1197 + name = "tower-service" 1198 + version = "0.3.0" 1199 + @@ -1682,11 +1730,11 @@ checksum = "e987b6bf443f4b5b3b6f38704195592cca41c5bb7aedd3c3693c7081f8289860" 1200 + 1201 + [[package]] 1202 + name = "tracing" 1203 + -version = "0.1.21" 1204 + +version = "0.1.35" 1205 + source = "registry+https://github.com/rust-lang/crates.io-index" 1206 + -checksum = "b0987850db3733619253fe60e17cb59b82d37c7e6c0236bb81e4d6b87c879f27" 1207 + +checksum = "a400e31aa60b9d44a52a8ee0343b5b18566b03a8321e0d321f695cf56e940160" 1208 + dependencies = [ 1209 + - "cfg-if 0.1.10", 1210 + + "cfg-if 1.0.0", 1211 + "log", 1212 + "pin-project-lite", 1213 + "tracing-core", 1214 + @@ -1694,21 +1742,11 @@ dependencies = [ 1215 + 1216 + [[package]] 1217 + name = "tracing-core" 1218 + -version = "0.1.17" 1219 + -source = "registry+https://github.com/rust-lang/crates.io-index" 1220 + -checksum = "f50de3927f93d202783f4513cda820ab47ef17f624b03c096e86ef00c67e6b5f" 1221 + -dependencies = [ 1222 + - "lazy_static", 1223 + -] 1224 + - 1225 + -[[package]] 1226 + -name = "tracing-futures" 1227 + -version = "0.2.4" 1228 + +version = "0.1.29" 1229 + source = "registry+https://github.com/rust-lang/crates.io-index" 1230 + -checksum = "ab7bb6f14721aa00656086e9335d363c5c8747bae02ebe32ea2c7dece5689b4c" 1231 + +checksum = "5aeea4303076558a00714b823f9ad67d58a3bbda1df83d8827d21193156e22f7" 1232 + dependencies = [ 1233 + - "pin-project 0.4.27", 1234 + - "tracing", 1235 + + "once_cell", 1236 + ] 1237 + 1238 + [[package]] 1239 + @@ -1719,28 +1757,28 @@ checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" 1240 + 1241 + [[package]] 1242 + name = "tungstenite" 1243 + -version = "0.11.1" 1244 + +version = "0.17.3" 1245 + source = "registry+https://github.com/rust-lang/crates.io-index" 1246 + -checksum = "f0308d80d86700c5878b9ef6321f020f29b1bb9d5ff3cab25e75e23f3a492a23" 1247 + +checksum = "e27992fd6a8c29ee7eef28fc78349aa244134e10ad447ce3b9f0ac0ed0fa4ce0" 1248 + dependencies = [ 1249 + - "base64", 1250 + + "base64 0.13.0", 1251 + "byteorder", 1252 + - "bytes", 1253 + + "bytes 1.2.1", 1254 + "http", 1255 + "httparse", 1256 + - "input_buffer", 1257 + "log", 1258 + - "rand", 1259 + - "sha-1 0.9.2", 1260 + + "rand 0.8.5", 1261 + + "sha-1 0.10.0", 1262 + + "thiserror", 1263 + "url", 1264 + "utf-8", 1265 + ] 1266 + 1267 + [[package]] 1268 + name = "typenum" 1269 + -version = "1.12.0" 1270 + +version = "1.15.0" 1271 + source = "registry+https://github.com/rust-lang/crates.io-index" 1272 + -checksum = "373c8a200f9e67a0c95e62a4f52fbf80c23b4381c05a17845531982fa99e6b33" 1273 + +checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987" 1274 + 1275 + [[package]] 1276 + name = "ucd-trie" 1277 + @@ -1775,12 +1813,6 @@ dependencies = [ 1278 + "tinyvec", 1279 + ] 1280 + 1281 + -[[package]] 1282 + -name = "unicode-segmentation" 1283 + -version = "1.7.0" 1284 + -source = "registry+https://github.com/rust-lang/crates.io-index" 1285 + -checksum = "db8716a166f290ff49dabc18b44aa407cb7c6dbe1aa0971b44b8a24b0ca35aae" 1286 + - 1287 + [[package]] 1288 + name = "unicode-width" 1289 + version = "0.1.8" 1290 + @@ -1805,12 +1837,6 @@ dependencies = [ 1291 + "percent-encoding", 1292 + ] 1293 + 1294 + -[[package]] 1295 + -name = "urlencoding" 1296 + -version = "1.1.1" 1297 + -source = "registry+https://github.com/rust-lang/crates.io-index" 1298 + -checksum = "c9232eb53352b4442e40d7900465dfc534e8cb2dc8f18656fcb2ac16112b5593" 1299 + - 1300 + [[package]] 1301 + name = "utf-8" 1302 + version = "0.7.5" 1303 + @@ -1862,29 +1888,32 @@ dependencies = [ 1304 + 1305 + [[package]] 1306 + name = "warp" 1307 + -version = "0.2.5" 1308 + +version = "0.3.3" 1309 + source = "registry+https://github.com/rust-lang/crates.io-index" 1310 + -checksum = "f41be6df54c97904af01aa23e613d4521eed7ab23537cede692d4058f6449407" 1311 + +checksum = "ed7b8be92646fc3d18b06147664ebc5f48d222686cb11a8755e561a735aacc6d" 1312 + dependencies = [ 1313 + - "bytes", 1314 + - "futures", 1315 + + "bytes 1.2.1", 1316 + + "futures-channel", 1317 + + "futures-util", 1318 + "headers", 1319 + "http", 1320 + "hyper", 1321 + "log", 1322 + "mime", 1323 + "mime_guess", 1324 + - "pin-project 0.4.27", 1325 + + "percent-encoding", 1326 + + "pin-project", 1327 + + "rustls-pemfile", 1328 + "scoped-tls", 1329 + "serde", 1330 + "serde_json", 1331 + "serde_urlencoded", 1332 + "tokio", 1333 + + "tokio-stream", 1334 + "tokio-tungstenite", 1335 + + "tokio-util", 1336 + "tower-service", 1337 + "tracing", 1338 + - "tracing-futures", 1339 + - "urlencoding", 1340 + ] 1341 + 1342 + [[package]] 1343 + @@ -1899,6 +1928,12 @@ version = "0.10.0+wasi-snapshot-preview1" 1344 + source = "registry+https://github.com/rust-lang/crates.io-index" 1345 + checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" 1346 + 1347 + +[[package]] 1348 + +name = "wasi" 1349 + +version = "0.11.0+wasi-snapshot-preview1" 1350 + +source = "registry+https://github.com/rust-lang/crates.io-index" 1351 + +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 1352 + + 1353 + [[package]] 1354 + name = "winapi" 1355 + version = "0.2.8" 1356 + @@ -1942,6 +1977,49 @@ version = "0.4.0" 1357 + source = "registry+https://github.com/rust-lang/crates.io-index" 1358 + checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 1359 + 1360 + +[[package]] 1361 + +name = "windows-sys" 1362 + +version = "0.36.1" 1363 + +source = "registry+https://github.com/rust-lang/crates.io-index" 1364 + +checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2" 1365 + +dependencies = [ 1366 + + "windows_aarch64_msvc", 1367 + + "windows_i686_gnu", 1368 + + "windows_i686_msvc", 1369 + + "windows_x86_64_gnu", 1370 + + "windows_x86_64_msvc", 1371 + +] 1372 + + 1373 + +[[package]] 1374 + +name = "windows_aarch64_msvc" 1375 + +version = "0.36.1" 1376 + +source = "registry+https://github.com/rust-lang/crates.io-index" 1377 + +checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" 1378 + + 1379 + +[[package]] 1380 + +name = "windows_i686_gnu" 1381 + +version = "0.36.1" 1382 + +source = "registry+https://github.com/rust-lang/crates.io-index" 1383 + +checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" 1384 + + 1385 + +[[package]] 1386 + +name = "windows_i686_msvc" 1387 + +version = "0.36.1" 1388 + +source = "registry+https://github.com/rust-lang/crates.io-index" 1389 + +checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" 1390 + + 1391 + +[[package]] 1392 + +name = "windows_x86_64_gnu" 1393 + +version = "0.36.1" 1394 + +source = "registry+https://github.com/rust-lang/crates.io-index" 1395 + +checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" 1396 + + 1397 + +[[package]] 1398 + +name = "windows_x86_64_msvc" 1399 + +version = "0.36.1" 1400 + +source = "registry+https://github.com/rust-lang/crates.io-index" 1401 + +checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" 1402 + + 1403 + [[package]] 1404 + name = "ws2_32-sys" 1405 + version = "0.2.1" 1406 + diff --git a/Cargo.toml b/Cargo.toml 1407 + index 16efef1..e750ee2 100644 1408 + --- a/Cargo.toml 1409 + +++ b/Cargo.toml 1410 + @@ -10,6 +10,6 @@ readme = "README.md" 1411 + [dependencies] 1412 + katex = "0.3.2" 1413 + clap = "2.33.3" 1414 + -mdbook = "0.4.4" 1415 + +mdbook = "0.4.21" 1416 + serde_json = "1.0.59" 1417 + toml = "0.5.7"
+4 -4
pkgs/tools/text/mdbook-man/default.nix
··· 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "mdbook-man"; 5 - version = "unstable-2021-08-26"; 5 + version = "unstable-2022-11-05"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "vv9k"; 9 9 repo = pname; 10 - rev = "419c91db0fcfcce65a6006ed9ec8415a8b705186"; 11 - sha256 = "sha256-NOPyDPQms/YJzjkXjVAFR60gLK4zqOuFSdRvFkZRRxQ="; 10 + rev = "b9537dfbb241d7456835ed7e9d27ab8c8184e5f6"; 11 + hash = "sha256-ssAk60jnwYzAjseL26/3FaDv1vBAylgdE+vLhWZ8It4="; 12 12 }; 13 13 14 - cargoSha256 = "sha256-NyeB2vI9Za5T1SKrjqwTi8LXX7A+M+2r/n1u2qtnK5g="; 14 + cargoHash = "sha256-cR86eFhP9Swh+Ff8FNbAfWpWMkliOAyPwDQ6lRvU+nk="; 15 15 16 16 meta = with lib; { 17 17 description = "Generate manual pages from mdBooks";
+12 -3
pkgs/tools/text/mdbook-mermaid/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }: 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, rustPlatform, CoreServices }: 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "mdbook-mermaid"; ··· 8 8 owner = "badboy"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-zXgXgcMF7MOa9Vx3rhv9aavqRCfMcyRLtaWEvYlyaTs="; 11 + hash = "sha256-zXgXgcMF7MOa9Vx3rhv9aavqRCfMcyRLtaWEvYlyaTs="; 12 12 }; 13 13 14 - cargoSha256 = "sha256-sV/1caeXq/he92cvAajDL7pZJNiXCzf/DDXKnPKU4XQ="; 14 + cargoPatches = [ 15 + # https://github.com/badboy/mdbook-mermaid/pull/23 16 + (fetchpatch { 17 + name = "update-mdbook-for-rust-1.64.patch"; 18 + url = "https://github.com/badboy/mdbook-mermaid/commit/5a3432d1b28ef9a065dd37aa77b82a3593358793.patch"; 19 + hash = "sha256-NkCxGmRdwJ+jdkgxp5gWfGpgpLpEpKUd44LyPx0kyEE="; 20 + }) 21 + ]; 22 + 23 + cargoHash = "sha256-IkMBnBuobrJzR6+030/Wfbu2ZCjvFnjBV+6sSWdiNUw="; 15 24 16 25 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; 17 26
+12 -3
pkgs/tools/text/mdbook-open-on-gh/default.nix
··· 1 - { lib, rustPlatform, fetchFromGitHub }: 1 + { lib, rustPlatform, fetchFromGitHub, fetchpatch }: 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "mdbook-open-on-gh"; ··· 8 8 owner = "badboy"; 9 9 repo = pname; 10 10 rev = "2.2.0"; 11 - sha256 = "sha256-x7ESuXoF5dYnJZpgDyYliVixCG4w/VX/Vhm3VqxsiEI="; 11 + hash = "sha256-x7ESuXoF5dYnJZpgDyYliVixCG4w/VX/Vhm3VqxsiEI="; 12 12 }; 13 13 14 - cargoSha256 = "sha256-FVcCzL0jJ827HHS/9G597QjNFY3HLNYHCPWcepEulD0="; 14 + cargoPatches = [ 15 + # https://github.com/badboy/mdbook-open-on-gh/pull/7 16 + (fetchpatch { 17 + name = "update-mdbook-for-rust-1.64.patch"; 18 + url = "https://github.com/badboy/mdbook-open-on-gh/commit/bd20601bfcec144c9302b1ba1a1aff4b95b334d9.patch"; 19 + hash = "sha256-3Df9Q3sqCpZzqCN9fi+wdeWjLUW4XdywIS3QUjsDE9g="; 20 + }) 21 + ]; 22 + 23 + cargoHash = "sha256-N0RwengTWk4luPIecIxzbFReGi+PtE77FJalPq1CdbA="; 15 24 16 25 meta = with lib; { 17 26 description = "mdbook preprocessor to add a open-on-github link on every page";
+3 -3
pkgs/tools/text/mdbook-pdf/default.nix
··· 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "mdbook-pdf"; 5 - version = "0.1.2"; 5 + version = "0.1.3"; 6 6 7 7 src = fetchCrate { 8 8 inherit pname version; 9 - sha256 = "1ibmn8x9kyfd058hsyah2ggyzpahzf2w2qjn6rs9qv8mr3bvc0pv"; 9 + sha256 = "sha256-zFeEmIv3DIYKmhVYO9cJwRQbSP8yELaJjVjP7hYegco="; 10 10 }; 11 11 12 - cargoSha256 = "0k47a5yqnjjc599vgk39ijy6fm62rr8xarvz37g0c7fx9cljhihz"; 12 + cargoHash = "sha256-pB7NEloeow4TE1Y1EMUZzeCJ/f4DnCS+sQlyN49gqzA="; 13 13 14 14 nativeBuildInputs = [ pkg-config ]; 15 15
+23 -5
pkgs/tools/text/mdbook-plantuml/default.nix
··· 1 - { lib, fetchFromGitHub, stdenv, rustPlatform, darwin, pkg-config, openssl 2 - , libiconv, CoreServices }: 1 + { lib 2 + , fetchFromGitHub 3 + , fetchpatch 4 + , stdenv 5 + , rustPlatform 6 + , darwin 7 + , pkg-config 8 + , openssl 9 + , libiconv 10 + , CoreServices 11 + }: 3 12 4 13 rustPlatform.buildRustPackage rec { 5 14 pname = "mdbook-plantuml"; 6 - version = "0.7.0"; 15 + version = "0.8.0"; 7 16 8 17 src = fetchFromGitHub { 9 18 owner = "sytsereitsma"; 10 19 repo = pname; 11 20 rev = "v${version}"; 12 - sha256 = "1m53sp3k387injn6mwk2c6rkzw16b12m4j7q0p69fdb3fiqbkign"; 21 + hash = "sha256-26epwn6j/ZeMAphiFsrLjS0KIewvElr7V3p/EDr4Uqk="; 13 22 }; 14 23 15 - cargoSha256 = "0xi14k86ym3rfz6901lmj444y814m7vp90bwsyjmcph3hdv6mjp0"; 24 + cargoPatches = [ 25 + # https://github.com/sytsereitsma/mdbook-plantuml/pull/60 26 + (fetchpatch { 27 + name = "update-mdbook-for-rust-1.64.patch"; 28 + url = "https://github.com/sytsereitsma/mdbook-plantuml/commit/a1c7fdaff65fbbcc086006f6d180b27e180739e7.patch"; 29 + hash = "sha256-KXFQxogR6SaoX8snsSYMA8gn1FrQVKMl5l8khxB09WE="; 30 + }) 31 + ]; 32 + 33 + cargoHash = "sha256-3HlnhRexfFcAuk1RoatWORMJvYRrnoEft5ys6j3t9S0="; 16 34 17 35 nativeBuildInputs = [ pkg-config ]; 18 36