~/code/other/hi.nvim.rs/.. 28 struct Cli { 1 [package]   .git 29 /// The compilation target. When Vim is chosen as target, highlig 2 name = "hi-nvim-rs"   .github 30 /// names are removed. Supported characters in Vim correspond to 3 version = "0.2.0"   colorschemes 31 /// Neovim adds two characters, supporting regexp [a-zA-Z0-9_\.@] 4 edition = "2021"   default_highlights 32 # [ arg ( short , long , value_name = "target" , value_enum , default_val│ 5 description = "(Neo)vim perceptual color scheme com   hi-nvim-rs-web 33 target : Target , 6 keywords = [ "neovim" , "vim" , "colorscheme" , "theme"   hi-nvim-rs-web-styler   │ 34 7 license = "MIT OR Apache-2.0"   media 35 /// Color scheme input file. Reads from standard input if not set 8 readme = "README.md"   scripts 36 // TODO: perhaps accept multiple files, merging the configuration 9 repository = "https://github.com/tomcur/hi-nvim-rs"   src 37 // configurations overridden by more specific configurations) 10  .gitignore 38 file : Option < PathBuf >, 11 [dependencies] 20240721_13h12m43s_grim. 39 } 12 anyhow = "1"  build.rs 40 13 clap = { version = "4.3" , features = [ "derive" ] }  Cargo.lock 41 fn main () -> anyhow :: Result <()> { 14 palette = "0.7.6" Cargo.toml 42 let cli = Cli :: parse (); 15 palette-gamut-mapping = "0.1.0"  CHANGELOG.md 43 16 serde = { version = "1" , features = [ "derive" ] }  flake.lock 44 let config = if let Some ( file ) = cli . file { 17 thiserror = "1"  flake.nix 45 std :: fs :: read_to_string ( file ) ? 18 toml = "0.5"  highlow.lua 46 } else { 19  LICENSE-APACHE 47 let mut config = String :: with_capacity ( 16_384 /* 16 KiB */ ); 20 [build-dependencies]  LICENSE-MIT 48 std :: io :: stdin (). read_to_string ( &mut config ). unwrap (); 21 anyhow = "1" README.md 49 config 22 serde = { version = "1" , features = [ "derive" ] }  release-plz.toml 50 }; 23 toml = { version = "0.8" }  rustfmt.toml 51 24 ~ 52 let colorscheme = colorscheme :: parse ( & config ) ? ; 25 [workspace] ~ 53 26 members = [ ~ 54 let program = match cli . target { 27 "hi-nvim-rs-web" , ~ 55 Target :: Neovim => compiler_neovim :: compile ( & colorscheme ) ? , 28 "hi-nvim-rs-web-styler" , ~ 56 Target :: Vim => compiler_vim :: compile ( & colorscheme ) ? , 29 ] ~ 57 }; ~ ~ 58 ~ ~ 59 println! ( "{}" , & program ); ~ ~ │./src/main.rs                                          41,1           87% ./Cargo.toml                         1,1            All ~ ├╴ default_highlights default_highlights; [11, 9] ~ ├╴ error error; [12, 16] ~ ├╴ modifiers modifiers; [13, 16] ~ ├╴ Target Target { [18, 6] ~ │ ├╴ Neovim Neovim, [19, 5] ~ │ └╴ Vim Vim, [20, 5] ~ ├╴ 󰆼 Cli Cli { [28, 8] ~ │ ├╴   target target: Target, [33, 5] ~ │ └╴   file file: Option<PathBuf>, [38, 5] ~ └╴󰊕 main main() -> anyhow::Result<()> { [41, 4] NvimTree_1     1,1         All [Scratch]                                                                                                      17,2           Bot /fn main [1/1]