Print Markdown to a paper in your terminal

Update structopt

+384 -339
+340 -315
Cargo.lock
··· 2 2 # It is not intended for manual editing. 3 3 [[package]] 4 4 name = "adler32" 5 - version = "1.0.4" 5 + version = "1.2.0" 6 6 source = "registry+https://github.com/rust-lang/crates.io-index" 7 + checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234" 7 8 8 9 [[package]] 9 10 name = "aho-corasick" 10 - version = "0.7.10" 11 + version = "0.7.15" 11 12 source = "registry+https://github.com/rust-lang/crates.io-index" 13 + checksum = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5" 12 14 dependencies = [ 13 - "memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 15 + "memchr", 14 16 ] 15 17 16 18 [[package]] 17 19 name = "ansi_term" 18 20 version = "0.11.0" 19 21 source = "registry+https://github.com/rust-lang/crates.io-index" 22 + checksum = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b" 20 23 dependencies = [ 21 - "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 24 + "winapi", 22 25 ] 23 26 24 27 [[package]] 25 28 name = "ansi_term" 26 29 version = "0.12.1" 27 30 source = "registry+https://github.com/rust-lang/crates.io-index" 31 + checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" 28 32 dependencies = [ 29 - "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 33 + "winapi", 30 34 ] 31 35 32 36 [[package]] 33 37 name = "atty" 34 38 version = "0.2.14" 35 39 source = "registry+https://github.com/rust-lang/crates.io-index" 40 + checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" 36 41 dependencies = [ 37 - "hermit-abi 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 38 - "libc 0.2.68 (registry+https://github.com/rust-lang/crates.io-index)", 39 - "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 42 + "hermit-abi", 43 + "libc", 44 + "winapi", 40 45 ] 41 46 42 47 [[package]] 43 48 name = "autocfg" 44 - version = "1.0.0" 49 + version = "1.0.1" 45 50 source = "registry+https://github.com/rust-lang/crates.io-index" 51 + checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" 46 52 47 53 [[package]] 48 54 name = "bitflags" 49 55 version = "1.2.1" 50 56 source = "registry+https://github.com/rust-lang/crates.io-index" 57 + checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" 51 58 52 59 [[package]] 53 60 name = "byteorder" 54 61 version = "1.3.4" 55 62 source = "registry+https://github.com/rust-lang/crates.io-index" 63 + checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de" 56 64 57 65 [[package]] 58 66 name = "cc" 59 - version = "1.0.50" 67 + version = "1.0.66" 60 68 source = "registry+https://github.com/rust-lang/crates.io-index" 69 + checksum = "4c0496836a84f8d0495758516b8621a622beb77c0fed418570e50764093ced48" 61 70 62 71 [[package]] 63 72 name = "cfg-if" 64 - version = "0.1.10" 73 + version = "1.0.0" 65 74 source = "registry+https://github.com/rust-lang/crates.io-index" 75 + checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 66 76 67 77 [[package]] 68 78 name = "clap" 69 - version = "2.33.0" 79 + version = "2.33.3" 70 80 source = "registry+https://github.com/rust-lang/crates.io-index" 81 + checksum = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002" 71 82 dependencies = [ 72 - "ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", 73 - "atty 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", 74 - "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 75 - "strsim 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 76 - "textwrap 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", 77 - "unicode-width 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 78 - "vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", 83 + "ansi_term 0.11.0", 84 + "atty", 85 + "bitflags", 86 + "strsim", 87 + "textwrap", 88 + "unicode-width", 89 + "vec_map", 79 90 ] 80 91 81 92 [[package]] 82 93 name = "clicolors-control" 83 94 version = "1.0.1" 84 95 source = "registry+https://github.com/rust-lang/crates.io-index" 96 + checksum = "90082ee5dcdd64dc4e9e0d37fbf3ee325419e39c0092191e0393df65518f741e" 85 97 dependencies = [ 86 - "atty 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", 87 - "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 88 - "libc 0.2.68 (registry+https://github.com/rust-lang/crates.io-index)", 89 - "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 90 - ] 91 - 92 - [[package]] 93 - name = "cloudabi" 94 - version = "0.0.3" 95 - source = "registry+https://github.com/rust-lang/crates.io-index" 96 - dependencies = [ 97 - "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 98 + "atty", 99 + "lazy_static", 100 + "libc", 101 + "winapi", 98 102 ] 99 103 100 104 [[package]] 101 105 name = "color_quant" 102 - version = "1.0.1" 106 + version = "1.1.0" 103 107 source = "registry+https://github.com/rust-lang/crates.io-index" 108 + checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" 104 109 105 110 [[package]] 106 111 name = "console" 107 112 version = "0.7.7" 108 113 source = "registry+https://github.com/rust-lang/crates.io-index" 114 + checksum = "8ca57c2c14b8a2bf3105bc9d15574aad80babf6a9c44b1058034cdf8bd169628" 109 115 dependencies = [ 110 - "atty 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", 111 - "clicolors-control 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 112 - "encode_unicode 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 113 - "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 114 - "libc 0.2.68 (registry+https://github.com/rust-lang/crates.io-index)", 115 - "parking_lot 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", 116 - "regex 1.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 117 - "termios 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 118 - "unicode-width 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 119 - "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 116 + "atty", 117 + "clicolors-control", 118 + "encode_unicode", 119 + "lazy_static", 120 + "libc", 121 + "parking_lot", 122 + "regex", 123 + "termios", 124 + "unicode-width", 125 + "winapi", 120 126 ] 121 127 122 128 [[package]] 123 - name = "crossbeam-deque" 124 - version = "0.7.3" 129 + name = "const_fn" 130 + version = "0.4.3" 131 + source = "registry+https://github.com/rust-lang/crates.io-index" 132 + checksum = "c478836e029dcef17fb47c89023448c64f781a046e0300e257ad8225ae59afab" 133 + 134 + [[package]] 135 + name = "crossbeam-channel" 136 + version = "0.5.0" 125 137 source = "registry+https://github.com/rust-lang/crates.io-index" 138 + checksum = "dca26ee1f8d361640700bde38b2c37d8c22b3ce2d360e1fc1c74ea4b0aa7d775" 126 139 dependencies = [ 127 - "crossbeam-epoch 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", 128 - "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", 129 - "maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 140 + "cfg-if", 141 + "crossbeam-utils", 130 142 ] 131 143 132 144 [[package]] 133 - name = "crossbeam-epoch" 134 - version = "0.8.2" 145 + name = "crossbeam-deque" 146 + version = "0.8.0" 135 147 source = "registry+https://github.com/rust-lang/crates.io-index" 148 + checksum = "94af6efb46fef72616855b036a624cf27ba656ffc9be1b9a3c931cfc7749a9a9" 136 149 dependencies = [ 137 - "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 138 - "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 139 - "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", 140 - "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 141 - "maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 142 - "memoffset 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)", 143 - "scopeguard 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 150 + "cfg-if", 151 + "crossbeam-epoch", 152 + "crossbeam-utils", 144 153 ] 145 154 146 155 [[package]] 147 - name = "crossbeam-queue" 148 - version = "0.2.1" 156 + name = "crossbeam-epoch" 157 + version = "0.9.1" 149 158 source = "registry+https://github.com/rust-lang/crates.io-index" 159 + checksum = "a1aaa739f95311c2c7887a76863f500026092fb1dce0161dab577e559ef3569d" 150 160 dependencies = [ 151 - "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 152 - "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", 161 + "cfg-if", 162 + "const_fn", 163 + "crossbeam-utils", 164 + "lazy_static", 165 + "memoffset", 166 + "scopeguard", 153 167 ] 154 168 155 169 [[package]] 156 170 name = "crossbeam-utils" 157 - version = "0.7.2" 171 + version = "0.8.1" 158 172 source = "registry+https://github.com/rust-lang/crates.io-index" 173 + checksum = "02d96d1e189ef58269ebe5b97953da3274d83a93af647c2ddd6f9dab28cedb8d" 159 174 dependencies = [ 160 - "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 161 - "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 162 - "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 175 + "autocfg", 176 + "cfg-if", 177 + "lazy_static", 163 178 ] 164 179 165 180 [[package]] 166 181 name = "deflate" 167 182 version = "0.7.20" 168 183 source = "registry+https://github.com/rust-lang/crates.io-index" 184 + checksum = "707b6a7b384888a70c8d2e8650b3e60170dfc6a67bb4aa67b6dfca57af4bedb4" 169 185 dependencies = [ 170 - "adler32 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", 171 - "byteorder 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 186 + "adler32", 187 + "byteorder", 172 188 ] 173 189 174 190 [[package]] 175 191 name = "directories" 176 192 version = "1.0.2" 177 193 source = "registry+https://github.com/rust-lang/crates.io-index" 194 + checksum = "72d337a64190607d4fcca2cb78982c5dd57f4916e19696b48a575fa746b6cb0f" 178 195 dependencies = [ 179 - "libc 0.2.68 (registry+https://github.com/rust-lang/crates.io-index)", 180 - "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 196 + "libc", 197 + "winapi", 181 198 ] 182 199 183 200 [[package]] 184 201 name = "either" 185 - version = "1.5.3" 202 + version = "1.6.1" 186 203 source = "registry+https://github.com/rust-lang/crates.io-index" 204 + checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" 187 205 188 206 [[package]] 189 207 name = "encode_unicode" 190 208 version = "0.3.6" 191 209 source = "registry+https://github.com/rust-lang/crates.io-index" 210 + checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" 192 211 193 212 [[package]] 194 213 name = "enquote" 195 214 version = "1.0.3" 196 215 source = "registry+https://github.com/rust-lang/crates.io-index" 216 + checksum = "2ec878a5d2f3b6e9eaee72373dd23414cfc7d353104741471bec712ef241a66e" 197 217 198 218 [[package]] 199 219 name = "getopts" 200 220 version = "0.2.21" 201 221 source = "registry+https://github.com/rust-lang/crates.io-index" 222 + checksum = "14dbbfd5c71d70241ecf9e6f13737f7b5ce823821063188d7e46c41d371eebd5" 202 223 dependencies = [ 203 - "unicode-width 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 224 + "unicode-width", 204 225 ] 205 226 206 227 [[package]] 207 228 name = "gif" 208 229 version = "0.10.3" 209 230 source = "registry+https://github.com/rust-lang/crates.io-index" 231 + checksum = "471d90201b3b223f3451cd4ad53e34295f16a1df17b1edf3736d47761c3981af" 210 232 dependencies = [ 211 - "color_quant 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 212 - "lzw 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", 233 + "color_quant", 234 + "lzw", 213 235 ] 214 236 215 237 [[package]] 216 238 name = "heck" 217 239 version = "0.3.1" 218 240 source = "registry+https://github.com/rust-lang/crates.io-index" 241 + checksum = "20564e78d53d2bb135c343b3f47714a56af2061f1c928fdb541dc7b9fdd94205" 219 242 dependencies = [ 220 - "unicode-segmentation 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)", 243 + "unicode-segmentation", 221 244 ] 222 245 223 246 [[package]] 224 247 name = "hermit-abi" 225 - version = "0.1.10" 248 + version = "0.1.17" 226 249 source = "registry+https://github.com/rust-lang/crates.io-index" 250 + checksum = "5aca5565f760fb5b220e499d72710ed156fdb74e631659e99377d9ebfbd13ae8" 227 251 dependencies = [ 228 - "libc 0.2.68 (registry+https://github.com/rust-lang/crates.io-index)", 252 + "libc", 229 253 ] 230 254 231 255 [[package]] 232 256 name = "hex" 233 257 version = "0.4.2" 234 258 source = "registry+https://github.com/rust-lang/crates.io-index" 259 + checksum = "644f9158b2f133fd50f5fb3242878846d9eb792e445c893805ff0e3824006e35" 235 260 236 261 [[package]] 237 262 name = "image" 238 263 version = "0.21.3" 239 264 source = "registry+https://github.com/rust-lang/crates.io-index" 265 + checksum = "35371e467cd7b0b3d1d6013d619203658467df12d61b0ca43cd67b743b1965eb" 240 266 dependencies = [ 241 - "byteorder 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 242 - "gif 0.10.3 (registry+https://github.com/rust-lang/crates.io-index)", 243 - "jpeg-decoder 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", 244 - "lzw 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", 245 - "num-iter 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)", 246 - "num-rational 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 247 - "num-traits 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 248 - "png 0.14.1 (registry+https://github.com/rust-lang/crates.io-index)", 249 - "scoped_threadpool 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 250 - "tiff 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 267 + "byteorder", 268 + "gif", 269 + "jpeg-decoder", 270 + "lzw", 271 + "num-iter", 272 + "num-rational", 273 + "num-traits", 274 + "png", 275 + "scoped_threadpool", 276 + "tiff", 251 277 ] 252 278 253 279 [[package]] 254 280 name = "inflate" 255 281 version = "0.4.5" 256 282 source = "registry+https://github.com/rust-lang/crates.io-index" 283 + checksum = "1cdb29978cc5797bd8dcc8e5bf7de604891df2a8dc576973d71a281e916db2ff" 257 284 dependencies = [ 258 - "adler32 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", 285 + "adler32", 286 + ] 287 + 288 + [[package]] 289 + name = "instant" 290 + version = "0.1.9" 291 + source = "registry+https://github.com/rust-lang/crates.io-index" 292 + checksum = "61124eeebbd69b8190558df225adf7e4caafce0d743919e5d6b19652314ec5ec" 293 + dependencies = [ 294 + "cfg-if", 259 295 ] 260 296 261 297 [[package]] 262 298 name = "itoa" 263 - version = "0.4.5" 299 + version = "0.4.6" 264 300 source = "registry+https://github.com/rust-lang/crates.io-index" 301 + checksum = "dc6f3ad7b9d11a0c00842ff8de1b60ee58661048eb8049ed33c73594f359d7e6" 265 302 266 303 [[package]] 267 304 name = "jpeg-decoder" 268 - version = "0.1.18" 305 + version = "0.1.20" 269 306 source = "registry+https://github.com/rust-lang/crates.io-index" 307 + checksum = "cc797adac5f083b8ff0ca6f6294a999393d76e197c36488e2ef732c4715f6fa3" 270 308 dependencies = [ 271 - "byteorder 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 272 - "rayon 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 309 + "byteorder", 310 + "rayon", 273 311 ] 274 312 275 313 [[package]] 276 314 name = "lazy_static" 277 315 version = "1.4.0" 278 316 source = "registry+https://github.com/rust-lang/crates.io-index" 317 + checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" 279 318 280 319 [[package]] 281 320 name = "libc" 282 - version = "0.2.68" 321 + version = "0.2.80" 283 322 source = "registry+https://github.com/rust-lang/crates.io-index" 323 + checksum = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614" 284 324 285 325 [[package]] 286 326 name = "lock_api" 287 - version = "0.3.3" 327 + version = "0.4.2" 288 328 source = "registry+https://github.com/rust-lang/crates.io-index" 329 + checksum = "dd96ffd135b2fd7b973ac026d28085defbe8983df057ced3eb4f2130b0831312" 289 330 dependencies = [ 290 - "scopeguard 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 331 + "scopeguard", 291 332 ] 292 333 293 334 [[package]] 294 335 name = "lzw" 295 336 version = "0.10.0" 296 337 source = "registry+https://github.com/rust-lang/crates.io-index" 297 - 298 - [[package]] 299 - name = "maybe-uninit" 300 - version = "2.0.0" 301 - source = "registry+https://github.com/rust-lang/crates.io-index" 338 + checksum = "7d947cbb889ed21c2a84be6ffbaebf5b4e0f4340638cba0444907e38b56be084" 302 339 303 340 [[package]] 304 341 name = "memchr" 305 - version = "2.3.3" 342 + version = "2.3.4" 306 343 source = "registry+https://github.com/rust-lang/crates.io-index" 344 + checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" 307 345 308 346 [[package]] 309 347 name = "memoffset" 310 - version = "0.5.4" 348 + version = "0.6.1" 311 349 source = "registry+https://github.com/rust-lang/crates.io-index" 350 + checksum = "157b4208e3059a8f9e78d559edc658e13df41410cb3ae03979c83130067fdd87" 312 351 dependencies = [ 313 - "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 352 + "autocfg", 314 353 ] 315 354 316 355 [[package]] 317 356 name = "num-derive" 318 357 version = "0.2.5" 319 358 source = "registry+https://github.com/rust-lang/crates.io-index" 359 + checksum = "eafd0b45c5537c3ba526f79d3e75120036502bebacbb3f3220914067ce39dbf2" 320 360 dependencies = [ 321 - "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 322 - "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 323 - "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)", 361 + "proc-macro2 0.4.30", 362 + "quote 0.6.13", 363 + "syn 0.15.44", 324 364 ] 325 365 326 366 [[package]] 327 367 name = "num-integer" 328 - version = "0.1.42" 368 + version = "0.1.44" 329 369 source = "registry+https://github.com/rust-lang/crates.io-index" 370 + checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db" 330 371 dependencies = [ 331 - "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 332 - "num-traits 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 372 + "autocfg", 373 + "num-traits", 333 374 ] 334 375 335 376 [[package]] 336 377 name = "num-iter" 337 - version = "0.1.40" 378 + version = "0.1.42" 338 379 source = "registry+https://github.com/rust-lang/crates.io-index" 380 + checksum = "b2021c8337a54d21aca0d59a92577a029af9431cb59b909b03252b9c164fad59" 339 381 dependencies = [ 340 - "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 341 - "num-integer 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)", 342 - "num-traits 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 382 + "autocfg", 383 + "num-integer", 384 + "num-traits", 343 385 ] 344 386 345 387 [[package]] 346 388 name = "num-rational" 347 389 version = "0.2.4" 348 390 source = "registry+https://github.com/rust-lang/crates.io-index" 391 + checksum = "5c000134b5dbf44adc5cb772486d335293351644b801551abe8f75c84cfa4aef" 349 392 dependencies = [ 350 - "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 351 - "num-integer 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)", 352 - "num-traits 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 393 + "autocfg", 394 + "num-integer", 395 + "num-traits", 353 396 ] 354 397 355 398 [[package]] 356 399 name = "num-traits" 357 - version = "0.2.11" 400 + version = "0.2.14" 358 401 source = "registry+https://github.com/rust-lang/crates.io-index" 402 + checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290" 359 403 dependencies = [ 360 - "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 404 + "autocfg", 361 405 ] 362 406 363 407 [[package]] 364 408 name = "num_cpus" 365 - version = "1.12.0" 409 + version = "1.13.0" 366 410 source = "registry+https://github.com/rust-lang/crates.io-index" 411 + checksum = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3" 367 412 dependencies = [ 368 - "hermit-abi 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 369 - "libc 0.2.68 (registry+https://github.com/rust-lang/crates.io-index)", 413 + "hermit-abi", 414 + "libc", 370 415 ] 371 416 372 417 [[package]] 373 418 name = "paper-terminal" 374 419 version = "2.0.1" 375 420 dependencies = [ 376 - "ansi_term 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)", 377 - "console 0.7.7 (registry+https://github.com/rust-lang/crates.io-index)", 378 - "directories 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 379 - "image 0.21.3 (registry+https://github.com/rust-lang/crates.io-index)", 380 - "pulldown-cmark 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 381 - "structopt 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)", 382 - "syncat-stylesheet 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 383 - "terminal_size 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 421 + "ansi_term 0.12.1", 422 + "console", 423 + "directories", 424 + "image", 425 + "pulldown-cmark", 426 + "structopt", 427 + "syncat-stylesheet", 428 + "terminal_size", 384 429 ] 385 430 386 431 [[package]] 387 432 name = "parking_lot" 388 - version = "0.10.0" 433 + version = "0.11.1" 389 434 source = "registry+https://github.com/rust-lang/crates.io-index" 435 + checksum = "6d7744ac029df22dca6284efe4e898991d28e3085c706c972bcd7da4a27a15eb" 390 436 dependencies = [ 391 - "lock_api 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 392 - "parking_lot_core 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 437 + "instant", 438 + "lock_api", 439 + "parking_lot_core", 393 440 ] 394 441 395 442 [[package]] 396 443 name = "parking_lot_core" 397 - version = "0.7.0" 444 + version = "0.8.1" 398 445 source = "registry+https://github.com/rust-lang/crates.io-index" 446 + checksum = "d7c6d9b8427445284a09c55be860a15855ab580a417ccad9da88f5a06787ced0" 399 447 dependencies = [ 400 - "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 401 - "cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)", 402 - "libc 0.2.68 (registry+https://github.com/rust-lang/crates.io-index)", 403 - "redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)", 404 - "smallvec 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 405 - "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 448 + "cfg-if", 449 + "instant", 450 + "libc", 451 + "redox_syscall", 452 + "smallvec", 453 + "winapi", 406 454 ] 407 455 408 456 [[package]] 409 457 name = "png" 410 458 version = "0.14.1" 411 459 source = "registry+https://github.com/rust-lang/crates.io-index" 460 + checksum = "63daf481fdd0defa2d1d2be15c674fbfa1b0fd71882c303a91f9a79b3252c359" 412 461 dependencies = [ 413 - "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 414 - "deflate 0.7.20 (registry+https://github.com/rust-lang/crates.io-index)", 415 - "inflate 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", 416 - "num-iter 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)", 462 + "bitflags", 463 + "deflate", 464 + "inflate", 465 + "num-iter", 466 + ] 467 + 468 + [[package]] 469 + name = "proc-macro-error" 470 + version = "1.0.4" 471 + source = "registry+https://github.com/rust-lang/crates.io-index" 472 + checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" 473 + dependencies = [ 474 + "proc-macro-error-attr", 475 + "proc-macro2 1.0.24", 476 + "quote 1.0.7", 477 + "syn 1.0.53", 478 + "version_check", 479 + ] 480 + 481 + [[package]] 482 + name = "proc-macro-error-attr" 483 + version = "1.0.4" 484 + source = "registry+https://github.com/rust-lang/crates.io-index" 485 + checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" 486 + dependencies = [ 487 + "proc-macro2 1.0.24", 488 + "quote 1.0.7", 489 + "version_check", 417 490 ] 418 491 419 492 [[package]] 420 493 name = "proc-macro2" 421 494 version = "0.4.30" 422 495 source = "registry+https://github.com/rust-lang/crates.io-index" 496 + checksum = "cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759" 423 497 dependencies = [ 424 - "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 498 + "unicode-xid 0.1.0", 425 499 ] 426 500 427 501 [[package]] 428 502 name = "proc-macro2" 429 - version = "1.0.10" 503 + version = "1.0.24" 430 504 source = "registry+https://github.com/rust-lang/crates.io-index" 505 + checksum = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71" 431 506 dependencies = [ 432 - "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 507 + "unicode-xid 0.2.1", 433 508 ] 434 509 435 510 [[package]] 436 511 name = "pulldown-cmark" 437 512 version = "0.4.1" 438 513 source = "registry+https://github.com/rust-lang/crates.io-index" 514 + checksum = "d1b74cc784b038a9921fd1a48310cc2e238101aa8ae0b94201e2d85121dd68b5" 439 515 dependencies = [ 440 - "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 441 - "getopts 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)", 442 - "memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 443 - "unicase 2.6.0 (registry+https://github.com/rust-lang/crates.io-index)", 516 + "bitflags", 517 + "getopts", 518 + "memchr", 519 + "unicase", 444 520 ] 445 521 446 522 [[package]] 447 523 name = "quote" 448 524 version = "0.6.13" 449 525 source = "registry+https://github.com/rust-lang/crates.io-index" 526 + checksum = "6ce23b6b870e8f94f81fb0a363d65d86675884b34a09043c81e5562f11c1f8e1" 450 527 dependencies = [ 451 - "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 528 + "proc-macro2 0.4.30", 452 529 ] 453 530 454 531 [[package]] 455 532 name = "quote" 456 - version = "1.0.3" 533 + version = "1.0.7" 457 534 source = "registry+https://github.com/rust-lang/crates.io-index" 535 + checksum = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37" 458 536 dependencies = [ 459 - "proc-macro2 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)", 537 + "proc-macro2 1.0.24", 460 538 ] 461 539 462 540 [[package]] 463 541 name = "rayon" 464 - version = "1.3.0" 542 + version = "1.5.0" 465 543 source = "registry+https://github.com/rust-lang/crates.io-index" 544 + checksum = "8b0d8e0819fadc20c74ea8373106ead0600e3a67ef1fe8da56e39b9ae7275674" 466 545 dependencies = [ 467 - "crossbeam-deque 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)", 468 - "either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)", 469 - "rayon-core 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 546 + "autocfg", 547 + "crossbeam-deque", 548 + "either", 549 + "rayon-core", 470 550 ] 471 551 472 552 [[package]] 473 553 name = "rayon-core" 474 - version = "1.7.0" 554 + version = "1.9.0" 475 555 source = "registry+https://github.com/rust-lang/crates.io-index" 556 + checksum = "9ab346ac5921dc62ffa9f89b7a773907511cdfa5490c572ae9be1be33e8afa4a" 476 557 dependencies = [ 477 - "crossbeam-deque 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)", 478 - "crossbeam-queue 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 479 - "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", 480 - "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 481 - "num_cpus 1.12.0 (registry+https://github.com/rust-lang/crates.io-index)", 558 + "crossbeam-channel", 559 + "crossbeam-deque", 560 + "crossbeam-utils", 561 + "lazy_static", 562 + "num_cpus", 482 563 ] 483 564 484 565 [[package]] 485 566 name = "redox_syscall" 486 - version = "0.1.56" 567 + version = "0.1.57" 487 568 source = "registry+https://github.com/rust-lang/crates.io-index" 569 + checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" 488 570 489 571 [[package]] 490 572 name = "regex" 491 - version = "1.3.6" 573 + version = "1.4.2" 492 574 source = "registry+https://github.com/rust-lang/crates.io-index" 575 + checksum = "38cf2c13ed4745de91a5eb834e11c00bcc3709e773173b2ce4c56c9fbde04b9c" 493 576 dependencies = [ 494 - "aho-corasick 0.7.10 (registry+https://github.com/rust-lang/crates.io-index)", 495 - "memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 496 - "regex-syntax 0.6.17 (registry+https://github.com/rust-lang/crates.io-index)", 497 - "thread_local 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 577 + "aho-corasick", 578 + "memchr", 579 + "regex-syntax", 580 + "thread_local", 498 581 ] 499 582 500 583 [[package]] 501 584 name = "regex-syntax" 502 - version = "0.6.17" 585 + version = "0.6.21" 503 586 source = "registry+https://github.com/rust-lang/crates.io-index" 587 + checksum = "3b181ba2dcf07aaccad5448e8ead58db5b742cf85dfe035e2227f137a539a189" 504 588 505 589 [[package]] 506 590 name = "ryu" 507 - version = "1.0.3" 591 + version = "1.0.5" 508 592 source = "registry+https://github.com/rust-lang/crates.io-index" 593 + checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e" 509 594 510 595 [[package]] 511 596 name = "scoped_threadpool" 512 597 version = "0.1.9" 513 598 source = "registry+https://github.com/rust-lang/crates.io-index" 599 + checksum = "1d51f5df5af43ab3f1360b429fa5e0152ac5ce8c0bd6485cae490332e96846a8" 514 600 515 601 [[package]] 516 602 name = "scopeguard" 517 603 version = "1.1.0" 518 604 source = "registry+https://github.com/rust-lang/crates.io-index" 605 + checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 519 606 520 607 [[package]] 521 608 name = "serde" 522 - version = "1.0.106" 609 + version = "1.0.117" 523 610 source = "registry+https://github.com/rust-lang/crates.io-index" 611 + checksum = "b88fa983de7720629c9387e9f517353ed404164b1e482c970a90c1a4aaf7dc1a" 524 612 525 613 [[package]] 526 614 name = "serde_derive" 527 - version = "1.0.106" 615 + version = "1.0.117" 528 616 source = "registry+https://github.com/rust-lang/crates.io-index" 617 + checksum = "cbd1ae72adb44aab48f325a02444a5fc079349a8d804c1fc922aed3f7454c74e" 529 618 dependencies = [ 530 - "proc-macro2 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)", 531 - "quote 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", 532 - "syn 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)", 619 + "proc-macro2 1.0.24", 620 + "quote 1.0.7", 621 + "syn 1.0.53", 533 622 ] 534 623 535 624 [[package]] 536 625 name = "serde_json" 537 - version = "1.0.50" 626 + version = "1.0.60" 538 627 source = "registry+https://github.com/rust-lang/crates.io-index" 628 + checksum = "1500e84d27fe482ed1dc791a56eddc2f230046a040fa908c08bda1d9fb615779" 539 629 dependencies = [ 540 - "itoa 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", 541 - "ryu 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", 542 - "serde 1.0.106 (registry+https://github.com/rust-lang/crates.io-index)", 630 + "itoa", 631 + "ryu", 632 + "serde", 543 633 ] 544 634 545 635 [[package]] 546 636 name = "smallvec" 547 - version = "1.2.0" 637 + version = "1.5.1" 548 638 source = "registry+https://github.com/rust-lang/crates.io-index" 639 + checksum = "ae524f056d7d770e174287294f562e95044c68e88dec909a00d2094805db9d75" 549 640 550 641 [[package]] 551 642 name = "strsim" 552 643 version = "0.8.0" 553 644 source = "registry+https://github.com/rust-lang/crates.io-index" 645 + checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" 554 646 555 647 [[package]] 556 648 name = "structopt" 557 - version = "0.2.18" 649 + version = "0.3.21" 558 650 source = "registry+https://github.com/rust-lang/crates.io-index" 651 + checksum = "5277acd7ee46e63e5168a80734c9f6ee81b1367a7d8772a2d765df2a3705d28c" 559 652 dependencies = [ 560 - "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", 561 - "structopt-derive 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)", 653 + "clap", 654 + "lazy_static", 655 + "structopt-derive", 562 656 ] 563 657 564 658 [[package]] 565 659 name = "structopt-derive" 566 - version = "0.2.18" 660 + version = "0.4.14" 567 661 source = "registry+https://github.com/rust-lang/crates.io-index" 662 + checksum = "5ba9cdfda491b814720b6b06e0cac513d922fc407582032e8706e9f137976f90" 568 663 dependencies = [ 569 - "heck 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 570 - "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 571 - "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 572 - "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)", 664 + "heck", 665 + "proc-macro-error", 666 + "proc-macro2 1.0.24", 667 + "quote 1.0.7", 668 + "syn 1.0.53", 573 669 ] 574 670 575 671 [[package]] 576 672 name = "syn" 577 673 version = "0.15.44" 578 674 source = "registry+https://github.com/rust-lang/crates.io-index" 675 + checksum = "9ca4b3b69a77cbe1ffc9e198781b7acb0c7365a883670e8f1c1bc66fba79a5c5" 579 676 dependencies = [ 580 - "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 581 - "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 582 - "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 677 + "proc-macro2 0.4.30", 678 + "quote 0.6.13", 679 + "unicode-xid 0.1.0", 583 680 ] 584 681 585 682 [[package]] 586 683 name = "syn" 587 - version = "1.0.17" 684 + version = "1.0.53" 588 685 source = "registry+https://github.com/rust-lang/crates.io-index" 686 + checksum = "8833e20724c24de12bbaba5ad230ea61c3eafb05b881c7c9d3cfe8638b187e68" 589 687 dependencies = [ 590 - "proc-macro2 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)", 591 - "quote 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", 592 - "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 688 + "proc-macro2 1.0.24", 689 + "quote 1.0.7", 690 + "unicode-xid 0.2.1", 593 691 ] 594 692 595 693 [[package]] 596 694 name = "syncat-stylesheet" 597 695 version = "2.2.0" 598 696 source = "registry+https://github.com/rust-lang/crates.io-index" 697 + checksum = "d58d4411972200fcd5277e93f359573f19c3688ccf39073d5cc4ebdb46240ac0" 599 698 dependencies = [ 600 - "ansi_term 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)", 601 - "cc 1.0.50 (registry+https://github.com/rust-lang/crates.io-index)", 602 - "enquote 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", 603 - "hex 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 604 - "regex 1.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 605 - "tree-sitter 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)", 699 + "ansi_term 0.12.1", 700 + "cc", 701 + "enquote", 702 + "hex", 703 + "regex", 704 + "tree-sitter", 606 705 ] 607 706 608 707 [[package]] 609 708 name = "terminal_size" 610 - version = "0.1.11" 709 + version = "0.1.15" 611 710 source = "registry+https://github.com/rust-lang/crates.io-index" 711 + checksum = "4bd2d183bd3fac5f5fe38ddbeb4dc9aec4a39a9d7d59e7491d900302da01cbe1" 612 712 dependencies = [ 613 - "libc 0.2.68 (registry+https://github.com/rust-lang/crates.io-index)", 614 - "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 713 + "libc", 714 + "winapi", 615 715 ] 616 716 617 717 [[package]] 618 718 name = "termios" 619 - version = "0.3.1" 719 + version = "0.3.3" 620 720 source = "registry+https://github.com/rust-lang/crates.io-index" 721 + checksum = "411c5bf740737c7918b8b1fe232dca4dc9f8e754b8ad5e20966814001ed0ac6b" 621 722 dependencies = [ 622 - "libc 0.2.68 (registry+https://github.com/rust-lang/crates.io-index)", 723 + "libc", 623 724 ] 624 725 625 726 [[package]] 626 727 name = "textwrap" 627 728 version = "0.11.0" 628 729 source = "registry+https://github.com/rust-lang/crates.io-index" 730 + checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" 629 731 dependencies = [ 630 - "unicode-width 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 732 + "unicode-width", 631 733 ] 632 734 633 735 [[package]] 634 736 name = "thread_local" 635 737 version = "1.0.1" 636 738 source = "registry+https://github.com/rust-lang/crates.io-index" 739 + checksum = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14" 637 740 dependencies = [ 638 - "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 741 + "lazy_static", 639 742 ] 640 743 641 744 [[package]] 642 745 name = "tiff" 643 746 version = "0.2.2" 644 747 source = "registry+https://github.com/rust-lang/crates.io-index" 748 + checksum = "1e4834f28a0330cb9f3f2c87d2649dca723cb33802e2bdcf18da32759fbec7ce" 645 749 dependencies = [ 646 - "byteorder 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 647 - "lzw 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", 648 - "num-derive 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 649 - "num-traits 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 750 + "byteorder", 751 + "lzw", 752 + "num-derive", 753 + "num-traits", 650 754 ] 651 755 652 756 [[package]] 653 757 name = "tree-sitter" 654 758 version = "0.6.3" 655 759 source = "registry+https://github.com/rust-lang/crates.io-index" 760 + checksum = "376e181cb69da67bad2d69806cf2500656fd68123c526a61e5cbbfc65110c5b0" 656 761 dependencies = [ 657 - "cc 1.0.50 (registry+https://github.com/rust-lang/crates.io-index)", 658 - "regex 1.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 659 - "serde 1.0.106 (registry+https://github.com/rust-lang/crates.io-index)", 660 - "serde_derive 1.0.106 (registry+https://github.com/rust-lang/crates.io-index)", 661 - "serde_json 1.0.50 (registry+https://github.com/rust-lang/crates.io-index)", 762 + "cc", 763 + "regex", 764 + "serde", 765 + "serde_derive", 766 + "serde_json", 662 767 ] 663 768 664 769 [[package]] 665 770 name = "unicase" 666 771 version = "2.6.0" 667 772 source = "registry+https://github.com/rust-lang/crates.io-index" 773 + checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6" 668 774 dependencies = [ 669 - "version_check 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)", 775 + "version_check", 670 776 ] 671 777 672 778 [[package]] 673 779 name = "unicode-segmentation" 674 - version = "1.6.0" 780 + version = "1.7.1" 675 781 source = "registry+https://github.com/rust-lang/crates.io-index" 782 + checksum = "bb0d2e7be6ae3a5fa87eed5fb451aff96f2573d2694942e40543ae0bbe19c796" 676 783 677 784 [[package]] 678 785 name = "unicode-width" 679 - version = "0.1.7" 786 + version = "0.1.8" 680 787 source = "registry+https://github.com/rust-lang/crates.io-index" 788 + checksum = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3" 681 789 682 790 [[package]] 683 791 name = "unicode-xid" 684 792 version = "0.1.0" 685 793 source = "registry+https://github.com/rust-lang/crates.io-index" 794 + checksum = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" 686 795 687 796 [[package]] 688 797 name = "unicode-xid" 689 - version = "0.2.0" 798 + version = "0.2.1" 690 799 source = "registry+https://github.com/rust-lang/crates.io-index" 800 + checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" 691 801 692 802 [[package]] 693 803 name = "vec_map" 694 - version = "0.8.1" 804 + version = "0.8.2" 695 805 source = "registry+https://github.com/rust-lang/crates.io-index" 806 + checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" 696 807 697 808 [[package]] 698 809 name = "version_check" 699 - version = "0.9.1" 810 + version = "0.9.2" 700 811 source = "registry+https://github.com/rust-lang/crates.io-index" 812 + checksum = "b5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aed" 701 813 702 814 [[package]] 703 815 name = "winapi" 704 - version = "0.3.8" 816 + version = "0.3.9" 705 817 source = "registry+https://github.com/rust-lang/crates.io-index" 818 + checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 706 819 dependencies = [ 707 - "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 708 - "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 820 + "winapi-i686-pc-windows-gnu", 821 + "winapi-x86_64-pc-windows-gnu", 709 822 ] 710 823 711 824 [[package]] 712 825 name = "winapi-i686-pc-windows-gnu" 713 826 version = "0.4.0" 714 827 source = "registry+https://github.com/rust-lang/crates.io-index" 828 + checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 715 829 716 830 [[package]] 717 831 name = "winapi-x86_64-pc-windows-gnu" 718 832 version = "0.4.0" 719 833 source = "registry+https://github.com/rust-lang/crates.io-index" 720 - 721 - [metadata] 722 - "checksum adler32 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "5d2e7343e7fc9de883d1b0341e0b13970f764c14101234857d2ddafa1cb1cac2" 723 - "checksum aho-corasick 0.7.10 (registry+https://github.com/rust-lang/crates.io-index)" = "8716408b8bc624ed7f65d223ddb9ac2d044c0547b6fa4b0d554f3a9540496ada" 724 - "checksum ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b" 725 - "checksum ansi_term 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" 726 - "checksum atty 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)" = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" 727 - "checksum autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f8aac770f1885fd7e387acedd76065302551364496e46b3dd00860b2f8359b9d" 728 - "checksum bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" 729 - "checksum byteorder 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de" 730 - "checksum cc 1.0.50 (registry+https://github.com/rust-lang/crates.io-index)" = "95e28fa049fda1c330bcf9d723be7663a899c4679724b34c81e9f5a326aab8cd" 731 - "checksum cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" 732 - "checksum clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5067f5bb2d80ef5d68b4c87db81601f0b75bca627bc2ef76b141d7b846a3c6d9" 733 - "checksum clicolors-control 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "90082ee5dcdd64dc4e9e0d37fbf3ee325419e39c0092191e0393df65518f741e" 734 - "checksum cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" 735 - "checksum color_quant 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0dbbb57365263e881e805dc77d94697c9118fd94d8da011240555aa7b23445bd" 736 - "checksum console 0.7.7 (registry+https://github.com/rust-lang/crates.io-index)" = "8ca57c2c14b8a2bf3105bc9d15574aad80babf6a9c44b1058034cdf8bd169628" 737 - "checksum crossbeam-deque 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)" = "9f02af974daeee82218205558e51ec8768b48cf524bd01d550abe5573a608285" 738 - "checksum crossbeam-epoch 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)" = "058ed274caafc1f60c4997b5fc07bf7dc7cca454af7c6e81edffe5f33f70dace" 739 - "checksum crossbeam-queue 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c695eeca1e7173472a32221542ae469b3e9aac3a4fc81f7696bcad82029493db" 740 - "checksum crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8" 741 - "checksum deflate 0.7.20 (registry+https://github.com/rust-lang/crates.io-index)" = "707b6a7b384888a70c8d2e8650b3e60170dfc6a67bb4aa67b6dfca57af4bedb4" 742 - "checksum directories 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "72d337a64190607d4fcca2cb78982c5dd57f4916e19696b48a575fa746b6cb0f" 743 - "checksum either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "bb1f6b1ce1c140482ea30ddd3335fc0024ac7ee112895426e0a629a6c20adfe3" 744 - "checksum encode_unicode 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" 745 - "checksum enquote 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2ec878a5d2f3b6e9eaee72373dd23414cfc7d353104741471bec712ef241a66e" 746 - "checksum getopts 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)" = "14dbbfd5c71d70241ecf9e6f13737f7b5ce823821063188d7e46c41d371eebd5" 747 - "checksum gif 0.10.3 (registry+https://github.com/rust-lang/crates.io-index)" = "471d90201b3b223f3451cd4ad53e34295f16a1df17b1edf3736d47761c3981af" 748 - "checksum heck 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "20564e78d53d2bb135c343b3f47714a56af2061f1c928fdb541dc7b9fdd94205" 749 - "checksum hermit-abi 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "725cf19794cf90aa94e65050cb4191ff5d8fa87a498383774c47b332e3af952e" 750 - "checksum hex 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "644f9158b2f133fd50f5fb3242878846d9eb792e445c893805ff0e3824006e35" 751 - "checksum image 0.21.3 (registry+https://github.com/rust-lang/crates.io-index)" = "35371e467cd7b0b3d1d6013d619203658467df12d61b0ca43cd67b743b1965eb" 752 - "checksum inflate 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)" = "1cdb29978cc5797bd8dcc8e5bf7de604891df2a8dc576973d71a281e916db2ff" 753 - "checksum itoa 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)" = "b8b7a7c0c47db5545ed3fef7468ee7bb5b74691498139e4b3f6a20685dc6dd8e" 754 - "checksum jpeg-decoder 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)" = "0256f0aec7352539102a9efbcb75543227b7ab1117e0f95450023af730128451" 755 - "checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" 756 - "checksum libc 0.2.68 (registry+https://github.com/rust-lang/crates.io-index)" = "dea0c0405123bba743ee3f91f49b1c7cfb684eef0da0a50110f758ccf24cdff0" 757 - "checksum lock_api 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "79b2de95ecb4691949fea4716ca53cdbcfccb2c612e19644a8bad05edcf9f47b" 758 - "checksum lzw 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7d947cbb889ed21c2a84be6ffbaebf5b4e0f4340638cba0444907e38b56be084" 759 - "checksum maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" 760 - "checksum memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400" 761 - "checksum memoffset 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)" = "b4fc2c02a7e374099d4ee95a193111f72d2110197fe200272371758f6c3643d8" 762 - "checksum num-derive 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "eafd0b45c5537c3ba526f79d3e75120036502bebacbb3f3220914067ce39dbf2" 763 - "checksum num-integer 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "3f6ea62e9d81a77cd3ee9a2a5b9b609447857f3d358704331e4ef39eb247fcba" 764 - "checksum num-iter 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)" = "dfb0800a0291891dd9f4fe7bd9c19384f98f7fbe0cd0f39a2c6b88b9868bbc00" 765 - "checksum num-rational 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "5c000134b5dbf44adc5cb772486d335293351644b801551abe8f75c84cfa4aef" 766 - "checksum num-traits 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "c62be47e61d1842b9170f0fdeec8eba98e60e90e5446449a0545e5152acd7096" 767 - "checksum num_cpus 1.12.0 (registry+https://github.com/rust-lang/crates.io-index)" = "46203554f085ff89c235cd12f7075f3233af9b11ed7c9e16dfe2560d03313ce6" 768 - "checksum parking_lot 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)" = "92e98c49ab0b7ce5b222f2cc9193fc4efe11c6d0bd4f648e374684a6857b1cfc" 769 - "checksum parking_lot_core 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7582838484df45743c8434fbff785e8edf260c28748353d44bc0da32e0ceabf1" 770 - "checksum png 0.14.1 (registry+https://github.com/rust-lang/crates.io-index)" = "63daf481fdd0defa2d1d2be15c674fbfa1b0fd71882c303a91f9a79b3252c359" 771 - "checksum proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)" = "cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759" 772 - "checksum proc-macro2 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)" = "df246d292ff63439fea9bc8c0a270bed0e390d5ebd4db4ba15aba81111b5abe3" 773 - "checksum pulldown-cmark 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d1b74cc784b038a9921fd1a48310cc2e238101aa8ae0b94201e2d85121dd68b5" 774 - "checksum quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)" = "6ce23b6b870e8f94f81fb0a363d65d86675884b34a09043c81e5562f11c1f8e1" 775 - "checksum quote 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2bdc6c187c65bca4260c9011c9e3132efe4909da44726bad24cf7572ae338d7f" 776 - "checksum rayon 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "db6ce3297f9c85e16621bb8cca38a06779ffc31bb8184e1be4bed2be4678a098" 777 - "checksum rayon-core 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "08a89b46efaf957e52b18062fb2f4660f8b8a4dde1807ca002690868ef2c85a9" 778 - "checksum redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)" = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84" 779 - "checksum regex 1.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "7f6946991529684867e47d86474e3a6d0c0ab9b82d5821e314b1ede31fa3a4b3" 780 - "checksum regex-syntax 0.6.17 (registry+https://github.com/rust-lang/crates.io-index)" = "7fe5bd57d1d7414c6b5ed48563a2c855d995ff777729dcd91c369ec7fea395ae" 781 - "checksum ryu 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "535622e6be132bccd223f4bb2b8ac8d53cda3c7a6394944d3b2b33fb974f9d76" 782 - "checksum scoped_threadpool 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "1d51f5df5af43ab3f1360b429fa5e0152ac5ce8c0bd6485cae490332e96846a8" 783 - "checksum scopeguard 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 784 - "checksum serde 1.0.106 (registry+https://github.com/rust-lang/crates.io-index)" = "36df6ac6412072f67cf767ebbde4133a5b2e88e76dc6187fa7104cd16f783399" 785 - "checksum serde_derive 1.0.106 (registry+https://github.com/rust-lang/crates.io-index)" = "9e549e3abf4fb8621bd1609f11dfc9f5e50320802273b12f3811a67e6716ea6c" 786 - "checksum serde_json 1.0.50 (registry+https://github.com/rust-lang/crates.io-index)" = "78a7a12c167809363ec3bd7329fc0a3369056996de43c4b37ef3cd54a6ce4867" 787 - "checksum smallvec 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5c2fb2ec9bcd216a5b0d0ccf31ab17b5ed1d627960edff65bbe95d3ce221cefc" 788 - "checksum strsim 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" 789 - "checksum structopt 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)" = "16c2cdbf9cc375f15d1b4141bc48aeef444806655cd0e904207edc8d68d86ed7" 790 - "checksum structopt-derive 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)" = "53010261a84b37689f9ed7d395165029f9cc7abb9f56bbfe86bee2597ed25107" 791 - "checksum syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)" = "9ca4b3b69a77cbe1ffc9e198781b7acb0c7365a883670e8f1c1bc66fba79a5c5" 792 - "checksum syn 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)" = "0df0eb663f387145cab623dea85b09c2c5b4b0aef44e945d928e682fce71bb03" 793 - "checksum syncat-stylesheet 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d58d4411972200fcd5277e93f359573f19c3688ccf39073d5cc4ebdb46240ac0" 794 - "checksum terminal_size 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "248dbcb93f8697c50b85b0492cf559b94667eb24c26934eae73ae5673175ebf6" 795 - "checksum termios 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "72b620c5ea021d75a735c943269bb07d30c9b77d6ac6b236bc8b5c496ef05625" 796 - "checksum textwrap 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" 797 - "checksum thread_local 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14" 798 - "checksum tiff 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1e4834f28a0330cb9f3f2c87d2649dca723cb33802e2bdcf18da32759fbec7ce" 799 - "checksum tree-sitter 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)" = "376e181cb69da67bad2d69806cf2500656fd68123c526a61e5cbbfc65110c5b0" 800 - "checksum unicase 2.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6" 801 - "checksum unicode-segmentation 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e83e153d1053cbb5a118eeff7fd5be06ed99153f00dbcd8ae310c5fb2b22edc0" 802 - "checksum unicode-width 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "caaa9d531767d1ff2150b9332433f32a24622147e5ebb1f26409d5da67afd479" 803 - "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" 804 - "checksum unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c" 805 - "checksum vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "05c78687fb1a80548ae3250346c3db86a80a7cdd77bda190189f2d0a0987c81a" 806 - "checksum version_check 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)" = "078775d0255232fb988e6fccf26ddc9d1ac274299aaedcedce21c6f72cc533ce" 807 - "checksum winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "8093091eeb260906a183e6ae1abdba2ef5ef2257a21801128899c3fc699229c6" 808 - "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 809 - "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 834 + checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+1 -1
Cargo.toml
··· 17 17 path = "src/main.rs" 18 18 19 19 [dependencies] 20 - structopt = "0.2" 20 + structopt = "0.3" 21 21 terminal_size = "0.1" 22 22 pulldown-cmark = "0.4" 23 23 ansi_term = "0.12"
+43 -23
src/main.rs
··· 1 + use ansi_term::Style; 2 + use console::strip_ansi_codes; 3 + use pulldown_cmark::{Options, Parser}; 1 4 use std::convert::TryInto; 2 - use std::io::{self, Read}; 3 5 use std::fs; 6 + use std::io::{self, Read}; 4 7 use std::path::PathBuf; 5 - use ansi_term::Style; 6 8 use structopt::StructOpt; 7 - use terminal_size::{Width, terminal_size}; 8 - use console::strip_ansi_codes; 9 - use pulldown_cmark::{Parser, Options}; 10 9 use syncat_stylesheet::Stylesheet; 10 + use terminal_size::{terminal_size, Width}; 11 11 12 12 mod dirs; 13 13 mod printer; 14 14 mod table; 15 - mod words; 16 15 mod termpix; 16 + mod words; 17 17 18 18 use printer::Printer; 19 19 use words::Words; ··· 22 22 #[derive(StructOpt, Debug)] 23 23 #[structopt(name = "paper")] 24 24 #[structopt(rename_all = "kebab-case")] 25 - #[structopt(raw(setting = "structopt::clap::AppSettings::ColoredHelp"))] 25 + #[structopt(setting = structopt::clap::AppSettings::ColoredHelp)] 26 26 pub struct Opts { 27 27 /// Margin (shortcut for horizontal and vertical margin set to the same value) 28 - #[structopt(short, long, default_value="6")] 28 + #[structopt(short, long, default_value = "6")] 29 29 pub margin: usize, 30 30 31 31 /// Horizontal margin (overrides --margin) ··· 37 37 pub v_margin: Option<usize>, 38 38 39 39 /// The width of the paper (including the space used for the margin) 40 - #[structopt(short, long, default_value="92")] 40 + #[structopt(short, long, default_value = "92")] 41 41 pub width: usize, 42 42 43 43 /// Don't parse as Markdown, just render the plain text on a paper ··· 45 45 pub plain: bool, 46 46 47 47 /// The length to consider tabs as. 48 - #[structopt(short, long, default_value="4")] 48 + #[structopt(short, long, default_value = "4")] 49 49 pub tab_length: usize, 50 50 51 51 /// Hide link URLs 52 - #[structopt(short="u", long)] 52 + #[structopt(short = "u", long)] 53 53 pub hide_urls: bool, 54 54 55 55 /// Disable drawing images 56 - #[structopt(short="i", long)] 56 + #[structopt(short = "i", long)] 57 57 pub no_images: bool, 58 58 59 59 /// Use syncat to highlight code blocks. Requires you have syncat installed. ··· 65 65 pub dev: bool, 66 66 67 67 /// Files to print 68 - #[structopt(name="FILE", parse(from_os_str))] 68 + #[structopt(name = "FILE", parse(from_os_str))] 69 69 pub files: Vec<PathBuf>, 70 70 } 71 71 ··· 97 97 .collect::<String>() 98 98 } 99 99 100 - fn print<I>(opts: Opts, sources: I) where I: Iterator<Item=Result<String, std::io::Error>> { 100 + fn print<I>(opts: Opts, sources: I) 101 + where 102 + I: Iterator<Item = Result<String, std::io::Error>>, 103 + { 101 104 let h_margin = opts.h_margin.unwrap_or(opts.margin); 102 105 let v_margin = opts.v_margin.unwrap_or(opts.margin); 103 - let terminal_width = terminal_size().map(|(Width(width), _)| width).unwrap_or(opts.width as u16) as usize; 106 + let terminal_width = terminal_size() 107 + .map(|(Width(width), _)| width) 108 + .unwrap_or(opts.width as u16) as usize; 104 109 let width = usize::min(opts.width, terminal_width - 1); 105 110 106 111 if width < h_margin * 2 + 40 { ··· 111 116 let centering = " ".repeat((terminal_width - width) / 2); 112 117 113 118 let stylesheet = Stylesheet::from_file(dirs::active_color().join("paper.syncat")) 114 - .unwrap_or_else(|_| include_str!("default.syncat").parse::<Stylesheet>().unwrap()); 115 - let paper_style: Style = stylesheet.style(&"paper".into()).unwrap_or_default().try_into().unwrap_or_default(); 116 - let shadow_style: Style = stylesheet.style(&"shadow".into()).unwrap_or_default().try_into().unwrap_or_default(); 119 + .unwrap_or_else(|_| { 120 + include_str!("default.syncat") 121 + .parse::<Stylesheet>() 122 + .unwrap() 123 + }); 124 + let paper_style: Style = stylesheet 125 + .style(&"paper".into()) 126 + .unwrap_or_default() 127 + .try_into() 128 + .unwrap_or_default(); 129 + let shadow_style: Style = stylesheet 130 + .style(&"shadow".into()) 131 + .unwrap_or_default() 132 + .try_into() 133 + .unwrap_or_default(); 117 134 let blank_line = format!("{}", paper_style.paint(" ".repeat(width))); 118 135 let end_shadow = format!("{}", shadow_style.paint(" ")); 119 136 let margin = format!("{}", paper_style.paint(" ".repeat(h_margin))); ··· 150 167 } 151 168 if buffer.is_empty() { 152 169 if indent.is_none() { 153 - let indent_len = word.chars().take_while(|ch| ch.is_whitespace()).count(); 170 + let indent_len = 171 + word.chars().take_while(|ch| ch.is_whitespace()).count(); 154 172 indent = Some(word[0..indent_len].to_string()); 155 173 } 156 174 buffer.push_str(indent.as_ref().unwrap()); ··· 185 203 println!("{}{}{}", centering, blank_line, end_shadow); 186 204 } 187 205 188 - let mut printer = Printer::new(&centering, &margin, available_width, &stylesheet, &opts); 206 + let mut printer = 207 + Printer::new(&centering, &margin, available_width, &stylesheet, &opts); 189 208 for event in parser { 190 209 printer.handle(event); 191 210 } ··· 206 225 io::stdin().read_to_string(&mut string).unwrap(); 207 226 print(opts, vec![Ok(string)].into_iter()); 208 227 } else { 209 - let sources = opts.files.clone() 228 + let sources = opts 229 + .files 230 + .clone() 210 231 .into_iter() 211 - .map(|path| fs::read_to_string(&path), 212 - ); 232 + .map(|path| fs::read_to_string(&path)); 213 233 print(opts, sources); 214 234 } 215 235 }