comrak without its default features, which drops syntect

f401d5a · Gabriel Morell · 2026-10-23 15:15

2 files +10 -327
Message
{commit_body(@commit)}

Files changed

modified Cargo.lock
+5 −326
@@ -178,56 +178,6 @@ dependencies = [
178 178 "libc",
179 179 ]
180 180
181 −[[package]]
182 −name = "anstream"
183 −version = "0.6.19"
184 −source = "registry+https://github.com/rust-lang/crates.io-index"
185 −checksum = "301af1932e46185686725e0fad2f8f2aa7da69dd70bf6ecc44d6b703844a3933"
186 −dependencies = [
187 − "anstyle",
188 − "anstyle-parse",
189 − "anstyle-query",
190 − "anstyle-wincon",
191 − "colorchoice",
192 − "is_terminal_polyfill",
193 − "utf8parse",
194 −]
195 −
196 −[[package]]
197 −name = "anstyle"
198 −version = "1.0.11"
199 −source = "registry+https://github.com/rust-lang/crates.io-index"
200 −checksum = "862ed96ca487e809f1c8e5a8447f6ee2cf102f846893800b20cebdf541fc6bbd"
201 −
202 −[[package]]
203 −name = "anstyle-parse"
204 −version = "0.2.7"
205 −source = "registry+https://github.com/rust-lang/crates.io-index"
206 −checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2"
207 −dependencies = [
208 − "utf8parse",
209 −]
210 −
211 −[[package]]
212 −name = "anstyle-query"
213 −version = "1.1.3"
214 −source = "registry+https://github.com/rust-lang/crates.io-index"
215 −checksum = "6c8bdeb6047d8983be085bab0ba1472e6dc604e7041dbf6fcd5e71523014fae9"
216 −dependencies = [
217 − "windows-sys 0.59.0",
218 −]
219 −
220 −[[package]]
221 −name = "anstyle-wincon"
222 −version = "3.0.9"
223 −source = "registry+https://github.com/rust-lang/crates.io-index"
224 −checksum = "403f75924867bb1033c59fbf0797484329750cfbe3c4325cd33127941fabc882"
225 −dependencies = [
226 − "anstyle",
227 − "once_cell_polyfill",
228 − "windows-sys 0.59.0",
229 −]
230 −
231 181 [[package]]
232 182 name = "arboard"
233 183 version = "3.6.0"
@@ -471,45 +421,15 @@ version = "1.5.0"
471 421 source = "registry+https://github.com/rust-lang/crates.io-index"
472 422 checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
473 423
474 −[[package]]
475 −name = "base64"
476 −version = "0.22.1"
477 −source = "registry+https://github.com/rust-lang/crates.io-index"
478 −checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
479 −
480 −[[package]]
481 −name = "bincode"
482 −version = "1.3.3"
483 −source = "registry+https://github.com/rust-lang/crates.io-index"
484 −checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"
485 −dependencies = [
486 − "serde",
487 −]
488 −
489 −[[package]]
490 −name = "bit-set"
491 −version = "0.5.3"
492 −source = "registry+https://github.com/rust-lang/crates.io-index"
493 −checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1"
494 −dependencies = [
495 − "bit-vec 0.6.3",
496 −]
497 −
498 424 [[package]]
499 425 name = "bit-set"
500 426 version = "0.8.0"
501 427 source = "registry+https://github.com/rust-lang/crates.io-index"
502 428 checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
503 429 dependencies = [
504 − "bit-vec 0.8.0",
430 + "bit-vec",
505 431 ]
506 432
507 −[[package]]
508 −name = "bit-vec"
509 −version = "0.6.3"
510 −source = "registry+https://github.com/rust-lang/crates.io-index"
511 −checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb"
512 −
513 433 [[package]]
514 434 name = "bit-vec"
515 435 version = "0.8.0"
@@ -695,47 +615,6 @@ dependencies = [
695 615 "windows-link 0.1.3",
696 616 ]
697 617
698 −[[package]]
699 −name = "clap"
700 −version = "4.5.41"
701 −source = "registry+https://github.com/rust-lang/crates.io-index"
702 −checksum = "be92d32e80243a54711e5d7ce823c35c41c9d929dc4ab58e1276f625841aadf9"
703 −dependencies = [
704 − "clap_builder",
705 − "clap_derive",
706 −]
707 −
708 −[[package]]
709 −name = "clap_builder"
710 −version = "4.5.41"
711 −source = "registry+https://github.com/rust-lang/crates.io-index"
712 −checksum = "707eab41e9622f9139419d573eca0900137718000c517d47da73045f54331c3d"
713 −dependencies = [
714 − "anstream",
715 − "anstyle",
716 − "clap_lex",
717 − "strsim 0.11.1",
718 − "terminal_size",
719 −]
720 −
721 −[[package]]
722 −name = "clap_derive"
723 −version = "4.5.41"
724 −source = "registry+https://github.com/rust-lang/crates.io-index"
725 −checksum = "ef4f52386a59ca4c860f7393bcf8abd8dfd91ecccc0f774635ff68e92eeef491"
726 −dependencies = [
727 − "heck",
728 − "proc-macro2",
729 − "quote",
730 − "syn 2.0.104",
731 −]
732 −
733 −[[package]]
734 −name = "clap_lex"
735 −version = "0.7.5"
736 −source = "registry+https://github.com/rust-lang/crates.io-index"
737 −checksum = "b94f61472cee1439c0b966b47e3aca9ae07e45d070759512cd390ea2bebc6675"
738 −
739 618 [[package]]
740 619 name = "clipboard-win"
741 620 version = "5.4.1"
@@ -756,12 +635,6 @@ dependencies = [
756 635 "unicode-width",
757 636 ]
758 637
759 −[[package]]
760 −name = "colorchoice"
761 −version = "1.0.4"
762 −source = "registry+https://github.com/rust-lang/crates.io-index"
763 −checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
764 −
765 638 [[package]]
766 639 name = "combine"
767 640 version = "4.6.7"
@@ -778,18 +651,14 @@ version = "0.19.0"
778 651 source = "registry+https://github.com/rust-lang/crates.io-index"
779 652 checksum = "82c995deda3bfdebd07d0e2af79e9da13e4b1be652b21a746f3f5b24bf0a49ef"
780 653 dependencies = [
781 − "clap",
782 654 "derive_builder",
783 655 "entities",
784 656 "memchr",
785 657 "once_cell",
786 658 "regex",
787 − "shell-words",
788 659 "slug",
789 − "syntect",
790 660 "typed-arena",
791 661 "unicode_categories",
792 − "xdg",
793 662 ]
794 663
795 664 [[package]]
@@ -888,7 +757,7 @@ dependencies = [
888 757 "ident_case",
889 758 "proc-macro2",
890 759 "quote",
891 − "strsim 0.10.0",
760 + "strsim",
892 761 "syn 1.0.109",
893 762 ]
894 763
@@ -903,15 +772,6 @@ dependencies = [
903 772 "syn 1.0.109",
904 773 ]
905 774
906 −[[package]]
907 −name = "deranged"
908 −version = "0.4.0"
909 −source = "registry+https://github.com/rust-lang/crates.io-index"
910 −checksum = "9c9e6a11ca8224451684bc0d7d5a7adbf8f2fd6887261a1cfc3c0432f9d4068e"
911 −dependencies = [
912 − "powerfmt",
913 −]
914 −
915 775 [[package]]
916 776 name = "derive_builder"
917 777 version = "0.12.0"
@@ -1245,16 +1105,6 @@ dependencies = [
1245 1105 "pin-project-lite",
1246 1106 ]
1247 1107
1248 −[[package]]
1249 −name = "fancy-regex"
1250 −version = "0.11.0"
1251 −source = "registry+https://github.com/rust-lang/crates.io-index"
1252 −checksum = "b95f7c0680e4142284cf8b22c14a476e87d61b004a3a0861872b32ef7ead40a2"
1253 −dependencies = [
1254 − "bit-set 0.5.3",
1255 − "regex",
1256 −]
1257 −
1258 1108 [[package]]
1259 1109 name = "fastrand"
1260 1110 version = "2.3.0"
@@ -1781,12 +1631,6 @@ dependencies = [
1781 1631 "hashbrown",
1782 1632 ]
1783 1633
1784 −[[package]]
1785 −name = "is_terminal_polyfill"
1786 −version = "1.70.1"
1787 −source = "registry+https://github.com/rust-lang/crates.io-index"
1788 −checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
1789 −
1790 1634 [[package]]
1791 1635 name = "itoa"
1792 1636 version = "1.0.15"
@@ -1929,12 +1773,6 @@ dependencies = [
1929 1773 "redox_syscall 0.5.15",
1930 1774 ]
1931 1775
1932 −[[package]]
1933 −name = "linked-hash-map"
1934 −version = "0.5.6"
1935 −source = "registry+https://github.com/rust-lang/crates.io-index"
1936 −checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f"
1937 −
1938 1776 [[package]]
1939 1777 name = "linux-raw-sys"
1940 1778 version = "0.4.15"
@@ -2051,7 +1889,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
2051 1889 checksum = "2b977c445f26e49757f9aca3631c3b8b836942cb278d69a92e7b80d3b24da632"
2052 1890 dependencies = [
2053 1891 "arrayvec",
2054 − "bit-set 0.8.0",
1892 + "bit-set",
2055 1893 "bitflags 2.9.1",
2056 1894 "cfg_aliases",
2057 1895 "codespan-reporting",
@@ -2117,12 +1955,6 @@ version = "0.2.0"
2117 1955 source = "registry+https://github.com/rust-lang/crates.io-index"
2118 1956 checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451"
2119 1957
2120 −[[package]]
2121 −name = "num-conv"
2122 −version = "0.1.0"
2123 −source = "registry+https://github.com/rust-lang/crates.io-index"
2124 −checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"
2125 −
2126 1958 [[package]]
2127 1959 name = "num-traits"
2128 1960 version = "0.2.19"
@@ -2461,34 +2293,6 @@ version = "1.21.3"
2461 2293 source = "registry+https://github.com/rust-lang/crates.io-index"
2462 2294 checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
2463 2295
2464 −[[package]]
2465 −name = "once_cell_polyfill"
2466 −version = "1.70.1"
2467 −source = "registry+https://github.com/rust-lang/crates.io-index"
2468 −checksum = "a4895175b425cb1f87721b59f0f286c2092bd4af812243672510e1ac53e2e0ad"
2469 −
2470 −[[package]]
2471 −name = "onig"
2472 −version = "6.5.1"
2473 −source = "registry+https://github.com/rust-lang/crates.io-index"
2474 −checksum = "336b9c63443aceef14bea841b899035ae3abe89b7c486aaf4c5bd8aafedac3f0"
2475 −dependencies = [
2476 − "bitflags 2.9.1",
2477 − "libc",
2478 − "once_cell",
2479 − "onig_sys",
2480 −]
2481 −
2482 −[[package]]
2483 −name = "onig_sys"
2484 −version = "69.9.1"
2485 −source = "registry+https://github.com/rust-lang/crates.io-index"
2486 −checksum = "c7f86c6eef3d6df15f23bcfb6af487cbd2fed4e5581d58d5bf1f5f8b7f6727dc"
2487 −dependencies = [
2488 − "cc",
2489 − "pkg-config",
2490 −]
2491 −
2492 2296 [[package]]
2493 2297 name = "orbclient"
2494 2298 version = "0.3.48"
@@ -2613,19 +2417,6 @@ version = "0.3.32"
2613 2417 source = "registry+https://github.com/rust-lang/crates.io-index"
2614 2418 checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c"
2615 2419
2616 −[[package]]
2617 −name = "plist"
2618 −version = "1.7.4"
2619 −source = "registry+https://github.com/rust-lang/crates.io-index"
2620 −checksum = "3af6b589e163c5a788fab00ce0c0366f6efbb9959c2f9874b224936af7fce7e1"
2621 −dependencies = [
2622 − "base64",
2623 − "indexmap",
2624 − "quick-xml 0.38.0",
2625 − "serde",
2626 − "time",
2627 −]
2628 −
2629 2420 [[package]]
2630 2421 name = "png"
2631 2422 version = "0.17.16"
@@ -2674,12 +2465,6 @@ dependencies = [
2674 2465 "zerovec",
2675 2466 ]
2676 2467
2677 −[[package]]
2678 −name = "powerfmt"
2679 −version = "0.2.0"
2680 −source = "registry+https://github.com/rust-lang/crates.io-index"
2681 −checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
2682 −
2683 2468 [[package]]
2684 2469 name = "proc-macro-crate"
2685 2470 version = "1.3.1"
@@ -2724,15 +2509,6 @@ dependencies = [
2724 2509 "serde",
2725 2510 ]
2726 2511
2727 −[[package]]
2728 −name = "quick-xml"
2729 −version = "0.38.0"
2730 −source = "registry+https://github.com/rust-lang/crates.io-index"
2731 −checksum = "8927b0664f5c5a98265138b7e3f90aa19a6b21353182469ace36d4ac527b7b1b"
2732 −dependencies = [
2733 − "memchr",
2734 −]
2735 −
2736 2512 [[package]]
2737 2513 name = "quick-xml"
2738 2514 version = "0.41.0"
@@ -2996,12 +2772,6 @@ dependencies = [
2996 2772 "serde",
2997 2773 ]
2998 2774
2999 −[[package]]
3000 −name = "shell-words"
3001 −version = "1.1.0"
3002 −source = "registry+https://github.com/rust-lang/crates.io-index"
3003 −checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde"
3004 −
3005 2775 [[package]]
3006 2776 name = "shlex"
3007 2777 version = "1.3.0"
@@ -3139,12 +2909,6 @@ version = "0.10.0"
3139 2909 source = "registry+https://github.com/rust-lang/crates.io-index"
3140 2910 checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
3141 2911
3142 −[[package]]
3143 −name = "strsim"
3144 −version = "0.11.1"
3145 −source = "registry+https://github.com/rust-lang/crates.io-index"
3146 −checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
3147 −
3148 2912 [[package]]
3149 2913 name = "strum"
3150 2914 version = "0.26.3"
@@ -3200,29 +2964,6 @@ dependencies = [
3200 2964 "syn 2.0.104",
3201 2965 ]
3202 2966
3203 −[[package]]
3204 −name = "syntect"
3205 −version = "5.2.0"
3206 −source = "registry+https://github.com/rust-lang/crates.io-index"
3207 −checksum = "874dcfa363995604333cf947ae9f751ca3af4522c60886774c4963943b4746b1"
3208 −dependencies = [
3209 − "bincode",
3210 − "bitflags 1.3.2",
3211 − "fancy-regex",
3212 − "flate2",
3213 − "fnv",
3214 − "once_cell",
3215 − "onig",
3216 − "plist",
3217 − "regex-syntax",
3218 − "serde",
3219 − "serde_derive",
3220 − "serde_json",
3221 − "thiserror 1.0.69",
3222 − "walkdir",
3223 − "yaml-rust",
3224 −]
3225 −
3226 2967 [[package]]
3227 2968 name = "system-deps"
3228 2969 version = "6.2.2"
@@ -3264,16 +3005,6 @@ dependencies = [
3264 3005 "winapi-util",
3265 3006 ]
3266 3007
3267 −[[package]]
3268 −name = "terminal_size"
3269 −version = "0.4.2"
3270 −source = "registry+https://github.com/rust-lang/crates.io-index"
3271 −checksum = "45c6481c4829e4cc63825e62c49186a34538b7b2750b73b266581ffb612fb5ed"
3272 −dependencies = [
3273 − "rustix 1.0.8",
3274 − "windows-sys 0.59.0",
3275 −]
3276 −
3277 3008 [[package]]
3278 3009 name = "thiserror"
3279 3010 version = "1.0.69"
@@ -3325,37 +3056,6 @@ dependencies = [
3325 3056 "weezl",
3326 3057 ]
3327 3058
3328 −[[package]]
3329 −name = "time"
3330 −version = "0.3.41"
3331 −source = "registry+https://github.com/rust-lang/crates.io-index"
3332 −checksum = "8a7619e19bc266e0f9c5e6686659d394bc57973859340060a69221e57dbc0c40"
3333 −dependencies = [
3334 − "deranged",
3335 − "itoa",
3336 − "num-conv",
3337 − "powerfmt",
3338 − "serde",
3339 − "time-core",
3340 − "time-macros",
3341 −]
3342 −
3343 −[[package]]
3344 −name = "time-core"
3345 −version = "0.1.4"
3346 −source = "registry+https://github.com/rust-lang/crates.io-index"
3347 −checksum = "c9e9a38711f559d9e3ce1cdb06dd7c5b8ea546bc90052da6d06bb76da74bb07c"
3348 −
3349 −[[package]]
3350 −name = "time-macros"
3351 −version = "0.2.22"
3352 −source = "registry+https://github.com/rust-lang/crates.io-index"
3353 −checksum = "3526739392ec93fd8b359c8e98514cb3e8e021beb4e5f597b00a0221f8ed8a49"
3354 −dependencies = [
3355 − "num-conv",
3356 − "time-core",
3357 −]
3358 −
3359 3059 [[package]]
3360 3060 name = "tiny-skia"
3361 3061 version = "0.11.4"
@@ -3553,12 +3253,6 @@ version = "1.0.4"
3553 3253 source = "registry+https://github.com/rust-lang/crates.io-index"
3554 3254 checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
3555 3255
3556 −[[package]]
3557 −name = "utf8parse"
3558 −version = "0.2.2"
3559 −source = "registry+https://github.com/rust-lang/crates.io-index"
3560 −checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
3561 −
3562 3256 [[package]]
3563 3257 name = "version-compare"
3564 3258 version = "0.2.0"
@@ -3845,8 +3539,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
3845 3539 checksum = "f7b882196f8368511d613c6aeec80655160db6646aebddf8328879a88d54e500"
3846 3540 dependencies = [
3847 3541 "arrayvec",
3848 − "bit-set 0.8.0",
3849 − "bit-vec 0.8.0",
3542 + "bit-set",
3543 + "bit-vec",
3850 3544 "bitflags 2.9.1",
3851 3545 "cfg_aliases",
3852 3546 "document-features",
@@ -4467,12 +4161,6 @@ version = "0.3.10"
4467 4161 source = "registry+https://github.com/rust-lang/crates.io-index"
4468 4162 checksum = "bec9e4a500ca8864c5b47b8b482a73d62e4237670e5b5f1d6b9e3cae50f28f2b"
4469 4163
4470 −[[package]]
4471 −name = "xdg"
4472 −version = "2.5.2"
4473 −source = "registry+https://github.com/rust-lang/crates.io-index"
4474 −checksum = "213b7324336b53d2414b2db8537e56544d981803139155afa84f76eeebb7a546"
4475 −
4476 4164 [[package]]
4477 4165 name = "xkbcommon-dl"
4478 4166 version = "0.4.2"
@@ -4498,15 +4186,6 @@ version = "0.8.27"
4498 4186 source = "registry+https://github.com/rust-lang/crates.io-index"
4499 4187 checksum = "6fd8403733700263c6eb89f192880191f1b83e332f7a20371ddcf421c4a337c7"
4500 4188
4501 −[[package]]
4502 −name = "yaml-rust"
4503 −version = "0.4.5"
4504 −source = "registry+https://github.com/rust-lang/crates.io-index"
4505 −checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85"
4506 −dependencies = [
4507 − "linked-hash-map",
4508 −]
4509 −
4510 4189 [[package]]
4511 4190 name = "yoke"
4512 4191 version = "0.8.0"
modified Cargo.toml
+5 −1
@@ -37,7 +37,11 @@ eframe = "0.32.0"
37 37 pollster = "0.3.0"
38 38 rfd = "0.12.1"
39 39 markdown = "1.0.0-alpha.14"
40 −comrak = "0.19.0"
40 +# Without its default features: those are comrak's own command-line
41 +# tool (clap) and syntect highlighting, and markdown_to_html uses
42 +# neither. syntect brought in bincode and yaml-rust (unmaintained) and,
43 +# through plist, vulnerable versions of time and quick-xml.
44 +comrak = { version = "0.19.0", default-features = false }
41 45 toml = "0.8.0"
42 46 serde = { version = "1.0", features = ["derive"] }
43 47 serde_json = "1.0"

Parents: f17bbb3