From 2908d7d6d38acac37c3755b3c19c7f50a097dc0b Mon Sep 17 00:00:00 2001 From: Spenser Black Date: Fri, 25 Aug 2023 13:27:30 -0400 Subject: [PATCH 01/22] Replace tokei with gengo in manifest --- Cargo.lock | 520 ++++------------------------------------------------- Cargo.toml | 2 +- 2 files changed, 40 insertions(+), 482 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3ef715fcf..0fa9dc401 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -29,15 +29,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "aho-corasick" -version = "0.7.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac" -dependencies = [ - "memchr", -] - [[package]] name = "aho-corasick" version = "1.0.2" @@ -47,36 +38,12 @@ dependencies = [ "memchr", ] -[[package]] -name = "android-tzdata" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" - -[[package]] -name = "android_system_properties" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" -dependencies = [ - "libc", -] - [[package]] name = "anes" version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299" -[[package]] -name = "ansi_term" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" -dependencies = [ - "winapi", -] - [[package]] name = "anstream" version = "0.3.2" @@ -163,17 +130,6 @@ dependencies = [ "zstd", ] -[[package]] -name = "atty" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" -dependencies = [ - "hermit-abi 0.1.19", - "libc", - "winapi", -] - [[package]] name = "autocfg" version = "1.1.0" @@ -313,40 +269,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" -[[package]] -name = "chrono" -version = "0.4.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5" -dependencies = [ - "android-tzdata", - "iana-time-zone", - "num-traits", - "winapi", -] - -[[package]] -name = "chrono-tz" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58549f1842da3080ce63002102d5bc954c7bc843d4f47818e642abdc36253552" -dependencies = [ - "chrono", - "chrono-tz-build", - "phf", -] - -[[package]] -name = "chrono-tz-build" -version = "0.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db058d493fb2f65f41861bfed7e3fe6335264a9f0f92710cab5bdf01fef09069" -dependencies = [ - "parse-zoneinfo", - "phf", - "phf_codegen", -] - [[package]] name = "ciborium" version = "0.2.1" @@ -374,21 +296,6 @@ dependencies = [ "half 1.8.2", ] -[[package]] -name = "clap" -version = "2.34.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" -dependencies = [ - "ansi_term", - "atty", - "bitflags 1.3.2", - "strsim 0.8.0", - "textwrap", - "unicode-width", - "vec_map", -] - [[package]] name = "clap" version = "4.3.21" @@ -409,7 +316,7 @@ dependencies = [ "anstream", "anstyle", "clap_lex", - "strsim 0.10.0", + "strsim", ] [[package]] @@ -418,7 +325,7 @@ version = "4.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5fc443334c81a804575546c5a8a79b4913b50e28d69232903604cada1de817ce" dependencies = [ - "clap 4.3.21", + "clap", ] [[package]] @@ -478,12 +385,6 @@ dependencies = [ "windows-sys 0.45.0", ] -[[package]] -name = "core-foundation-sys" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" - [[package]] name = "cpufeatures" version = "0.2.8" @@ -526,7 +427,7 @@ dependencies = [ "anes", "cast", "ciborium", - "clap 4.3.21", + "clap", "criterion-plot", "is-terminal", "itertools", @@ -636,29 +537,12 @@ dependencies = [ "typenum", ] -[[package]] -name = "dashmap" -version = "4.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e77a43b28d0668df09411cb0bc9a8c2adc40f9a048afe863e05fd43251e8e39c" -dependencies = [ - "cfg-if", - "num_cpus", - "serde", -] - [[package]] name = "deranged" version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7684a49fb1af197853ef7b2ee694bc1f5b4179556f1e5710e1760c5db6f5e929" -[[package]] -name = "deunicode" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "850878694b7933ca4c9569d30a34b55031b9b139ee1fc7b94a527c4ef960d690" - [[package]] name = "diff" version = "0.1.13" @@ -675,26 +559,6 @@ dependencies = [ "crypto-common", ] -[[package]] -name = "dirs" -version = "3.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30baa043103c9d0c2a57cf537cc2f35623889dc0d405e6c3cccfadbc81c71309" -dependencies = [ - "dirs-sys", -] - -[[package]] -name = "dirs-sys" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6" -dependencies = [ - "libc", - "redox_users", - "winapi", -] - [[package]] name = "dunce" version = "1.0.4" @@ -731,28 +595,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "encoding_rs_io" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cc3c5651fb62ab8aa3103998dade57efdd028544bd300516baa31840c252a83" -dependencies = [ - "encoding_rs", -] - -[[package]] -name = "env_logger" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3" -dependencies = [ - "atty", - "humantime", - "log", - "regex", - "termcolor", -] - [[package]] name = "equivalent" version = "1.0.0" @@ -991,6 +833,22 @@ dependencies = [ "version_check", ] +[[package]] +name = "gengo" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "592d4c07ec2a096d12bba35ea55649fa588757e7c84cc8bd4f85c13d1bd02628" +dependencies = [ + "git2", + "glob", + "indexmap", + "once_cell", + "regex", + "serde", + "serde_json", + "serde_yaml", +] + [[package]] name = "getrandom" version = "0.2.10" @@ -1342,7 +1200,7 @@ dependencies = [ "jwalk", "libc", "once_cell", - "parking_lot 0.12.1", + "parking_lot", "prodash 25.0.0", "sha1_smol", "thiserror", @@ -1438,7 +1296,7 @@ checksum = "385f4ce6ecf3692d313ca3aa9bd3b3d8490de53368d6d94bedff3af8b6d9c58d" dependencies = [ "gix-hash", "hashbrown 0.14.0", - "parking_lot 0.12.1", + "parking_lot", ] [[package]] @@ -1613,7 +1471,7 @@ dependencies = [ "gix-pack", "gix-path", "gix-quote", - "parking_lot 0.12.1", + "parking_lot", "tempfile", "thiserror", ] @@ -1635,7 +1493,7 @@ dependencies = [ "gix-tempfile 7.0.0", "gix-traverse 0.30.1", "memmap2 0.7.1", - "parking_lot 0.12.1", + "parking_lot", "smallvec", "thiserror", "uluru", @@ -1673,7 +1531,7 @@ checksum = "2c22decaf4a063ccae2b2108820c8630c01bd6756656df3fe464b32b8958a5ea" dependencies = [ "gix-command", "gix-config-value", - "parking_lot 0.12.1", + "parking_lot", "rustix 0.38.4", "thiserror", ] @@ -1795,7 +1653,7 @@ dependencies = [ "gix-fs 0.1.1", "libc", "once_cell", - "parking_lot 0.12.1", + "parking_lot", "signal-hook", "signal-hook-registry", "tempfile", @@ -1810,7 +1668,7 @@ dependencies = [ "gix-fs 0.3.0", "libc", "once_cell", - "parking_lot 0.12.1", + "parking_lot", "signal-hook", "signal-hook-registry", "tempfile", @@ -1836,7 +1694,7 @@ dependencies = [ "is_ci", "nom", "once_cell", - "parking_lot 0.12.1", + "parking_lot", "tar", "tempfile", "xz2", @@ -1964,7 +1822,7 @@ version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "759c97c1e17c55525b57192c06a267cda0ac5210b222d6b82189a2338fa1c13d" dependencies = [ - "aho-corasick 1.0.2", + "aho-corasick", "bstr", "fnv", "log", @@ -1982,30 +1840,6 @@ dependencies = [ "walkdir", ] -[[package]] -name = "grep-matcher" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3902ca28f26945fe35cad349d776f163981d777fee382ccd6ef451126f51b319" -dependencies = [ - "memchr", -] - -[[package]] -name = "grep-searcher" -version = "0.1.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5601c4b9f480f0c9ebb40b1f6cbf447b8a50c5369223937a6c5214368c58779f" -dependencies = [ - "bstr", - "bytecount", - "encoding_rs", - "encoding_rs_io", - "grep-matcher", - "log", - "memmap2 0.5.10", -] - [[package]] name = "half" version = "1.8.2" @@ -2040,15 +1874,6 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" -[[package]] -name = "hermit-abi" -version = "0.1.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" -dependencies = [ - "libc", -] - [[package]] name = "hermit-abi" version = "0.3.1" @@ -2086,44 +1911,6 @@ dependencies = [ "uuid", ] -[[package]] -name = "humansize" -version = "2.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6cb51c9a029ddc91b07a787f1d86b53ccfa49b0e86688c946ebe8d3555685dd7" -dependencies = [ - "libm", -] - -[[package]] -name = "humantime" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" - -[[package]] -name = "iana-time-zone" -version = "0.1.57" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613" -dependencies = [ - "android_system_properties", - "core-foundation-sys", - "iana-time-zone-haiku", - "js-sys", - "wasm-bindgen", - "windows", -] - -[[package]] -name = "iana-time-zone-haiku" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" -dependencies = [ - "cc", -] - [[package]] name = "idna" version = "0.4.0" @@ -2188,6 +1975,7 @@ checksum = "d5477fe2230a79769d8dc68e0eabf5437907c0457a5614a9e8dddb67f65eb65d" dependencies = [ "equivalent", "hashbrown 0.14.0", + "serde", ] [[package]] @@ -2237,7 +2025,7 @@ version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" dependencies = [ - "hermit-abi 0.3.1", + "hermit-abi", "libc", "windows-sys 0.48.0", ] @@ -2248,7 +2036,7 @@ version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "adcf93614601c8129ddf72e2d5633df827ba6551541c6d8c59520a371475be1f" dependencies = [ - "hermit-abi 0.3.1", + "hermit-abi", "io-lifetimes", "rustix 0.37.20", "windows-sys 0.48.0", @@ -2351,12 +2139,6 @@ dependencies = [ "pkg-config", ] -[[package]] -name = "libm" -version = "0.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7012b1bbb0719e1097c47611d3898568c546d597c2e74d66f6087edd5233ff4" - [[package]] name = "libz-ng-sys" version = "1.1.9" @@ -2558,7 +2340,7 @@ version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" dependencies = [ - "hermit-abi 0.3.1", + "hermit-abi", "libc", ] @@ -2594,11 +2376,12 @@ dependencies = [ "askalono", "byte-unit", "bytecount", - "clap 4.3.21", + "clap", "clap_complete", "criterion", "crossbeam-channel", "enable-ansi-support", + "gengo", "git2", "gix", "gix-features 0.31.1", @@ -2613,7 +2396,7 @@ dependencies = [ "onefetch-image", "onefetch-manifest", "owo-colors", - "parking_lot 0.12.1", + "parking_lot", "pretty_assertions", "regex", "rstest", @@ -2624,7 +2407,6 @@ dependencies = [ "tera", "time", "time-humanize", - "tokei", "typetag", "winres", "yaml-rust", @@ -2643,7 +2425,7 @@ version = "2.18.1" dependencies = [ "anyhow", "base64", - "clap 4.3.21", + "clap", "color_quant", "image", "libc", @@ -2682,17 +2464,6 @@ version = "3.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c1b04fb49957986fdce4d6ee7a65027d55d4b6d2265e5848bbb507b58ccfdb6f" -[[package]] -name = "parking_lot" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99" -dependencies = [ - "instant", - "lock_api", - "parking_lot_core 0.8.6", -] - [[package]] name = "parking_lot" version = "0.12.1" @@ -2700,21 +2471,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" dependencies = [ "lock_api", - "parking_lot_core 0.9.8", -] - -[[package]] -name = "parking_lot_core" -version = "0.8.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60a2cfe6f0ad2bfc16aefa463b497d5c7a5ecd44a23efa72aa342d90177356dc" -dependencies = [ - "cfg-if", - "instant", - "libc", - "redox_syscall 0.2.16", - "smallvec", - "winapi", + "parking_lot_core", ] [[package]] @@ -2730,15 +2487,6 @@ dependencies = [ "windows-targets 0.48.1", ] -[[package]] -name = "parse-zoneinfo" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c705f256449c60da65e11ff6626e0c16a0a0b96aaa348de61376b249bc340f41" -dependencies = [ - "regex", -] - [[package]] name = "paste" version = "1.0.12" @@ -2795,45 +2543,6 @@ dependencies = [ "sha2", ] -[[package]] -name = "phf" -version = "0.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259" -dependencies = [ - "phf_shared", -] - -[[package]] -name = "phf_codegen" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fb1c3a8bc4dd4e5cfce29b44ffc14bedd2ee294559a294e2a4d4c9e9a6a13cd" -dependencies = [ - "phf_generator", - "phf_shared", -] - -[[package]] -name = "phf_generator" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6" -dependencies = [ - "phf_shared", - "rand", -] - -[[package]] -name = "phf_shared" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096" -dependencies = [ - "siphasher", - "uncased", -] - [[package]] name = "pin-project" version = "1.1.1" @@ -2913,12 +2622,6 @@ dependencies = [ "miniz_oxide 0.7.1", ] -[[package]] -name = "ppv-lite86" -version = "0.2.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" - [[package]] name = "pretty_assertions" version = "1.4.0" @@ -2968,36 +2671,6 @@ dependencies = [ "proc-macro2", ] -[[package]] -name = "rand" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" -dependencies = [ - "libc", - "rand_chacha", - "rand_core", -] - -[[package]] -name = "rand_chacha" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" -dependencies = [ - "ppv-lite86", - "rand_core", -] - -[[package]] -name = "rand_core" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" -dependencies = [ - "getrandom", -] - [[package]] name = "rayon" version = "1.7.0" @@ -3038,24 +2711,13 @@ dependencies = [ "bitflags 1.3.2", ] -[[package]] -name = "redox_users" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" -dependencies = [ - "getrandom", - "redox_syscall 0.2.16", - "thiserror", -] - [[package]] name = "regex" version = "1.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "81bc1d4caf89fac26a70747fe603c130093b53c773888797a6329091246d651a" dependencies = [ - "aho-corasick 1.0.2", + "aho-corasick", "memchr", "regex-automata", "regex-syntax", @@ -3067,7 +2729,7 @@ version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fed1ceff11a1dddaee50c9dc8e4938bd106e9d89ae372f192311e7da498e3b69" dependencies = [ - "aho-corasick 1.0.2", + "aho-corasick", "memchr", "regex-syntax", ] @@ -3311,12 +2973,6 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "420acb44afdae038210c99e69aae24109f32f15500aa708e81d46c9f29d55fcf" -[[package]] -name = "siphasher" -version = "0.3.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de" - [[package]] name = "slab" version = "0.4.8" @@ -3326,15 +2982,6 @@ dependencies = [ "autocfg", ] -[[package]] -name = "slug" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3bc762e6a4b6c6fcaade73e77f9ebc6991b676f88bb2358bddb56560f073373" -dependencies = [ - "deunicode", -] - [[package]] name = "smallvec" version = "1.10.0" @@ -3356,12 +3003,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" -[[package]] -name = "strsim" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" - [[package]] name = "strsim" version = "0.10.0" @@ -3431,51 +3072,17 @@ version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a5ab29bb4f3e256ae6ad5c3e2775aa1f8829f2c0c101fc407bfd3a6df15c60c5" dependencies = [ - "chrono", - "chrono-tz", "globwalk", - "humansize", "lazy_static", - "percent-encoding", "pest", "pest_derive", - "rand", "regex", "serde", "serde_json", - "slug", "thread_local", "unic-segment", ] -[[package]] -name = "term_size" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e4129646ca0ed8f45d09b929036bafad5377103edd06e50bf574b353d2b08d9" -dependencies = [ - "libc", - "winapi", -] - -[[package]] -name = "termcolor" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be55cf8942feac5c765c2c993422806843c9a9a45d4d5c407ad6dd2ea95eb9b6" -dependencies = [ - "winapi-util", -] - -[[package]] -name = "textwrap" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" -dependencies = [ - "unicode-width", -] - [[package]] name = "thiserror" version = "1.0.40" @@ -3580,34 +3187,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" -[[package]] -name = "tokei" -version = "12.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a41f915e075a8a98ad64a5f7be6b7cc1710fc835c5f07e4a3efcaeb013291c00" -dependencies = [ - "aho-corasick 0.7.20", - "clap 2.34.0", - "crossbeam-channel", - "dashmap", - "dirs", - "encoding_rs_io", - "env_logger", - "grep-searcher", - "ignore", - "log", - "num-format", - "once_cell", - "parking_lot 0.11.2", - "rayon", - "regex", - "serde", - "serde_json", - "tera", - "term_size", - "toml 0.5.11", -] - [[package]] name = "toml" version = "0.5.11" @@ -3696,15 +3275,6 @@ dependencies = [ "arrayvec", ] -[[package]] -name = "uncased" -version = "0.9.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b9bc53168a4be7402ab86c3aad243a84dd7381d09be0eddc81280c1da95ca68" -dependencies = [ - "version_check", -] - [[package]] name = "unic-char-property" version = "0.9.0" @@ -3782,12 +3352,6 @@ dependencies = [ "tinyvec", ] -[[package]] -name = "unicode-width" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b" - [[package]] name = "unsafe-libyaml" version = "0.2.8" @@ -3832,12 +3396,6 @@ version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" -[[package]] -name = "vec_map" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" - [[package]] name = "version_check" version = "0.9.4" diff --git a/Cargo.toml b/Cargo.toml index 7e8923815..3f13466b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,6 +37,7 @@ bytecount = "0.6.3" clap.workspace = true clap_complete = "4.3.2" crossbeam-channel = "0.5.8" +gengo = "0.3" gix-features-for-configuration-only = { package = "gix-features", version = "0.31.0", features = [ "zlib-ng", ] } @@ -61,7 +62,6 @@ serde_yaml = "0.9.25" strum.workspace = true time = { version = "0.3.25", features = ["formatting"] } time-humanize = { version = "0.1.3", features = ["time"] } -tokei = "12.1.2" typetag = "0.2" yaml-rust = "0.4.5" parking_lot = "0.12" From 1cddb8adb64cb42f7e6deca2f172c53d4e29bb07 Mon Sep 17 00:00:00 2001 From: Spenser Black Date: Fri, 25 Aug 2023 13:36:10 -0400 Subject: [PATCH 02/22] Update naming of gengo's currently supported languages --- languages.yaml | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/languages.yaml b/languages.yaml index fc45e0779..3e9bf076f 100644 --- a/languages.yaml +++ b/languages.yaml @@ -1,4 +1,4 @@ -Abap: +ABAP: type: programming ascii: | {0}xxxxxxxxxxxxxxxxxxxx @@ -104,7 +104,7 @@ Assembly: - yellow - green chip: "#6E4C13" -AutoHotKey: +AutoHotkey: type: programming ascii: | {1} .----------------. @@ -346,7 +346,7 @@ Coq: - "#BF8C5E" - "#D5BE99" chip: "#D0B68C" -Cpp: +"C++": type: programming ascii: | {0} ++++++ @@ -413,7 +413,7 @@ Crystal: - white - black chip: "#000100" -CSharp: +"C#": type: programming ascii: | {0} ++++++ @@ -452,7 +452,7 @@ CSharp: - "#FFFFFF" chip: "#178600" serialization: c# -Css: +CSS: type: markup ascii: | {1} #### #### #### @@ -551,7 +551,7 @@ Dockerfile: - white - cyan chip: "#384D54" -Elisp: +Emacs Lisp: type: programming ascii: | {0} ':r\iv7i|r:' @@ -797,7 +797,7 @@ FortranModern: - yellow - red chip: "#4D41B1" -FSharp: +"F#": type: programming ascii: | {0} / {1}(( @@ -920,7 +920,7 @@ Go: - "#FFFFFF" - "#F6D2A2" chip: "#00ADD8" -Graphql: +GraphQL: type: data ascii: | {0} {}{}{} @@ -1138,7 +1138,7 @@ HolyC: - "#0B449D" - "#FFFFFF" chip: "#FFEFAF" -Html: +HTML: type: markup ascii: | {1} ## ## ###### ## ## ## @@ -1252,7 +1252,7 @@ JavaScript: hex: - "#ECE653" chip: "#F1E05A" -Json: +JSON: type: data ascii: | {0} `:+osyyyso+/:` @@ -1361,7 +1361,7 @@ Julia: - red - magenta chip: "#A270BA" -Jupyter: +Jupyter Notebook: type: programming ascii: | {0} +%%%+ @@ -1803,7 +1803,7 @@ Perl6: - "#00FF39" chip: "#0000FB" serialization: raku -Php: +PHP: type: programming ascii: | {0} ################ @@ -2168,7 +2168,7 @@ Rust: - "#E43717" - "#FFFFFF" chip: "#DEA584" -Sass: +SASS: type: markup ascii: | {0} ,wppbbbbbp, @@ -2244,7 +2244,7 @@ Scheme: hex: - "#555555" chip: "#1E4AEC" -Sh: +Shell: type: programming ascii: | {0} ___ ___ ___ @@ -2304,7 +2304,7 @@ Solidity: - "#333333" - "#515151" chip: "#AA6746" -Sql: +SQL: type: data ascii: | {0} _..------.._ @@ -2489,7 +2489,7 @@ Tex: - white - black chip: "#3D6117" -Toml: +TOML: type: data ascii: | {0}[[[[[[[[ ]]]]]]]] @@ -2655,7 +2655,7 @@ Vhdl: - green - white chip: "#ADB2CB" -VimScript: +Vim Script: type: programming ascii: | {1} ________{0} ++ {1}________ @@ -2820,7 +2820,7 @@ Xaml: - "#3378CE" - "#FFFFFF" chip: "#0060AC" -Xml: +XML: type: data ascii: | {0} __{1} __ _ __ __ _ {2} __{0}__ @@ -2851,7 +2851,7 @@ XSL: ansi: - cyan chip: "#EB8CEB" -Yaml: +YAML: type: data ascii: | {0}__ __ __ __ __ _ From 723b74916b1b88e0d426cf07f384cbf9ca9ae79e Mon Sep 17 00:00:00 2001 From: Spenser Black Date: Fri, 25 Aug 2023 13:36:31 -0400 Subject: [PATCH 03/22] Remove Bash and Fish These are currently combined with Shell. --- languages.yaml | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) diff --git a/languages.yaml b/languages.yaml index 3e9bf076f..e4d64a225 100644 --- a/languages.yaml +++ b/languages.yaml @@ -126,31 +126,6 @@ AutoHotkey: - "#FFFFFF" - "#119810" chip: "#6594B9" -Bash: - type: programming - ascii: | - {0} _._ - {0} _.-' '-._ - {0} _.-' '-._ - {0} _.-' '-._ - {0}| _,-| - {0}| _,-'+++| - {0}| _,-'+++++++| - {0}| ,-'+++++++++++| - {0}| |++++ ++++++++| - {0}| |+++ +++++++| - {0}| |++ +++++++++| - {0}| |++++ +++{1}**{0}++| - {0}| |++ ++{1}**{0}++++| - {0}'-,_ |+++ ++++++_,-' - {0} '-,_ |++++++_,-' - {0} '-,_ |++_,-' - {0} '-|-' - colors: - ansi: - - white - - green - chip: "#89E051" C: type: programming ascii: | @@ -688,29 +663,6 @@ Erlang: ansi: - red chip: "#B83998" -Fish: - type: programming - ascii: | - {0} ___ - {0} ___======____=-{1}-{0}-=) - {0}/T \_{1}--={0}==) - {0}[ \ ({1}0{0}) \~ \_{1}-={0}=) - {0} \ / )J~~ \{1}-={0}) - {0} \\___/ )JJ~{1}~~{0} \) - {0} \_____/JJJ~~{1}~~{0} \ - {0} / \ {1}, \{0}J~~~{1}~~{0} \ - {0} (-{1}\){0}\=|{1}\\\{0}~~{1}~~{0} L_{1}_ - {0} (\\) ({1}\{0}\\)_ {1}\==__ - {0} \V \\\) ===_____ {1}\\\\{0}\\ - {0} \V) \_) \\{1}\\JJ\{0}J\) - {0} /J{1}\J{0}T\JJJJ) - {0} (JJJ| \UUU) - {0} (UU) - colors: - ansi: - - red - - yellow - chip: "#4AAE47" Forth: type: programming ascii: | From 96bbbbd304eab8c0d3ce58ff2a6e261216c2b72c Mon Sep 17 00:00:00 2001 From: Spenser Black Date: Fri, 25 Aug 2023 13:36:50 -0400 Subject: [PATCH 04/22] Remove JSX and TSX These are combined with JavaScript and TypeScript. --- languages.yaml | 62 -------------------------------------------------- 1 file changed, 62 deletions(-) diff --git a/languages.yaml b/languages.yaml index e4d64a225..af5048ae0 100644 --- a/languages.yaml +++ b/languages.yaml @@ -1263,37 +1263,6 @@ Jsonnet: - white - black chip: "#0064BD" -Jsx: - type: programming - ascii: | - {0}JSXJSXJSXJSXJSXJSXJSXJSXJSXJSXJSXJSX{1}JSX - {0}JSXJSXJSXJSXJSXJSXJSXJSXJSXJSXJSXJS{1}XJSX - {0}JSXJSXJSXJSXJSXJSXJSXJSXJSXJSXJSXJ{1}SXJSX - {0}JSXJSXJSXJSXJSXJSXJSXJSXJSXJSXJSX{1}JSXJSX - {0}JSXJSXJSXJSXJSXJSXJSXJSXJSXJSXJS{1}XJSXJSX - {0}JSXJSXJSXJSXJSXJSXJSXJSXJSXJSXJ{1}SXJSXJSX - {0}JSXJSXJSXJSXJSXJSXJSXJSXJSXJSX{1}JSXJSXJSX - {0}JSXJSXJSXJSXJSXJSXJSXJSXJSXJS{1}XJSXJSXJSX - {0}JSXJSXJSXJSXJSXJSXJSXJSXJSXJ{1}SXJSXJSXJSX - {0}JSXJSXJSXJSXJSXJSXJSXJSXJSX{1}JSXJSXJSXJSX - {0}JSXJSXJ SXJS XJSXJS{1}X{2}JSX{1}JSX{2}JSX{1}JSX - {0}JSXJSXJ SXJ SXJSXJSXJ{1}SXJ{2}SXJ{1}S{2}XJS{1}XJSX - {0}JSXJSXJ SXJS XJSXJSX{1}JSXJSX{2}JSX{1}JSXJSX - {0}JSXJSXJ SXJSX JSXJS{1}XJSXJS{2}XJSXJ{1}SXJSX - {0}JS XJ SXJSXJ SXJ{1}SXJSXJ{2}SXJ{1}S{2}XJS{1}XJSX - {0}JSX JS XJS{1}XJSXJS{2}XJS{1}XJS{2}XJS{1}XJS - {0}JSXJSXJSXJSXJSXJSXJS{1}XJSXJSXJSXJSXJSXJSX - {0}JSXJSXJSXJSXJSXJSXJ{1}SXJSXJSXJSXJSXJSXJSX - colors: - ansi: - - yellow - - magenta - - white - hex: - - "#ECE653" - - "#B684D3" - - "#FFFFFF" - chip: "#F1E05A" Julia: type: programming ascii: | @@ -2470,37 +2439,6 @@ TOML: - "#9C4221" - "#FFFFFF" chip: "#9C4221" -Tsx: - type: programming - ascii: | - {0}TSXTSXTSXTSXTSXTSXTSXTSXTSXTSXTSXTSX{1}TSX - {0}TSXTSXTSXTSXTSXTSXTSXTSXTSXTSXTSXTS{1}XTSX - {0}TSXTSXTSXTSXTSXTSXTSXTSXTSXTSXTSXT{1}SXTSX - {0}TSXTSXTSXTSXTSXTSXTSXTSXTSXTSXTSX{1}TSXTSX - {0}TSXTSXTSXTSXTSXTSXTSXTSXTSXTSXTS{1}XTSXTSX - {0}TSXTSXTSXTSXTSXTSXTSXTSXTSXTSXT{1}SXTSXTSX - {0}TSXTSXTSXTSXTSXTSXTSXTSXTSXTSX{1}TSXTSXTSX - {0}TSXTSXTSXTSXTSXTSXTSXTSXTSXTS{1}XTSXTSXTSX - {0}TSXTSXTSXTSXTSXTSXTSXTSXTSXT{1}SXTSXTSXTSX - {0}TSXTSXTSXTSXTSXTSXTSXTSXTSX{1}TSXTSXTSXTSX - {0}TS{2}XTSXTSXTS{0}XTSX{2}TSXTSX{0}TSXTS{1}X{2}TSX{1}TSX{2}TSX{1}TSX - {0}TSXTS{2}XTS{0}XTSXTS{2}XTS{0}XTSXTSXT{1}SXT{2}SXT{1}S{2}XTS{1}XTSX - {0}TSXTS{2}XTS{0}XTSXTSX{2}TSX{0}TSXTSX{1}TSXTSX{2}TSX{1}TSXTSX - {0}TSXTS{2}XTS{0}XTSXTSXT{2}SXT{0}SXTS{1}XTSXTS{2}XTSXT{1}TSTSX - {0}TSXTS{2}XTS{0}XTSXTSXTS{2}XTS{0}XT{1}SXTSXT{2}SXT{1}S{2}XTS{1}XTSX - {0}TSXTS{2}XTS{0}XTSXT{2}SXTSXT{0}SX{1}TSXTSX{2}TSX{1}TSX{2}TSX{1}TSX - {0}TSXTSXTSXTSXTSXTSXTS{1}XTSXTSXTSXTSXTSXTSX - {0}TSXTSXTSXTSXTSXTSXT{1}SXTSXTSXTSXTSXTSXTSX - colors: - ansi: - - cyan - - magenta - - white - hex: - - "#007ACC" - - "#8A53A6" - - "#FFFFFF" - chip: "#2B7489" TypeScript: type: programming ascii: | From cce80254eb7d98d34c25e14b7e596251872dd208 Mon Sep 17 00:00:00 2001 From: Spenser Black Date: Fri, 25 Aug 2023 13:39:51 -0400 Subject: [PATCH 05/22] Remove `type: ` entries Gengo will report the type (category) of the detected language. --- languages.yaml | 87 -------------------------------------------------- 1 file changed, 87 deletions(-) diff --git a/languages.yaml b/languages.yaml index af5048ae0..45c79ca7e 100644 --- a/languages.yaml +++ b/languages.yaml @@ -1,5 +1,4 @@ ABAP: - type: programming ascii: | {0}xxxxxxxxxxxxxxxxxxxx {0}xx{1}###{0}xxx{1}##{0}xx{1}####{0}xxx{1} ## #### ## #### @@ -17,7 +16,6 @@ ABAP: - "#EEEEEE" chip: "#E8274B" ABNF: - type: data ascii: | {0} ______ {0} | | @@ -46,7 +44,6 @@ ABNF: - "#888888" chip: "#555e25" Ada: - type: programming ascii: | {0} * {0} * @@ -80,7 +77,6 @@ Ada: - "#0C0A7C" chip: "#02F88C" Assembly: - type: programming ascii: | {0} __________________________ {0} / \ @@ -105,7 +101,6 @@ Assembly: - green chip: "#6E4C13" AutoHotkey: - type: programming ascii: | {1} .----------------. {1}| .--------------. | @@ -127,7 +122,6 @@ AutoHotkey: - "#119810" chip: "#6594B9" C: - type: programming ascii: | {0} ++++++ {0} ++++++++++++ @@ -165,7 +159,6 @@ C: - "#FFFFFF" chip: "#555555" Ceylon: - type: programming ascii: | {1} @@ {1} @@ @@ -195,7 +188,6 @@ Ceylon: - "#AB7008" chip: "#DFA535" Clojure: - type: programming ascii: | {0} ,...., {0} ,oooooooooooooo, @@ -223,7 +215,6 @@ Clojure: - green chip: "#DB5855" CMake: - type: programming ascii: | {0} ;e{2}` {0} ;QD{2}?` @@ -246,7 +237,6 @@ CMake: - black chip: "#DA3434" CoffeeScript: - type: programming ascii: | {0} ##### ###### {0} ### ### ### @@ -267,7 +257,6 @@ CoffeeScript: - red chip: "#244776" ColdFusion: - type: programming ascii: | {0}CfCfCfCfCfCfCfCfCfCfCfCfCfCfCfCfCfCf {0}Cf{1}@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@{0}Cf @@ -294,7 +283,6 @@ ColdFusion: - "#274550" chip: "#ed2cd6" Coq: - type: programming ascii: | {0} :::::::: {0} ::::::::::: @@ -322,7 +310,6 @@ Coq: - "#D5BE99" chip: "#D0B68C" "C++": - type: programming ascii: | {0} ++++++ {0} ++++++++++++ @@ -361,7 +348,6 @@ Coq: chip: "#F34B7D" serialization: c++ Crystal: - type: programming ascii: | {0} ,loc;'.. {0} ,xNMMMWNXK0kdl,.. @@ -389,7 +375,6 @@ Crystal: - black chip: "#000100" "C#": - type: programming ascii: | {0} ++++++ {0} ++++++++++++ @@ -457,7 +442,6 @@ CSS: - white chip: "#563D7C" D: - type: programming ascii: | {0} DDD {0}DDDDDDDDDDDDDDDDDDDDDD DDDDD @@ -479,7 +463,6 @@ D: - red chip: "#BA595E" Dart: - type: programming ascii: | {0}# {0} ## @@ -510,7 +493,6 @@ Dart: - "#01597D" chip: "#00B4AB" Dockerfile: - type: programming ascii: | {2} ## {0} . {2} ## ## ## {0} == @@ -527,7 +509,6 @@ Dockerfile: - cyan chip: "#384D54" Emacs Lisp: - type: programming ascii: | {0} ':r\iv7i|r:' {0} :LFaZZZaaaoooo2t\: @@ -551,7 +532,6 @@ Emacs Lisp: chip: "#C065DB" serialization: emacs-lisp Elixir: - type: programming ascii: | {0} x {0} WNX @@ -579,7 +559,6 @@ Elixir: - magenta chip: "#6E4A7E" Elm: - type: programming ascii: | {0} {1}ElmElmElmElm {3}ElmElmElmElmElm {0}El {1}mElmElmElmEl {3}mElmElmElmElm @@ -607,7 +586,6 @@ Elm: - cyan chip: "#60B5CC" Emojicode: - type: programming ascii: | {0}~~ {0} ~~ @@ -645,7 +623,6 @@ Emojicode: - "#744EAA" chip: "#60B5CC" Erlang: - type: programming ascii: | {0} EEEEEEEEEEEEE EEEEEEEEEEEE {0} EEEEEEEEEEEE EEEEEEEEEEEE @@ -664,7 +641,6 @@ Erlang: - red chip: "#B83998" Forth: - type: programming ascii: | {0}:::::::::::::::::::::::::::::::::::::::: {0}:::::::::::::::::::::::::::::::::::::::: @@ -691,7 +667,6 @@ Forth: - red chip: "#341708" FortranLegacy: - type: programming ascii: | {4} _ {1}__ __ {4} _|_ {1} / / @@ -721,7 +696,6 @@ FortranLegacy: chip: "#4D41B1" serialization: fortran FortranModern: - type: programming ascii: | {4} _{1} _ _ {4} _|_{1}(_|/ \ @@ -750,7 +724,6 @@ FortranModern: - red chip: "#4D41B1" "F#": - type: programming ascii: | {0} / {1}(( {0} /// {1}(((( @@ -777,7 +750,6 @@ FortranModern: chip: "#B845FC" serialization: f# GdScript: - type: programming ascii: | {0} _.aMb dMe._ {0} 'H8888b, ,d8888H' @@ -806,7 +778,6 @@ GdScript: - "#FFFFFF" chip: "#355570" Glsl: - type: programming ascii: | {0} ,,@@@@@@@@@@@@@@@@@.. {0} ,@@@@@@@@@@@@@@@@@@@@@@@. @@ -836,7 +807,6 @@ Glsl: - "#bc258e" chip: "#5686a5" Go: - type: programming ascii: | {0} --==============-- {0} .-==-.===oooo=oooooo=ooooo===--===- @@ -901,7 +871,6 @@ GraphQL: - magenta chip: "#E10098" Groovy: - type: programming ascii: | {0} * {0} *** @@ -932,7 +901,6 @@ Groovy: - white chip: "#4298B8" Haskell: - type: programming ascii: | {0}yyyyyy{1} xxxxxx {0} yyyyyy{1} xxxxxx @@ -958,7 +926,6 @@ Haskell: - "#8F4E8B" chip: "#5E5086" Haxe: - type: programming ascii: | {0}############# {2}@@@@@@@@@@@@@ {0}################# {2}@@@@@@@@@@@@@@@@@ @@ -991,7 +958,6 @@ Haxe: - "#F47216" chip: "#DF7900" Hcl: - type: programming ascii: | {0}:: {0}:::: @@ -1024,7 +990,6 @@ Hcl: - "#4040B2" chip: "#AACE60" Hlsl: - type: programming ascii: | {0}████████████████ {1}████████████████ {0}█████ ██ █████ {1}█████ █████████ @@ -1054,7 +1019,6 @@ Hlsl: - "#FFBB00" chip: "#AACE60" HolyC: - type: programming ascii: | {0} ======== {0} ==== ==== @@ -1120,7 +1084,6 @@ HTML: - white chip: "#E34C26" Idris: - type: programming ascii: | {0} % {0} % @@ -1145,7 +1108,6 @@ Idris: - red chip: "#B30000" Java: - type: programming ascii: | {0} | {0} || @@ -1178,7 +1140,6 @@ Java: - "#1665C0" chip: "#B07219" JavaScript: - type: programming ascii: | {0}JSJSJSJSJSJSJSJSJSJSJSJSJSJSJSJSJSJSJS {0}JSJSJSJSJSJSJSJSJSJSJSJSJSJSJSJSJSJSJS @@ -1231,7 +1192,6 @@ JSON: - black chip: "#292929" Jsonnet: - type: programming ascii: | {0} . . {0} /{1}:{0}\ /{1}:{0}\ @@ -1264,7 +1224,6 @@ Jsonnet: - black chip: "#0064BD" Julia: - type: programming ascii: | {0} {2}_ {0} {1}_ {0}_ {3}_{2}(_){4}_ @@ -1283,7 +1242,6 @@ Julia: - magenta chip: "#A270BA" Jupyter Notebook: - type: programming ascii: | {0} +%%%+ {0} $$$$$$$ @@ -1320,7 +1278,6 @@ Jupyter Notebook: chip: "#DA5B0B" serialization: jupyter-notebooks Kotlin: - type: programming ascii: | {0}KOTLIN{2}KOTLINKOTLINKO{1}TLINKOTLINKOTLINKOTL {0}KOTLINKO{2}TLINKOTLIN{1}KOTLINKOTLINKOTLINKO @@ -1349,7 +1306,6 @@ Kotlin: - magenta chip: "#A97BFF" Lisp: - type: programming ascii: | {0} ............ {0} ********.............. @@ -1376,7 +1332,6 @@ Lisp: - white chip: "#3FB68B" LLVM: - type: programming ascii: | {0}KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK {0}KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK @@ -1404,7 +1359,6 @@ LLVM: - "#98012E" chip: "#185619" Lua: - type: programming ascii: | {1} -- -- {1} -- --{0} @@@@ @@ -1436,7 +1390,6 @@ Lua: - "#FFFFFF" chip: "#000080" Makefile: - type: programming ascii: | {0} _-`````-, ,- '- . {0} .' .- - | | - -. `. @@ -1493,7 +1446,6 @@ Markdown: chip: "#083FA1" line_types: [code, comments] Nim: - type: programming ascii: | {0} ++ {0} ++ ++++++ ++ @@ -1519,7 +1471,6 @@ Nim: - white chip: "#FFC200" Nix: - type: programming ascii: | {1} :::. {0}'::::: ::::' {1} ':::: {0}':::::. ::::' @@ -1546,7 +1497,6 @@ Nix: - blue chip: "#7E7EFF" ObjectiveC: - type: programming ascii: | {0}888 888 {0}8 8888 8 8 8888 8 @@ -1567,7 +1517,6 @@ ObjectiveC: chip: "#438EFF" serialization: objective-c OCaml: - type: programming ascii: | {0}/////////////////////////////////////// {0}/////////////////////////////////////// @@ -1591,7 +1540,6 @@ OCaml: - yellow chip: "#3BE133" Odin: - type: programming ascii: | {0} @@@@@@@@@ {0} @@@@ @@@ @@@ @@ -1646,7 +1594,6 @@ Org: - white chip: "#77AA99" Pascal: - type: programming ascii: | {0}█████{1}╗ {0}████{1}╗ {0}█████{1}╗ {0}████{1}╗ {0}████{1}╗ {0}██{1}╗ {0}██{1}╔═{0}██{1}╗{0}██{1}╔═{0}██{1}╗{0}██{1}╔══╝{0}██{1}╔══╝{0}██{1}╔═{0}██{1}╗{0}██{1}║ @@ -1660,7 +1607,6 @@ Pascal: - white chip: "#E3F171" Perl: - type: programming ascii: | {0} ###### {0} ### ######### @@ -1689,7 +1635,6 @@ Perl: - cyan chip: "#0298C3" Perl6: - type: programming ascii: | {0} +@8DM#8W, {0}#DM"{1},ypy,{0}"8# @@ -1725,7 +1670,6 @@ Perl6: chip: "#0000FB" serialization: raku PHP: - type: programming ascii: | {0} ################ {0} ##########{1}/ |{0}############## @@ -1746,7 +1690,6 @@ PHP: - "#FFFFFF" chip: "#4F5D95" PowerShell: - type: programming ascii: | {0} ######################### {0} ####{1}####{0}################# @@ -1767,7 +1710,6 @@ PowerShell: - "#FFFFFF" chip: "#012456" Processing: - type: programming ascii: | {0} PPPPPPPPPPPP {0} PPPPPPPPPPPPPPPPPPPP @@ -1795,7 +1737,6 @@ Processing: - "#FFFFFF" chip: "#0096D8" Prolog: - type: programming ascii: | {0} ############ # {0} ################# #### @@ -1819,7 +1760,6 @@ Prolog: - white chip: "#74283C" Protobuf: - type: programming ascii: | {0} ;;;;;;;; {2}:::::::: {0} ;;;;;;;; {2}:::::::: @@ -1843,7 +1783,6 @@ Protobuf: chip: "#74283C" serialization: protocol-buffers PureScript: - type: programming ascii: | {0} \\\\\\\\\\\\\\ \\\\\ {0} \\\\\\\\\\\\\\ \\\\\ @@ -1858,7 +1797,6 @@ PureScript: - white chip: "#1D222D" Python: - type: programming ascii: | {0} ========= {0} =============== @@ -1891,7 +1829,6 @@ Python: - "#FFD940" chip: "#3572A5" Qml: - type: programming ascii: | {0}**************************************** {0}**************************************** @@ -1924,7 +1861,6 @@ Qml: - "#4D7528" chip: "#44A51C" R: - type: programming ascii: | {0} .,,,,,,,,,,,,, {0} ,,,,,,,,,,,,,,,,,******** @@ -1946,7 +1882,6 @@ R: - blue chip: "#198CE7" Racket: - type: programming ascii: | {0} {2}.:--::////::--.` {0} {1}`/yNMMNho{2}////////////:. @@ -1975,7 +1910,6 @@ Racket: - blue chip: "#3C5CAA" Renpy: - type: programming ascii: | {0} ++++++ {0} ++++++++++ @@ -2021,7 +1955,6 @@ Renpy: - "#B5A396" chip: "#FF7F7F" Ruby: - type: programming ascii: | {0} ###{2}###{3}###{4}#{1}.{4}# {0} ###{2}###{3}###{4}##{1}.{5}## @@ -2063,7 +1996,6 @@ Ruby: - "#971A0D" chip: "#701516" Rust: - type: programming ascii: | {0} R RR RR {0} R RRRRRRRR R R @@ -2113,7 +2045,6 @@ SASS: - "#CD6799" chip: "#A53B70" Scala: - type: programming ascii: | {0} + {0} +++ @@ -2144,7 +2075,6 @@ Scala: - "#7F0C1D" chip: "#C22D40" Scheme: - type: programming ascii: | {0} //// {0} // // @@ -2166,7 +2096,6 @@ Scheme: - "#555555" chip: "#1E4AEC" Shell: - type: programming ascii: | {0} ___ ___ ___ {0} #### #### #### @@ -2188,7 +2117,6 @@ Shell: chip: "#89E051" serialization: shell Solidity: - type: programming ascii: | {0}MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM {0}MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM @@ -2279,7 +2207,6 @@ Svelte: - "#FFFFFF" chip: "#FF3E00" Swift: - type: programming ascii: | {0} : {0} :: @@ -2330,7 +2257,6 @@ Swift: - "#FD2822" chip: "#F05138" SystemVerilog: - type: programming ascii: | {0} _.._ _.._ _.._ _.._ {0} _.._ _.._ _.._ _.._ @@ -2359,7 +2285,6 @@ SystemVerilog: - white chip: "#DAE1C2" Tcl: - type: programming ascii: | {0} // {2} . /{0}//// @@ -2440,7 +2365,6 @@ TOML: - "#FFFFFF" chip: "#9C4221" TypeScript: - type: programming ascii: | {0}TSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTS {0}TSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTS @@ -2469,7 +2393,6 @@ TypeScript: - "#FFFFFF" chip: "#2B7489" Vala: - type: programming ascii: | {0} ################################### {0}##################################### @@ -2496,7 +2419,6 @@ Vala: - white chip: "#A56DE2" Verilog: - type: programming ascii: | {0} _.._ _.._ _.._ {0} _.._ _.._ _.._ @@ -2524,7 +2446,6 @@ Verilog: - magenta chip: "#b2b7f8" Vhdl: - type: programming ascii: | {0} | | | | {0} {1}------------ @@ -2546,7 +2467,6 @@ Vhdl: - white chip: "#ADB2CB" Vim Script: - type: programming ascii: | {1} ________{0} ++ {1}________ {1} /{2}VVVVVVVV{1}\{0}++++ {1}/{2}VVVVVVVV{1}\ @@ -2570,7 +2490,6 @@ Vim Script: - white chip: "#199F4B" VisualBasic: - type: programming ascii: | {1} :::::::::: {1} :::::::::::::::::: @@ -2600,7 +2519,6 @@ VisualBasic: - "#FFFFFF" chip: "#945db7" Vue: - type: programming ascii: | {0}VUE{1}\\\\\ /////{0}VUE {0} VUE{1}\\\\\ /////{0}VUE @@ -2623,7 +2541,6 @@ Vue: - blue chip: "#199F4B" WebAssembly: - type: programming ascii: | {0}::::::::::: :::::::::::: {0}:::::::::::: ::::::::::::: @@ -2650,7 +2567,6 @@ WebAssembly: - "#FFFFFF" chip: "#04133B" Wolfram: - type: programming ascii: | {0} OOOOOOOOOOOOOO {0} OOOOOO OOOOOOOOOOOOOO @@ -2724,7 +2640,6 @@ XML: - green chip: "#0060AC" XSL: - type: programming ascii: | {0} ::: {0} ::::: ::: ::::: @@ -2756,7 +2671,6 @@ YAML: - white chip: "#CB171E" Zig: - type: programming ascii: | {0} z {0} zzz @@ -2781,7 +2695,6 @@ Zig: - yellow chip: "#EC915C" Zsh: - type: programming ascii: | {0}ZSHZSHZSHZSHZSHZSHZSHZSHZSHZSHZS {0}ZSHZSHZSHZSHZSHZSHZSHZSHZSHZSHZS From 07dd12f83aab046d5501ca686624a291e103d0de Mon Sep 17 00:00:00 2001 From: Spenser Black Date: Fri, 25 Aug 2023 13:43:04 -0400 Subject: [PATCH 06/22] Remove `LanguageType` --- src/info/langs/language.tera | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/info/langs/language.tera b/src/info/langs/language.tera index 869fff140..9320a74be 100644 --- a/src/info/langs/language.tera +++ b/src/info/langs/language.tera @@ -11,14 +11,6 @@ pub struct Colors { true_colors: Option>, } -#[derive(Clone, PartialEq, Eq, Debug, clap::ValueEnum)] -pub enum LanguageType { - Programming, - Markup, - Prose, - Data, -} - #[derive(Clone, Copy, PartialEq, Eq, Hash, EnumIter, clap::ValueEnum, Debug, Serialize)] #[allow(clippy::upper_case_acronyms)] #[clap(rename_all = "lowercase")] @@ -91,14 +83,6 @@ impl Language { } } - pub fn get_type(&self) -> LanguageType { - match self { - {% for language, attrs in languages -%} - Language::{{ language }} => LanguageType::{{ attrs.type | title }}, - {% endfor %} - } - } - pub fn get_circle_color(&self) -> DynColors { match self { {% for language, attrs in languages -%} From c6913f3ea62fe92647b24e22e633c0a418c895e8 Mon Sep 17 00:00:00 2001 From: Spenser Black Date: Fri, 25 Aug 2023 14:36:56 -0400 Subject: [PATCH 07/22] Slugify language names for preview title IDs --- docs/vercel/src/lib/TitleLink.svelte | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/vercel/src/lib/TitleLink.svelte b/docs/vercel/src/lib/TitleLink.svelte index 5ca939ecf..d56f99bb7 100644 --- a/docs/vercel/src/lib/TitleLink.svelte +++ b/docs/vercel/src/lib/TitleLink.svelte @@ -1,8 +1,15 @@ -

{name}

+

{name}