├── .github └── workflows │ └── rust-build-test.yaml ├── .gitignore ├── .vscode └── settings.json ├── Cargo.lock ├── Cargo.toml ├── LICENSE-Apache-2.0 ├── LICENSE-MIT ├── README.md ├── docs └── screenshot.png └── src └── main.rs /.github/workflows/rust-build-test.yaml: -------------------------------------------------------------------------------- 1 | name: Rust 2 | 3 | on: 4 | push: 5 | branches: ["main"] 6 | pull_request: 7 | branches: ["main"] 8 | 9 | env: 10 | CARGO_TERM_COLOR: always 11 | 12 | jobs: 13 | build: 14 | runs-on: ubuntu-latest 15 | 16 | steps: 17 | - uses: actions/checkout@v3 18 | 19 | - name: Build 20 | run: cargo build --release --verbose 21 | 22 | - name: Formatting 23 | run: cargo fmt -- --check 24 | 25 | - name: Linting 26 | run: cargo clippy --all-targets --all-features 27 | 28 | - name: Testing 29 | run: cargo test --verbose 30 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "cSpell.words": [ 3 | "Crossterm", 4 | "ratatui", 5 | "Tiron" 6 | ] 7 | } -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "adler2" 7 | version = "2.0.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" 10 | 11 | [[package]] 12 | name = "aes" 13 | version = "0.8.4" 14 | source = "registry+https://github.com/rust-lang/crates.io-index" 15 | checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" 16 | dependencies = [ 17 | "cfg-if", 18 | "cipher", 19 | "cpufeatures", 20 | ] 21 | 22 | [[package]] 23 | name = "aho-corasick" 24 | version = "0.6.10" 25 | source = "registry+https://github.com/rust-lang/crates.io-index" 26 | checksum = "81ce3d38065e618af2d7b77e10c5ad9a069859b4be3c2250f674af3840d9c8a5" 27 | dependencies = [ 28 | "memchr", 29 | ] 30 | 31 | [[package]] 32 | name = "aho-corasick" 33 | version = "1.1.3" 34 | source = "registry+https://github.com/rust-lang/crates.io-index" 35 | checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" 36 | dependencies = [ 37 | "memchr", 38 | ] 39 | 40 | [[package]] 41 | name = "allocator-api2" 42 | version = "0.2.20" 43 | source = "registry+https://github.com/rust-lang/crates.io-index" 44 | checksum = "45862d1c77f2228b9e10bc609d5bc203d86ebc9b87ad8d5d5167a6c9abf739d9" 45 | 46 | [[package]] 47 | name = "android-tzdata" 48 | version = "0.1.1" 49 | source = "registry+https://github.com/rust-lang/crates.io-index" 50 | checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" 51 | 52 | [[package]] 53 | name = "android_system_properties" 54 | version = "0.1.5" 55 | source = "registry+https://github.com/rust-lang/crates.io-index" 56 | checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" 57 | dependencies = [ 58 | "libc", 59 | ] 60 | 61 | [[package]] 62 | name = "arrayvec" 63 | version = "0.7.6" 64 | source = "registry+https://github.com/rust-lang/crates.io-index" 65 | checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" 66 | 67 | [[package]] 68 | name = "autocfg" 69 | version = "1.4.0" 70 | source = "registry+https://github.com/rust-lang/crates.io-index" 71 | checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" 72 | 73 | [[package]] 74 | name = "base64ct" 75 | version = "1.6.0" 76 | source = "registry+https://github.com/rust-lang/crates.io-index" 77 | checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" 78 | 79 | [[package]] 80 | name = "bitcode" 81 | version = "0.6.3" 82 | source = "registry+https://github.com/rust-lang/crates.io-index" 83 | checksum = "ee1bce7608560cd4bf0296a4262d0dbf13e6bcec5ff2105724c8ab88cc7fc784" 84 | dependencies = [ 85 | "arrayvec", 86 | "bitcode_derive", 87 | "bytemuck", 88 | "glam", 89 | "serde", 90 | ] 91 | 92 | [[package]] 93 | name = "bitcode_derive" 94 | version = "0.6.3" 95 | source = "registry+https://github.com/rust-lang/crates.io-index" 96 | checksum = "a539389a13af092cd345a2b47ae7dec12deb306d660b2223d25cd3419b253ebe" 97 | dependencies = [ 98 | "proc-macro2", 99 | "quote", 100 | "syn", 101 | ] 102 | 103 | [[package]] 104 | name = "bitflags" 105 | version = "1.3.2" 106 | source = "registry+https://github.com/rust-lang/crates.io-index" 107 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 108 | 109 | [[package]] 110 | name = "bitflags" 111 | version = "2.6.0" 112 | source = "registry+https://github.com/rust-lang/crates.io-index" 113 | checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" 114 | 115 | [[package]] 116 | name = "block-buffer" 117 | version = "0.10.4" 118 | source = "registry+https://github.com/rust-lang/crates.io-index" 119 | checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" 120 | dependencies = [ 121 | "generic-array", 122 | ] 123 | 124 | [[package]] 125 | name = "bumpalo" 126 | version = "3.16.0" 127 | source = "registry+https://github.com/rust-lang/crates.io-index" 128 | checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" 129 | 130 | [[package]] 131 | name = "bytemuck" 132 | version = "1.19.0" 133 | source = "registry+https://github.com/rust-lang/crates.io-index" 134 | checksum = "8334215b81e418a0a7bdb8ef0849474f40bb10c8b71f1c4ed315cff49f32494d" 135 | 136 | [[package]] 137 | name = "byteorder" 138 | version = "1.5.0" 139 | source = "registry+https://github.com/rust-lang/crates.io-index" 140 | checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" 141 | 142 | [[package]] 143 | name = "bzip2" 144 | version = "0.4.4" 145 | source = "registry+https://github.com/rust-lang/crates.io-index" 146 | checksum = "bdb116a6ef3f6c3698828873ad02c3014b3c85cadb88496095628e3ef1e347f8" 147 | dependencies = [ 148 | "bzip2-sys", 149 | "libc", 150 | ] 151 | 152 | [[package]] 153 | name = "bzip2-sys" 154 | version = "0.1.11+1.0.8" 155 | source = "registry+https://github.com/rust-lang/crates.io-index" 156 | checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc" 157 | dependencies = [ 158 | "cc", 159 | "libc", 160 | "pkg-config", 161 | ] 162 | 163 | [[package]] 164 | name = "cassowary" 165 | version = "0.3.0" 166 | source = "registry+https://github.com/rust-lang/crates.io-index" 167 | checksum = "df8670b8c7b9dae1793364eafadf7239c40d669904660c5960d74cfd80b46a53" 168 | 169 | [[package]] 170 | name = "castaway" 171 | version = "0.2.3" 172 | source = "registry+https://github.com/rust-lang/crates.io-index" 173 | checksum = "0abae9be0aaf9ea96a3b1b8b1b55c602ca751eba1b1500220cea4ecbafe7c0d5" 174 | dependencies = [ 175 | "rustversion", 176 | ] 177 | 178 | [[package]] 179 | name = "cc" 180 | version = "1.1.37" 181 | source = "registry+https://github.com/rust-lang/crates.io-index" 182 | checksum = "40545c26d092346d8a8dab71ee48e7685a7a9cba76e634790c215b41a4a7b4cf" 183 | dependencies = [ 184 | "jobserver", 185 | "libc", 186 | "shlex", 187 | ] 188 | 189 | [[package]] 190 | name = "cfg-if" 191 | version = "1.0.0" 192 | source = "registry+https://github.com/rust-lang/crates.io-index" 193 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 194 | 195 | [[package]] 196 | name = "chrono" 197 | version = "0.4.38" 198 | source = "registry+https://github.com/rust-lang/crates.io-index" 199 | checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" 200 | dependencies = [ 201 | "android-tzdata", 202 | "iana-time-zone", 203 | "js-sys", 204 | "num-traits", 205 | "wasm-bindgen", 206 | "windows-targets", 207 | ] 208 | 209 | [[package]] 210 | name = "chrono-tz" 211 | version = "0.9.0" 212 | source = "registry+https://github.com/rust-lang/crates.io-index" 213 | checksum = "93698b29de5e97ad0ae26447b344c482a7284c737d9ddc5f9e52b74a336671bb" 214 | dependencies = [ 215 | "chrono", 216 | "chrono-tz-build", 217 | "phf", 218 | ] 219 | 220 | [[package]] 221 | name = "chrono-tz-build" 222 | version = "0.3.0" 223 | source = "registry+https://github.com/rust-lang/crates.io-index" 224 | checksum = "0c088aee841df9c3041febbb73934cfc39708749bf96dc827e3359cd39ef11b1" 225 | dependencies = [ 226 | "parse-zoneinfo", 227 | "phf", 228 | "phf_codegen", 229 | ] 230 | 231 | [[package]] 232 | name = "cipher" 233 | version = "0.4.4" 234 | source = "registry+https://github.com/rust-lang/crates.io-index" 235 | checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" 236 | dependencies = [ 237 | "crypto-common", 238 | "inout", 239 | ] 240 | 241 | [[package]] 242 | name = "compact_str" 243 | version = "0.8.0" 244 | source = "registry+https://github.com/rust-lang/crates.io-index" 245 | checksum = "6050c3a16ddab2e412160b31f2c871015704239bca62f72f6e5f0be631d3f644" 246 | dependencies = [ 247 | "castaway", 248 | "cfg-if", 249 | "itoa", 250 | "rustversion", 251 | "ryu", 252 | "static_assertions", 253 | ] 254 | 255 | [[package]] 256 | name = "constant_time_eq" 257 | version = "0.1.5" 258 | source = "registry+https://github.com/rust-lang/crates.io-index" 259 | checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" 260 | 261 | [[package]] 262 | name = "core-foundation-sys" 263 | version = "0.8.7" 264 | source = "registry+https://github.com/rust-lang/crates.io-index" 265 | checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" 266 | 267 | [[package]] 268 | name = "cpufeatures" 269 | version = "0.2.14" 270 | source = "registry+https://github.com/rust-lang/crates.io-index" 271 | checksum = "608697df725056feaccfa42cffdaeeec3fccc4ffc38358ecd19b243e716a78e0" 272 | dependencies = [ 273 | "libc", 274 | ] 275 | 276 | [[package]] 277 | name = "crc32fast" 278 | version = "1.4.2" 279 | source = "registry+https://github.com/rust-lang/crates.io-index" 280 | checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" 281 | dependencies = [ 282 | "cfg-if", 283 | ] 284 | 285 | [[package]] 286 | name = "crossbeam-utils" 287 | version = "0.8.20" 288 | source = "registry+https://github.com/rust-lang/crates.io-index" 289 | checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" 290 | 291 | [[package]] 292 | name = "crossterm" 293 | version = "0.28.1" 294 | source = "registry+https://github.com/rust-lang/crates.io-index" 295 | checksum = "829d955a0bb380ef178a640b91779e3987da38c9aea133b20614cfed8cdea9c6" 296 | dependencies = [ 297 | "bitflags 2.6.0", 298 | "crossterm_winapi", 299 | "mio", 300 | "parking_lot", 301 | "rustix", 302 | "signal-hook", 303 | "signal-hook-mio", 304 | "winapi", 305 | ] 306 | 307 | [[package]] 308 | name = "crossterm_winapi" 309 | version = "0.9.1" 310 | source = "registry+https://github.com/rust-lang/crates.io-index" 311 | checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b" 312 | dependencies = [ 313 | "winapi", 314 | ] 315 | 316 | [[package]] 317 | name = "crypto-common" 318 | version = "0.1.6" 319 | source = "registry+https://github.com/rust-lang/crates.io-index" 320 | checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" 321 | dependencies = [ 322 | "generic-array", 323 | "typenum", 324 | ] 325 | 326 | [[package]] 327 | name = "csv" 328 | version = "1.3.1" 329 | source = "registry+https://github.com/rust-lang/crates.io-index" 330 | checksum = "acdc4883a9c96732e4733212c01447ebd805833b7275a73ca3ee080fd77afdaf" 331 | dependencies = [ 332 | "csv-core", 333 | "itoa", 334 | "ryu", 335 | "serde", 336 | ] 337 | 338 | [[package]] 339 | name = "csv-core" 340 | version = "0.1.11" 341 | source = "registry+https://github.com/rust-lang/crates.io-index" 342 | checksum = "5efa2b3d7902f4b634a20cae3c9c4e6209dc4779feb6863329607560143efa70" 343 | dependencies = [ 344 | "memchr", 345 | ] 346 | 347 | [[package]] 348 | name = "csv-sniffer" 349 | version = "0.1.1" 350 | source = "registry+https://github.com/rust-lang/crates.io-index" 351 | checksum = "7b8e952164bb270a505d6cb6136624174c34cfb9abd16e0011f5e53058317f39" 352 | dependencies = [ 353 | "bitflags 1.3.2", 354 | "csv", 355 | "csv-core", 356 | "memchr", 357 | "regex 0.2.11", 358 | ] 359 | 360 | [[package]] 361 | name = "deranged" 362 | version = "0.3.11" 363 | source = "registry+https://github.com/rust-lang/crates.io-index" 364 | checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4" 365 | dependencies = [ 366 | "powerfmt", 367 | ] 368 | 369 | [[package]] 370 | name = "digest" 371 | version = "0.10.7" 372 | source = "registry+https://github.com/rust-lang/crates.io-index" 373 | checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" 374 | dependencies = [ 375 | "block-buffer", 376 | "crypto-common", 377 | "subtle", 378 | ] 379 | 380 | [[package]] 381 | name = "either" 382 | version = "1.13.0" 383 | source = "registry+https://github.com/rust-lang/crates.io-index" 384 | checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" 385 | 386 | [[package]] 387 | name = "equivalent" 388 | version = "1.0.1" 389 | source = "registry+https://github.com/rust-lang/crates.io-index" 390 | checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" 391 | 392 | [[package]] 393 | name = "errno" 394 | version = "0.3.9" 395 | source = "registry+https://github.com/rust-lang/crates.io-index" 396 | checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" 397 | dependencies = [ 398 | "libc", 399 | "windows-sys", 400 | ] 401 | 402 | [[package]] 403 | name = "flate2" 404 | version = "1.0.34" 405 | source = "registry+https://github.com/rust-lang/crates.io-index" 406 | checksum = "a1b589b4dc103969ad3cf85c950899926ec64300a1a46d76c03a6072957036f0" 407 | dependencies = [ 408 | "crc32fast", 409 | "miniz_oxide", 410 | ] 411 | 412 | [[package]] 413 | name = "foldhash" 414 | version = "0.1.3" 415 | source = "registry+https://github.com/rust-lang/crates.io-index" 416 | checksum = "f81ec6369c545a7d40e4589b5597581fa1c441fe1cce96dd1de43159910a36a2" 417 | 418 | [[package]] 419 | name = "generic-array" 420 | version = "0.14.7" 421 | source = "registry+https://github.com/rust-lang/crates.io-index" 422 | checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" 423 | dependencies = [ 424 | "typenum", 425 | "version_check", 426 | ] 427 | 428 | [[package]] 429 | name = "getrandom" 430 | version = "0.2.15" 431 | source = "registry+https://github.com/rust-lang/crates.io-index" 432 | checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" 433 | dependencies = [ 434 | "cfg-if", 435 | "libc", 436 | "wasi", 437 | ] 438 | 439 | [[package]] 440 | name = "glam" 441 | version = "0.29.2" 442 | source = "registry+https://github.com/rust-lang/crates.io-index" 443 | checksum = "dc46dd3ec48fdd8e693a98d2b8bafae273a2d54c1de02a2a7e3d57d501f39677" 444 | 445 | [[package]] 446 | name = "hashbrown" 447 | version = "0.15.1" 448 | source = "registry+https://github.com/rust-lang/crates.io-index" 449 | checksum = "3a9bfc1af68b1726ea47d3d5109de126281def866b33970e10fbab11b5dafab3" 450 | dependencies = [ 451 | "allocator-api2", 452 | "equivalent", 453 | "foldhash", 454 | ] 455 | 456 | [[package]] 457 | name = "heck" 458 | version = "0.5.0" 459 | source = "registry+https://github.com/rust-lang/crates.io-index" 460 | checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" 461 | 462 | [[package]] 463 | name = "hermit-abi" 464 | version = "0.3.9" 465 | source = "registry+https://github.com/rust-lang/crates.io-index" 466 | checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" 467 | 468 | [[package]] 469 | name = "hmac" 470 | version = "0.12.1" 471 | source = "registry+https://github.com/rust-lang/crates.io-index" 472 | checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" 473 | dependencies = [ 474 | "digest", 475 | ] 476 | 477 | [[package]] 478 | name = "iana-time-zone" 479 | version = "0.1.61" 480 | source = "registry+https://github.com/rust-lang/crates.io-index" 481 | checksum = "235e081f3925a06703c2d0117ea8b91f042756fd6e7a6e5d901e8ca1a996b220" 482 | dependencies = [ 483 | "android_system_properties", 484 | "core-foundation-sys", 485 | "iana-time-zone-haiku", 486 | "js-sys", 487 | "wasm-bindgen", 488 | "windows-core", 489 | ] 490 | 491 | [[package]] 492 | name = "iana-time-zone-haiku" 493 | version = "0.1.2" 494 | source = "registry+https://github.com/rust-lang/crates.io-index" 495 | checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" 496 | dependencies = [ 497 | "cc", 498 | ] 499 | 500 | [[package]] 501 | name = "indoc" 502 | version = "2.0.5" 503 | source = "registry+https://github.com/rust-lang/crates.io-index" 504 | checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5" 505 | 506 | [[package]] 507 | name = "inout" 508 | version = "0.1.3" 509 | source = "registry+https://github.com/rust-lang/crates.io-index" 510 | checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" 511 | dependencies = [ 512 | "generic-array", 513 | ] 514 | 515 | [[package]] 516 | name = "instability" 517 | version = "0.3.2" 518 | source = "registry+https://github.com/rust-lang/crates.io-index" 519 | checksum = "b23a0c8dfe501baac4adf6ebbfa6eddf8f0c07f56b058cc1288017e32397846c" 520 | dependencies = [ 521 | "quote", 522 | "syn", 523 | ] 524 | 525 | [[package]] 526 | name = "ironcalc" 527 | version = "0.2.0" 528 | source = "git+https://github.com/ironcalc/IronCalc#98dc557a017b2ad640fb46eece17afda14177e59" 529 | dependencies = [ 530 | "bitcode", 531 | "chrono", 532 | "ironcalc_base", 533 | "itertools 0.12.1", 534 | "roxmltree", 535 | "serde", 536 | "serde_json", 537 | "thiserror", 538 | "zip", 539 | ] 540 | 541 | [[package]] 542 | name = "ironcalc_base" 543 | version = "0.2.0" 544 | source = "git+https://github.com/ironcalc/IronCalc#98dc557a017b2ad640fb46eece17afda14177e59" 545 | dependencies = [ 546 | "bitcode", 547 | "chrono", 548 | "chrono-tz", 549 | "csv", 550 | "csv-sniffer", 551 | "js-sys", 552 | "once_cell", 553 | "rand", 554 | "regex 1.11.1", 555 | "ryu", 556 | "serde", 557 | ] 558 | 559 | [[package]] 560 | name = "itertools" 561 | version = "0.12.1" 562 | source = "registry+https://github.com/rust-lang/crates.io-index" 563 | checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" 564 | dependencies = [ 565 | "either", 566 | ] 567 | 568 | [[package]] 569 | name = "itertools" 570 | version = "0.13.0" 571 | source = "registry+https://github.com/rust-lang/crates.io-index" 572 | checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" 573 | dependencies = [ 574 | "either", 575 | ] 576 | 577 | [[package]] 578 | name = "itoa" 579 | version = "1.0.11" 580 | source = "registry+https://github.com/rust-lang/crates.io-index" 581 | checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" 582 | 583 | [[package]] 584 | name = "jobserver" 585 | version = "0.1.32" 586 | source = "registry+https://github.com/rust-lang/crates.io-index" 587 | checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0" 588 | dependencies = [ 589 | "libc", 590 | ] 591 | 592 | [[package]] 593 | name = "js-sys" 594 | version = "0.3.72" 595 | source = "registry+https://github.com/rust-lang/crates.io-index" 596 | checksum = "6a88f1bda2bd75b0452a14784937d796722fdebfe50df998aeb3f0b7603019a9" 597 | dependencies = [ 598 | "wasm-bindgen", 599 | ] 600 | 601 | [[package]] 602 | name = "lazy_static" 603 | version = "1.5.0" 604 | source = "registry+https://github.com/rust-lang/crates.io-index" 605 | checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" 606 | 607 | [[package]] 608 | name = "libc" 609 | version = "0.2.162" 610 | source = "registry+https://github.com/rust-lang/crates.io-index" 611 | checksum = "18d287de67fe55fd7e1581fe933d965a5a9477b38e949cfa9f8574ef01506398" 612 | 613 | [[package]] 614 | name = "linux-raw-sys" 615 | version = "0.4.14" 616 | source = "registry+https://github.com/rust-lang/crates.io-index" 617 | checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" 618 | 619 | [[package]] 620 | name = "lock_api" 621 | version = "0.4.12" 622 | source = "registry+https://github.com/rust-lang/crates.io-index" 623 | checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" 624 | dependencies = [ 625 | "autocfg", 626 | "scopeguard", 627 | ] 628 | 629 | [[package]] 630 | name = "log" 631 | version = "0.4.22" 632 | source = "registry+https://github.com/rust-lang/crates.io-index" 633 | checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" 634 | 635 | [[package]] 636 | name = "lru" 637 | version = "0.12.5" 638 | source = "registry+https://github.com/rust-lang/crates.io-index" 639 | checksum = "234cf4f4a04dc1f57e24b96cc0cd600cf2af460d4161ac5ecdd0af8e1f3b2a38" 640 | dependencies = [ 641 | "hashbrown", 642 | ] 643 | 644 | [[package]] 645 | name = "memchr" 646 | version = "2.7.4" 647 | source = "registry+https://github.com/rust-lang/crates.io-index" 648 | checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" 649 | 650 | [[package]] 651 | name = "miniz_oxide" 652 | version = "0.8.0" 653 | source = "registry+https://github.com/rust-lang/crates.io-index" 654 | checksum = "e2d80299ef12ff69b16a84bb182e3b9df68b5a91574d3d4fa6e41b65deec4df1" 655 | dependencies = [ 656 | "adler2", 657 | ] 658 | 659 | [[package]] 660 | name = "mio" 661 | version = "1.0.2" 662 | source = "registry+https://github.com/rust-lang/crates.io-index" 663 | checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec" 664 | dependencies = [ 665 | "hermit-abi", 666 | "libc", 667 | "log", 668 | "wasi", 669 | "windows-sys", 670 | ] 671 | 672 | [[package]] 673 | name = "num-conv" 674 | version = "0.1.0" 675 | source = "registry+https://github.com/rust-lang/crates.io-index" 676 | checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" 677 | 678 | [[package]] 679 | name = "num-traits" 680 | version = "0.2.19" 681 | source = "registry+https://github.com/rust-lang/crates.io-index" 682 | checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" 683 | dependencies = [ 684 | "autocfg", 685 | ] 686 | 687 | [[package]] 688 | name = "once_cell" 689 | version = "1.20.2" 690 | source = "registry+https://github.com/rust-lang/crates.io-index" 691 | checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" 692 | 693 | [[package]] 694 | name = "parking_lot" 695 | version = "0.12.3" 696 | source = "registry+https://github.com/rust-lang/crates.io-index" 697 | checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" 698 | dependencies = [ 699 | "lock_api", 700 | "parking_lot_core", 701 | ] 702 | 703 | [[package]] 704 | name = "parking_lot_core" 705 | version = "0.9.10" 706 | source = "registry+https://github.com/rust-lang/crates.io-index" 707 | checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" 708 | dependencies = [ 709 | "cfg-if", 710 | "libc", 711 | "redox_syscall", 712 | "smallvec", 713 | "windows-targets", 714 | ] 715 | 716 | [[package]] 717 | name = "parse-zoneinfo" 718 | version = "0.3.1" 719 | source = "registry+https://github.com/rust-lang/crates.io-index" 720 | checksum = "1f2a05b18d44e2957b88f96ba460715e295bc1d7510468a2f3d3b44535d26c24" 721 | dependencies = [ 722 | "regex 1.11.1", 723 | ] 724 | 725 | [[package]] 726 | name = "password-hash" 727 | version = "0.4.2" 728 | source = "registry+https://github.com/rust-lang/crates.io-index" 729 | checksum = "7676374caaee8a325c9e7a2ae557f216c5563a171d6997b0ef8a65af35147700" 730 | dependencies = [ 731 | "base64ct", 732 | "rand_core", 733 | "subtle", 734 | ] 735 | 736 | [[package]] 737 | name = "paste" 738 | version = "1.0.15" 739 | source = "registry+https://github.com/rust-lang/crates.io-index" 740 | checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" 741 | 742 | [[package]] 743 | name = "pbkdf2" 744 | version = "0.11.0" 745 | source = "registry+https://github.com/rust-lang/crates.io-index" 746 | checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" 747 | dependencies = [ 748 | "digest", 749 | "hmac", 750 | "password-hash", 751 | "sha2", 752 | ] 753 | 754 | [[package]] 755 | name = "phf" 756 | version = "0.11.2" 757 | source = "registry+https://github.com/rust-lang/crates.io-index" 758 | checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc" 759 | dependencies = [ 760 | "phf_shared", 761 | ] 762 | 763 | [[package]] 764 | name = "phf_codegen" 765 | version = "0.11.2" 766 | source = "registry+https://github.com/rust-lang/crates.io-index" 767 | checksum = "e8d39688d359e6b34654d328e262234662d16cc0f60ec8dcbe5e718709342a5a" 768 | dependencies = [ 769 | "phf_generator", 770 | "phf_shared", 771 | ] 772 | 773 | [[package]] 774 | name = "phf_generator" 775 | version = "0.11.2" 776 | source = "registry+https://github.com/rust-lang/crates.io-index" 777 | checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0" 778 | dependencies = [ 779 | "phf_shared", 780 | "rand", 781 | ] 782 | 783 | [[package]] 784 | name = "phf_shared" 785 | version = "0.11.2" 786 | source = "registry+https://github.com/rust-lang/crates.io-index" 787 | checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b" 788 | dependencies = [ 789 | "siphasher", 790 | ] 791 | 792 | [[package]] 793 | name = "pkg-config" 794 | version = "0.3.31" 795 | source = "registry+https://github.com/rust-lang/crates.io-index" 796 | checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" 797 | 798 | [[package]] 799 | name = "powerfmt" 800 | version = "0.2.0" 801 | source = "registry+https://github.com/rust-lang/crates.io-index" 802 | checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" 803 | 804 | [[package]] 805 | name = "ppv-lite86" 806 | version = "0.2.20" 807 | source = "registry+https://github.com/rust-lang/crates.io-index" 808 | checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" 809 | dependencies = [ 810 | "zerocopy", 811 | ] 812 | 813 | [[package]] 814 | name = "proc-macro2" 815 | version = "1.0.89" 816 | source = "registry+https://github.com/rust-lang/crates.io-index" 817 | checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e" 818 | dependencies = [ 819 | "unicode-ident", 820 | ] 821 | 822 | [[package]] 823 | name = "quote" 824 | version = "1.0.37" 825 | source = "registry+https://github.com/rust-lang/crates.io-index" 826 | checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" 827 | dependencies = [ 828 | "proc-macro2", 829 | ] 830 | 831 | [[package]] 832 | name = "rand" 833 | version = "0.8.5" 834 | source = "registry+https://github.com/rust-lang/crates.io-index" 835 | checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" 836 | dependencies = [ 837 | "libc", 838 | "rand_chacha", 839 | "rand_core", 840 | ] 841 | 842 | [[package]] 843 | name = "rand_chacha" 844 | version = "0.3.1" 845 | source = "registry+https://github.com/rust-lang/crates.io-index" 846 | checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" 847 | dependencies = [ 848 | "ppv-lite86", 849 | "rand_core", 850 | ] 851 | 852 | [[package]] 853 | name = "rand_core" 854 | version = "0.6.4" 855 | source = "registry+https://github.com/rust-lang/crates.io-index" 856 | checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" 857 | dependencies = [ 858 | "getrandom", 859 | ] 860 | 861 | [[package]] 862 | name = "ratatui" 863 | version = "0.29.0" 864 | source = "registry+https://github.com/rust-lang/crates.io-index" 865 | checksum = "eabd94c2f37801c20583fc49dd5cd6b0ba68c716787c2dd6ed18571e1e63117b" 866 | dependencies = [ 867 | "bitflags 2.6.0", 868 | "cassowary", 869 | "compact_str", 870 | "crossterm", 871 | "indoc", 872 | "instability", 873 | "itertools 0.13.0", 874 | "lru", 875 | "paste", 876 | "strum", 877 | "unicode-segmentation", 878 | "unicode-truncate", 879 | "unicode-width 0.2.0", 880 | ] 881 | 882 | [[package]] 883 | name = "redox_syscall" 884 | version = "0.5.7" 885 | source = "registry+https://github.com/rust-lang/crates.io-index" 886 | checksum = "9b6dfecf2c74bce2466cabf93f6664d6998a69eb21e39f4207930065b27b771f" 887 | dependencies = [ 888 | "bitflags 2.6.0", 889 | ] 890 | 891 | [[package]] 892 | name = "regex" 893 | version = "0.2.11" 894 | source = "registry+https://github.com/rust-lang/crates.io-index" 895 | checksum = "9329abc99e39129fcceabd24cf5d85b4671ef7c29c50e972bc5afe32438ec384" 896 | dependencies = [ 897 | "aho-corasick 0.6.10", 898 | "memchr", 899 | "regex-syntax 0.5.6", 900 | "thread_local", 901 | "utf8-ranges", 902 | ] 903 | 904 | [[package]] 905 | name = "regex" 906 | version = "1.11.1" 907 | source = "registry+https://github.com/rust-lang/crates.io-index" 908 | checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" 909 | dependencies = [ 910 | "aho-corasick 1.1.3", 911 | "memchr", 912 | "regex-automata", 913 | "regex-syntax 0.8.5", 914 | ] 915 | 916 | [[package]] 917 | name = "regex-automata" 918 | version = "0.4.9" 919 | source = "registry+https://github.com/rust-lang/crates.io-index" 920 | checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" 921 | dependencies = [ 922 | "aho-corasick 1.1.3", 923 | "memchr", 924 | "regex-syntax 0.8.5", 925 | ] 926 | 927 | [[package]] 928 | name = "regex-syntax" 929 | version = "0.5.6" 930 | source = "registry+https://github.com/rust-lang/crates.io-index" 931 | checksum = "7d707a4fa2637f2dca2ef9fd02225ec7661fe01a53623c1e6515b6916511f7a7" 932 | dependencies = [ 933 | "ucd-util", 934 | ] 935 | 936 | [[package]] 937 | name = "regex-syntax" 938 | version = "0.8.5" 939 | source = "registry+https://github.com/rust-lang/crates.io-index" 940 | checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" 941 | 942 | [[package]] 943 | name = "roxmltree" 944 | version = "0.19.0" 945 | source = "registry+https://github.com/rust-lang/crates.io-index" 946 | checksum = "3cd14fd5e3b777a7422cca79358c57a8f6e3a703d9ac187448d0daf220c2407f" 947 | 948 | [[package]] 949 | name = "rustix" 950 | version = "0.38.40" 951 | source = "registry+https://github.com/rust-lang/crates.io-index" 952 | checksum = "99e4ea3e1cdc4b559b8e5650f9c8e5998e3e5c1343b4eaf034565f32318d63c0" 953 | dependencies = [ 954 | "bitflags 2.6.0", 955 | "errno", 956 | "libc", 957 | "linux-raw-sys", 958 | "windows-sys", 959 | ] 960 | 961 | [[package]] 962 | name = "rustversion" 963 | version = "1.0.18" 964 | source = "registry+https://github.com/rust-lang/crates.io-index" 965 | checksum = "0e819f2bc632f285be6d7cd36e25940d45b2391dd6d9b939e79de557f7014248" 966 | 967 | [[package]] 968 | name = "ryu" 969 | version = "1.0.18" 970 | source = "registry+https://github.com/rust-lang/crates.io-index" 971 | checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" 972 | 973 | [[package]] 974 | name = "scopeguard" 975 | version = "1.2.0" 976 | source = "registry+https://github.com/rust-lang/crates.io-index" 977 | checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" 978 | 979 | [[package]] 980 | name = "serde" 981 | version = "1.0.214" 982 | source = "registry+https://github.com/rust-lang/crates.io-index" 983 | checksum = "f55c3193aca71c12ad7890f1785d2b73e1b9f63a0bbc353c08ef26fe03fc56b5" 984 | dependencies = [ 985 | "serde_derive", 986 | ] 987 | 988 | [[package]] 989 | name = "serde_derive" 990 | version = "1.0.214" 991 | source = "registry+https://github.com/rust-lang/crates.io-index" 992 | checksum = "de523f781f095e28fa605cdce0f8307e451cc0fd14e2eb4cd2e98a355b147766" 993 | dependencies = [ 994 | "proc-macro2", 995 | "quote", 996 | "syn", 997 | ] 998 | 999 | [[package]] 1000 | name = "serde_json" 1001 | version = "1.0.132" 1002 | source = "registry+https://github.com/rust-lang/crates.io-index" 1003 | checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03" 1004 | dependencies = [ 1005 | "itoa", 1006 | "memchr", 1007 | "ryu", 1008 | "serde", 1009 | ] 1010 | 1011 | [[package]] 1012 | name = "sha1" 1013 | version = "0.10.6" 1014 | source = "registry+https://github.com/rust-lang/crates.io-index" 1015 | checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" 1016 | dependencies = [ 1017 | "cfg-if", 1018 | "cpufeatures", 1019 | "digest", 1020 | ] 1021 | 1022 | [[package]] 1023 | name = "sha2" 1024 | version = "0.10.8" 1025 | source = "registry+https://github.com/rust-lang/crates.io-index" 1026 | checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" 1027 | dependencies = [ 1028 | "cfg-if", 1029 | "cpufeatures", 1030 | "digest", 1031 | ] 1032 | 1033 | [[package]] 1034 | name = "shlex" 1035 | version = "1.3.0" 1036 | source = "registry+https://github.com/rust-lang/crates.io-index" 1037 | checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" 1038 | 1039 | [[package]] 1040 | name = "signal-hook" 1041 | version = "0.3.17" 1042 | source = "registry+https://github.com/rust-lang/crates.io-index" 1043 | checksum = "8621587d4798caf8eb44879d42e56b9a93ea5dcd315a6487c357130095b62801" 1044 | dependencies = [ 1045 | "libc", 1046 | "signal-hook-registry", 1047 | ] 1048 | 1049 | [[package]] 1050 | name = "signal-hook-mio" 1051 | version = "0.2.4" 1052 | source = "registry+https://github.com/rust-lang/crates.io-index" 1053 | checksum = "34db1a06d485c9142248b7a054f034b349b212551f3dfd19c94d45a754a217cd" 1054 | dependencies = [ 1055 | "libc", 1056 | "mio", 1057 | "signal-hook", 1058 | ] 1059 | 1060 | [[package]] 1061 | name = "signal-hook-registry" 1062 | version = "1.4.2" 1063 | source = "registry+https://github.com/rust-lang/crates.io-index" 1064 | checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" 1065 | dependencies = [ 1066 | "libc", 1067 | ] 1068 | 1069 | [[package]] 1070 | name = "siphasher" 1071 | version = "0.3.11" 1072 | source = "registry+https://github.com/rust-lang/crates.io-index" 1073 | checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" 1074 | 1075 | [[package]] 1076 | name = "smallvec" 1077 | version = "1.13.2" 1078 | source = "registry+https://github.com/rust-lang/crates.io-index" 1079 | checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" 1080 | 1081 | [[package]] 1082 | name = "static_assertions" 1083 | version = "1.1.0" 1084 | source = "registry+https://github.com/rust-lang/crates.io-index" 1085 | checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" 1086 | 1087 | [[package]] 1088 | name = "strum" 1089 | version = "0.26.3" 1090 | source = "registry+https://github.com/rust-lang/crates.io-index" 1091 | checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06" 1092 | dependencies = [ 1093 | "strum_macros", 1094 | ] 1095 | 1096 | [[package]] 1097 | name = "strum_macros" 1098 | version = "0.26.4" 1099 | source = "registry+https://github.com/rust-lang/crates.io-index" 1100 | checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be" 1101 | dependencies = [ 1102 | "heck", 1103 | "proc-macro2", 1104 | "quote", 1105 | "rustversion", 1106 | "syn", 1107 | ] 1108 | 1109 | [[package]] 1110 | name = "subtle" 1111 | version = "2.6.1" 1112 | source = "registry+https://github.com/rust-lang/crates.io-index" 1113 | checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" 1114 | 1115 | [[package]] 1116 | name = "syn" 1117 | version = "2.0.87" 1118 | source = "registry+https://github.com/rust-lang/crates.io-index" 1119 | checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d" 1120 | dependencies = [ 1121 | "proc-macro2", 1122 | "quote", 1123 | "unicode-ident", 1124 | ] 1125 | 1126 | [[package]] 1127 | name = "thiserror" 1128 | version = "1.0.69" 1129 | source = "registry+https://github.com/rust-lang/crates.io-index" 1130 | checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" 1131 | dependencies = [ 1132 | "thiserror-impl", 1133 | ] 1134 | 1135 | [[package]] 1136 | name = "thiserror-impl" 1137 | version = "1.0.69" 1138 | source = "registry+https://github.com/rust-lang/crates.io-index" 1139 | checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" 1140 | dependencies = [ 1141 | "proc-macro2", 1142 | "quote", 1143 | "syn", 1144 | ] 1145 | 1146 | [[package]] 1147 | name = "thread_local" 1148 | version = "0.3.6" 1149 | source = "registry+https://github.com/rust-lang/crates.io-index" 1150 | checksum = "c6b53e329000edc2b34dbe8545fd20e55a333362d0a321909685a19bd28c3f1b" 1151 | dependencies = [ 1152 | "lazy_static", 1153 | ] 1154 | 1155 | [[package]] 1156 | name = "time" 1157 | version = "0.3.36" 1158 | source = "registry+https://github.com/rust-lang/crates.io-index" 1159 | checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885" 1160 | dependencies = [ 1161 | "deranged", 1162 | "num-conv", 1163 | "powerfmt", 1164 | "serde", 1165 | "time-core", 1166 | ] 1167 | 1168 | [[package]] 1169 | name = "time-core" 1170 | version = "0.1.2" 1171 | source = "registry+https://github.com/rust-lang/crates.io-index" 1172 | checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" 1173 | 1174 | [[package]] 1175 | name = "tiron" 1176 | version = "0.1.0" 1177 | dependencies = [ 1178 | "crossterm", 1179 | "ironcalc", 1180 | "ratatui", 1181 | "tui-input", 1182 | ] 1183 | 1184 | [[package]] 1185 | name = "tui-input" 1186 | version = "0.11.0" 1187 | source = "registry+https://github.com/rust-lang/crates.io-index" 1188 | checksum = "ffde6d8fcffe86b617018ca9b2171d673b41def44ebf802de203d2f2c598d3de" 1189 | dependencies = [ 1190 | "ratatui", 1191 | "unicode-width 0.2.0", 1192 | ] 1193 | 1194 | [[package]] 1195 | name = "typenum" 1196 | version = "1.17.0" 1197 | source = "registry+https://github.com/rust-lang/crates.io-index" 1198 | checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" 1199 | 1200 | [[package]] 1201 | name = "ucd-util" 1202 | version = "0.1.10" 1203 | source = "registry+https://github.com/rust-lang/crates.io-index" 1204 | checksum = "abd2fc5d32b590614af8b0a20d837f32eca055edd0bbead59a9cfe80858be003" 1205 | 1206 | [[package]] 1207 | name = "unicode-ident" 1208 | version = "1.0.13" 1209 | source = "registry+https://github.com/rust-lang/crates.io-index" 1210 | checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" 1211 | 1212 | [[package]] 1213 | name = "unicode-segmentation" 1214 | version = "1.12.0" 1215 | source = "registry+https://github.com/rust-lang/crates.io-index" 1216 | checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" 1217 | 1218 | [[package]] 1219 | name = "unicode-truncate" 1220 | version = "1.1.0" 1221 | source = "registry+https://github.com/rust-lang/crates.io-index" 1222 | checksum = "b3644627a5af5fa321c95b9b235a72fd24cd29c648c2c379431e6628655627bf" 1223 | dependencies = [ 1224 | "itertools 0.13.0", 1225 | "unicode-segmentation", 1226 | "unicode-width 0.1.14", 1227 | ] 1228 | 1229 | [[package]] 1230 | name = "unicode-width" 1231 | version = "0.1.14" 1232 | source = "registry+https://github.com/rust-lang/crates.io-index" 1233 | checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" 1234 | 1235 | [[package]] 1236 | name = "unicode-width" 1237 | version = "0.2.0" 1238 | source = "registry+https://github.com/rust-lang/crates.io-index" 1239 | checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd" 1240 | 1241 | [[package]] 1242 | name = "utf8-ranges" 1243 | version = "1.0.5" 1244 | source = "registry+https://github.com/rust-lang/crates.io-index" 1245 | checksum = "7fcfc827f90e53a02eaef5e535ee14266c1d569214c6aa70133a624d8a3164ba" 1246 | 1247 | [[package]] 1248 | name = "version_check" 1249 | version = "0.9.5" 1250 | source = "registry+https://github.com/rust-lang/crates.io-index" 1251 | checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" 1252 | 1253 | [[package]] 1254 | name = "wasi" 1255 | version = "0.11.0+wasi-snapshot-preview1" 1256 | source = "registry+https://github.com/rust-lang/crates.io-index" 1257 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 1258 | 1259 | [[package]] 1260 | name = "wasm-bindgen" 1261 | version = "0.2.95" 1262 | source = "registry+https://github.com/rust-lang/crates.io-index" 1263 | checksum = "128d1e363af62632b8eb57219c8fd7877144af57558fb2ef0368d0087bddeb2e" 1264 | dependencies = [ 1265 | "cfg-if", 1266 | "once_cell", 1267 | "wasm-bindgen-macro", 1268 | ] 1269 | 1270 | [[package]] 1271 | name = "wasm-bindgen-backend" 1272 | version = "0.2.95" 1273 | source = "registry+https://github.com/rust-lang/crates.io-index" 1274 | checksum = "cb6dd4d3ca0ddffd1dd1c9c04f94b868c37ff5fac97c30b97cff2d74fce3a358" 1275 | dependencies = [ 1276 | "bumpalo", 1277 | "log", 1278 | "once_cell", 1279 | "proc-macro2", 1280 | "quote", 1281 | "syn", 1282 | "wasm-bindgen-shared", 1283 | ] 1284 | 1285 | [[package]] 1286 | name = "wasm-bindgen-macro" 1287 | version = "0.2.95" 1288 | source = "registry+https://github.com/rust-lang/crates.io-index" 1289 | checksum = "e79384be7f8f5a9dd5d7167216f022090cf1f9ec128e6e6a482a2cb5c5422c56" 1290 | dependencies = [ 1291 | "quote", 1292 | "wasm-bindgen-macro-support", 1293 | ] 1294 | 1295 | [[package]] 1296 | name = "wasm-bindgen-macro-support" 1297 | version = "0.2.95" 1298 | source = "registry+https://github.com/rust-lang/crates.io-index" 1299 | checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68" 1300 | dependencies = [ 1301 | "proc-macro2", 1302 | "quote", 1303 | "syn", 1304 | "wasm-bindgen-backend", 1305 | "wasm-bindgen-shared", 1306 | ] 1307 | 1308 | [[package]] 1309 | name = "wasm-bindgen-shared" 1310 | version = "0.2.95" 1311 | source = "registry+https://github.com/rust-lang/crates.io-index" 1312 | checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d" 1313 | 1314 | [[package]] 1315 | name = "winapi" 1316 | version = "0.3.9" 1317 | source = "registry+https://github.com/rust-lang/crates.io-index" 1318 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 1319 | dependencies = [ 1320 | "winapi-i686-pc-windows-gnu", 1321 | "winapi-x86_64-pc-windows-gnu", 1322 | ] 1323 | 1324 | [[package]] 1325 | name = "winapi-i686-pc-windows-gnu" 1326 | version = "0.4.0" 1327 | source = "registry+https://github.com/rust-lang/crates.io-index" 1328 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 1329 | 1330 | [[package]] 1331 | name = "winapi-x86_64-pc-windows-gnu" 1332 | version = "0.4.0" 1333 | source = "registry+https://github.com/rust-lang/crates.io-index" 1334 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 1335 | 1336 | [[package]] 1337 | name = "windows-core" 1338 | version = "0.52.0" 1339 | source = "registry+https://github.com/rust-lang/crates.io-index" 1340 | checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" 1341 | dependencies = [ 1342 | "windows-targets", 1343 | ] 1344 | 1345 | [[package]] 1346 | name = "windows-sys" 1347 | version = "0.52.0" 1348 | source = "registry+https://github.com/rust-lang/crates.io-index" 1349 | checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" 1350 | dependencies = [ 1351 | "windows-targets", 1352 | ] 1353 | 1354 | [[package]] 1355 | name = "windows-targets" 1356 | version = "0.52.6" 1357 | source = "registry+https://github.com/rust-lang/crates.io-index" 1358 | checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 1359 | dependencies = [ 1360 | "windows_aarch64_gnullvm", 1361 | "windows_aarch64_msvc", 1362 | "windows_i686_gnu", 1363 | "windows_i686_gnullvm", 1364 | "windows_i686_msvc", 1365 | "windows_x86_64_gnu", 1366 | "windows_x86_64_gnullvm", 1367 | "windows_x86_64_msvc", 1368 | ] 1369 | 1370 | [[package]] 1371 | name = "windows_aarch64_gnullvm" 1372 | version = "0.52.6" 1373 | source = "registry+https://github.com/rust-lang/crates.io-index" 1374 | checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" 1375 | 1376 | [[package]] 1377 | name = "windows_aarch64_msvc" 1378 | version = "0.52.6" 1379 | source = "registry+https://github.com/rust-lang/crates.io-index" 1380 | checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 1381 | 1382 | [[package]] 1383 | name = "windows_i686_gnu" 1384 | version = "0.52.6" 1385 | source = "registry+https://github.com/rust-lang/crates.io-index" 1386 | checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" 1387 | 1388 | [[package]] 1389 | name = "windows_i686_gnullvm" 1390 | version = "0.52.6" 1391 | source = "registry+https://github.com/rust-lang/crates.io-index" 1392 | checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" 1393 | 1394 | [[package]] 1395 | name = "windows_i686_msvc" 1396 | version = "0.52.6" 1397 | source = "registry+https://github.com/rust-lang/crates.io-index" 1398 | checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 1399 | 1400 | [[package]] 1401 | name = "windows_x86_64_gnu" 1402 | version = "0.52.6" 1403 | source = "registry+https://github.com/rust-lang/crates.io-index" 1404 | checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 1405 | 1406 | [[package]] 1407 | name = "windows_x86_64_gnullvm" 1408 | version = "0.52.6" 1409 | source = "registry+https://github.com/rust-lang/crates.io-index" 1410 | checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 1411 | 1412 | [[package]] 1413 | name = "windows_x86_64_msvc" 1414 | version = "0.52.6" 1415 | source = "registry+https://github.com/rust-lang/crates.io-index" 1416 | checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" 1417 | 1418 | [[package]] 1419 | name = "zerocopy" 1420 | version = "0.7.35" 1421 | source = "registry+https://github.com/rust-lang/crates.io-index" 1422 | checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" 1423 | dependencies = [ 1424 | "byteorder", 1425 | "zerocopy-derive", 1426 | ] 1427 | 1428 | [[package]] 1429 | name = "zerocopy-derive" 1430 | version = "0.7.35" 1431 | source = "registry+https://github.com/rust-lang/crates.io-index" 1432 | checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" 1433 | dependencies = [ 1434 | "proc-macro2", 1435 | "quote", 1436 | "syn", 1437 | ] 1438 | 1439 | [[package]] 1440 | name = "zip" 1441 | version = "0.6.6" 1442 | source = "registry+https://github.com/rust-lang/crates.io-index" 1443 | checksum = "760394e246e4c28189f19d488c058bf16f564016aefac5d32bb1f3b51d5e9261" 1444 | dependencies = [ 1445 | "aes", 1446 | "byteorder", 1447 | "bzip2", 1448 | "constant_time_eq", 1449 | "crc32fast", 1450 | "crossbeam-utils", 1451 | "flate2", 1452 | "hmac", 1453 | "pbkdf2", 1454 | "sha1", 1455 | "time", 1456 | "zstd", 1457 | ] 1458 | 1459 | [[package]] 1460 | name = "zstd" 1461 | version = "0.11.2+zstd.1.5.2" 1462 | source = "registry+https://github.com/rust-lang/crates.io-index" 1463 | checksum = "20cc960326ece64f010d2d2107537f26dc589a6573a316bd5b1dba685fa5fde4" 1464 | dependencies = [ 1465 | "zstd-safe", 1466 | ] 1467 | 1468 | [[package]] 1469 | name = "zstd-safe" 1470 | version = "5.0.2+zstd.1.5.2" 1471 | source = "registry+https://github.com/rust-lang/crates.io-index" 1472 | checksum = "1d2a5585e04f9eea4b2a3d1eca508c4dee9592a89ef6f450c11719da0726f4db" 1473 | dependencies = [ 1474 | "libc", 1475 | "zstd-sys", 1476 | ] 1477 | 1478 | [[package]] 1479 | name = "zstd-sys" 1480 | version = "2.0.13+zstd.1.5.6" 1481 | source = "registry+https://github.com/rust-lang/crates.io-index" 1482 | checksum = "38ff0f21cfee8f97d94cef41359e0c89aa6113028ab0291aa8ca0038995a95aa" 1483 | dependencies = [ 1484 | "cc", 1485 | "pkg-config", 1486 | ] 1487 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "tiron" 3 | version = "0.1.0" 4 | edition = "2021" 5 | 6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 7 | 8 | [dependencies] 9 | crossterm = "0.28.0" 10 | ironcalc = { git = "https://github.com/ironcalc/IronCalc", version = "0.2.0"} 11 | ratatui = "0.29.0" 12 | tui-input = "0.11.0" 13 | -------------------------------------------------------------------------------- /LICENSE-Apache-2.0: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | Copyright 2024 Nicolás Hatcher 179 | 180 | Licensed under the Apache License, Version 2.0 (the "License"); 181 | you may not use this file except in compliance with the License. 182 | You may obtain a copy of the License at 183 | 184 | http://www.apache.org/licenses/LICENSE-2.0 185 | 186 | Unless required by applicable law or agreed to in writing, software 187 | distributed under the License is distributed on an "AS IS" BASIS, 188 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 189 | See the License for the specific language governing permissions and 190 | limitations under the License. 191 | 192 | -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Nicolás Hatcher 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # TironCalc 2 | 3 | [![Discord chat][discord-badge]][discord-url] 4 | 5 | [discord-badge]: https://img.shields.io/discord/1206947691058171904.svg?logo=discord&style=flat-square 6 | [discord-url]: https://discord.gg/zZYWfh3RHJ 7 | 8 | TironCalc, or Tiron for friends, is a TUI (Terminal User Interface) for IronCalc. Based on [ratatui](https://github.com/ratatui-org/ratatui) 9 | 10 | ![TironCalc Screenshot](docs/screenshot.png) 11 | 12 | ## Build 13 | 14 | ``` 15 | cargo build --release 16 | ``` 17 | 18 | You will find the binary at `./target/release/tiron`. 19 | 20 | ## Documentation 21 | 22 | Start empty project: 23 | 24 | ``` 25 | $ tiron 26 | ``` 27 | 28 | Load an existing Excel file: 29 | 30 | ``` 31 | $ tiron example.xlsx 32 | ``` 33 | - `Arrow Keys` to navigate cells 34 | - `e` to edit a cell and enter the value or formula. 35 | - `q` to quit and save 36 | - `+` to add a sheet 37 | - `s` to go to the next sheet 38 | - `a` to go to the previous sheet 39 | - `PgUp/PgDown` to navigate rows faster 40 | 41 | 42 | ## Inspiration 43 | 44 | James Gosling of Java fame created [sc](https://en.wikipedia.org/wiki/Sc_(spreadsheet_calculator)) the spreadsheet calculator. 45 | 46 | Andrés Martinelli has been maintaining [sc-im](https://github.com/andmarti1424/sc-im), the spreadsheet calculator improvised. 47 | 48 | ## See also 49 | 50 | A really nice similar project 51 | 52 | [SheetsUI](https://github.com/zaphar/sheetsui) 53 | -------------------------------------------------------------------------------- /docs/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ironcalc/TironCalc/a7debe52748224e0cfc2aa2845c5910dd2ea11d2/docs/screenshot.png -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | use crossterm::{ 2 | event::{self, DisableMouseCapture, EnableMouseCapture, Event as CEvent, KeyCode}, 3 | execute, 4 | terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen}, 5 | }; 6 | use ironcalc::{ 7 | base::{expressions::utils::number_to_column, Model}, 8 | export::save_to_xlsx, 9 | import::load_from_xlsx, 10 | }; 11 | use ratatui::{ 12 | backend::CrosstermBackend, 13 | layout::{Constraint, Direction, Layout, Rect}, 14 | style::{Color, Style, Stylize}, 15 | text::{Line, Span}, 16 | widgets::{Block, BorderType, Borders, Cell, Clear, Paragraph, Row, Table}, 17 | Terminal, 18 | }; 19 | use std::time::{Duration, Instant}; 20 | use std::{io, sync::mpsc}; 21 | use std::{str::FromStr, thread}; 22 | use tui_input::{backend::crossterm::EventHandler, Input}; 23 | 24 | use std::env; 25 | 26 | enum Event { 27 | Input(I), 28 | Tick, 29 | } 30 | 31 | #[derive(PartialEq)] 32 | enum CursorMode { 33 | Navigate, 34 | Input, 35 | Popup, 36 | } 37 | 38 | fn main() -> Result<(), Box> { 39 | enable_raw_mode()?; 40 | 41 | let args: Vec = env::args().collect(); 42 | let mut file_name = "model.xlsx"; 43 | let mut model = if args.len() > 1 { 44 | file_name = &args[1]; 45 | load_from_xlsx(file_name, "en", "UTC").unwrap() 46 | } else { 47 | Model::new_empty(file_name, "en", "UTC").unwrap() 48 | }; 49 | let mut selected_sheet = 0; 50 | let mut selected_row_index = 1; 51 | let mut selected_column_index = 1; 52 | let mut minimum_row_index = 1; 53 | let mut minimum_column_index = 1; 54 | let sheet_list_width = 20; 55 | let column_width: u16 = 11; 56 | let mut cursor_mode = CursorMode::Navigate; 57 | let mut input_formula = Input::default(); 58 | 59 | let mut input_file_name: Input = file_name.into(); 60 | 61 | let mut popup_open = false; 62 | 63 | let (tx, rx) = mpsc::channel(); 64 | let tick_rate = Duration::from_millis(200); 65 | thread::spawn(move || { 66 | let mut last_tick = Instant::now(); 67 | loop { 68 | let timeout = tick_rate 69 | .checked_sub(last_tick.elapsed()) 70 | .unwrap_or_else(|| Duration::from_secs(0)); 71 | 72 | if event::poll(timeout).expect("poll works") { 73 | if let CEvent::Key(key) = event::read().expect("can read events") { 74 | tx.send(Event::Input(key)).expect("can send events"); 75 | } 76 | } 77 | 78 | if last_tick.elapsed() >= tick_rate && tx.send(Event::Tick).is_ok() { 79 | last_tick = Instant::now(); 80 | } 81 | } 82 | }); 83 | 84 | let mut stdout = io::stdout(); 85 | execute!(stdout, EnterAlternateScreen, EnableMouseCapture)?; 86 | 87 | let backend = CrosstermBackend::new(stdout); 88 | let mut terminal = Terminal::new(backend)?; 89 | terminal.clear()?; 90 | 91 | let header_style = Style::default().fg(Color::Yellow).bg(Color::White); 92 | let selected_header_style = Style::default().bg(Color::Yellow).fg(Color::White); 93 | 94 | let selected_cell_style = Style::default().fg(Color::Yellow).bg(Color::LightCyan); 95 | 96 | let background_style = Style::default().bg(Color::Black); 97 | let selected_sheet_style = Style::default().bg(Color::White).fg(Color::LightMagenta); 98 | let non_selected_sheet_style = Style::default().fg(Color::White); 99 | let mut sheet_names = model.workbook.get_worksheet_names(); 100 | loop { 101 | terminal.draw(|rect| { 102 | let size = rect.area(); 103 | 104 | let global_chunks = Layout::default() 105 | .direction(Direction::Horizontal) 106 | .constraints([Constraint::Length(sheet_list_width), Constraint::Min(3)].as_ref()) 107 | .split(size); 108 | 109 | // Sheet list to the left 110 | let sheets = Block::default() 111 | .borders(Borders::ALL) 112 | .style(Style::default().fg(Color::White)) 113 | .title("Sheets") 114 | .border_type(BorderType::Plain) 115 | .style(background_style); 116 | let mut rows = vec![]; 117 | (0..sheet_names.len()).for_each(|sheet_index| { 118 | let sheet_name = &sheet_names[sheet_index]; 119 | let style = if sheet_index == selected_sheet { 120 | selected_sheet_style 121 | } else { 122 | non_selected_sheet_style 123 | }; 124 | rows.push(Row::new(vec![Cell::from(sheet_name.clone()).style(style)])); 125 | }); 126 | let widths = &[Constraint::Length(100)]; 127 | let sheet_list = Table::new(rows, widths).block(sheets).column_spacing(0); 128 | 129 | rect.render_widget(sheet_list, global_chunks[0]); 130 | 131 | // The spreadsheet is the formula bar at the top and the sheet data 132 | let spreadsheet_chunks = Layout::default() 133 | .direction(Direction::Vertical) 134 | .margin(0) 135 | .constraints([Constraint::Length(1), Constraint::Min(2)].as_ref()) 136 | .split(global_chunks[1]); 137 | 138 | let spreadsheet_width = size.width - sheet_list_width; 139 | let spreadsheet_height = size.height - 1; 140 | let row_count = spreadsheet_height - 1; 141 | 142 | let first_row_width: u16 = 3; 143 | let column_count = 144 | f64::ceil(((spreadsheet_width - first_row_width) as f64) / (column_width as f64)) 145 | as i32; 146 | let mut rows = vec![]; 147 | // The first row in the column headers 148 | let mut row = Vec::new(); 149 | // The first cell in that row is the top left square of the spreadsheet 150 | row.push(Cell::from("")); 151 | let mut maximum_column_index = minimum_column_index + column_count - 1; 152 | let mut maximum_row_index = minimum_row_index + row_count - 1; 153 | 154 | // We want to make sure the selected cell is visible. 155 | if selected_column_index > maximum_column_index { 156 | maximum_column_index = selected_column_index; 157 | minimum_column_index = maximum_column_index - column_count + 1; 158 | } else if selected_column_index < minimum_column_index { 159 | minimum_column_index = selected_column_index; 160 | maximum_column_index = minimum_column_index + column_count - 1; 161 | } 162 | if selected_row_index >= maximum_row_index { 163 | maximum_row_index = selected_row_index; 164 | minimum_row_index = maximum_row_index - row_count + 1; 165 | } else if selected_row_index < minimum_row_index { 166 | minimum_row_index = selected_row_index; 167 | maximum_row_index = minimum_row_index + row_count - 1; 168 | } 169 | for column_index in minimum_column_index..=maximum_column_index { 170 | let column_str = number_to_column(column_index); 171 | let style = if column_index == selected_column_index { 172 | selected_header_style 173 | } else { 174 | header_style 175 | }; 176 | row.push(Cell::from(format!(" {}", column_str.unwrap())).style(style)); 177 | } 178 | rows.push(Row::new(row)); 179 | for row_index in minimum_row_index..=maximum_row_index { 180 | let mut row = Vec::new(); 181 | let style = if row_index == selected_row_index { 182 | selected_header_style 183 | } else { 184 | header_style 185 | }; 186 | row.push(Cell::from(format!("{}", row_index)).style(style)); 187 | for column_index in minimum_column_index..=maximum_column_index { 188 | let value = model 189 | .get_formatted_cell_value( 190 | selected_sheet as u32, 191 | row_index as i32, 192 | column_index, 193 | ) 194 | .unwrap(); 195 | let cell_style = model 196 | .get_style_for_cell(selected_sheet as u32, row_index as i32, column_index) 197 | .unwrap(); 198 | let style = if selected_row_index == row_index 199 | && selected_column_index == column_index 200 | { 201 | selected_cell_style 202 | } else { 203 | let bg_color = match cell_style.fill.fg_color { 204 | Some(s) => Color::from_str(&s).unwrap(), 205 | None => Color::White, 206 | }; 207 | let fg_color = match cell_style.font.color { 208 | Some(s) => Color::from_str(&s).unwrap(), 209 | None => Color::Black, 210 | }; 211 | Style::default().fg(fg_color).bg(bg_color) 212 | }; 213 | row.push(Cell::from(value.to_string()).style(style)); 214 | } 215 | rows.push(Row::new(row)); 216 | } 217 | let mut widths = Vec::new(); 218 | widths.push(Constraint::Length(first_row_width)); 219 | for _ in 0..column_count { 220 | widths.push(Constraint::Length(column_width)); 221 | } 222 | let spreadsheet = Table::new(rows, widths) 223 | .block(Block::default().style(Style::default().bg(Color::Black))) 224 | .column_spacing(0); 225 | 226 | let text = if cursor_mode != CursorMode::Input { 227 | model 228 | .get_cell_formula( 229 | selected_sheet as u32, 230 | selected_row_index as i32, 231 | selected_column_index, 232 | ) 233 | .unwrap() 234 | .unwrap_or_else(|| { 235 | model 236 | .get_formatted_cell_value( 237 | selected_sheet as u32, 238 | selected_row_index as i32, 239 | selected_column_index, 240 | ) 241 | .unwrap() 242 | }) 243 | } else { 244 | input_formula.value().to_string() 245 | }; 246 | let cell_address_text = format!( 247 | "{}{}: ", 248 | number_to_column(selected_column_index).unwrap(), 249 | selected_row_index, 250 | ); 251 | let formula_bar_text = format!("{}{}", cell_address_text, text,); 252 | let formula_bar = Paragraph::new(vec![Line::from(vec![Span::raw(formula_bar_text)])]); 253 | rect.render_widget(formula_bar.block(Block::default()), spreadsheet_chunks[0]); 254 | rect.render_widget(spreadsheet, spreadsheet_chunks[1]); 255 | if cursor_mode == CursorMode::Input { 256 | let area = spreadsheet_chunks[0]; 257 | rect.set_cursor_position(( 258 | area.x 259 | + (input_formula.visual_cursor() as u16) 260 | + cell_address_text.len() as u16, 261 | area.y, 262 | )) 263 | } 264 | 265 | if popup_open { 266 | let area = centered_rect(60, 20, size); 267 | rect.render_widget(Clear, area); 268 | let input_text = input_file_name.value(); 269 | let text = vec![ 270 | Line::from(vec![input_text.fg(Color::Yellow)]), 271 | "".into(), 272 | Line::from(vec![ 273 | "ESC".green(), 274 | " to abort. ".into(), 275 | "END".green(), 276 | " to quit without saving. ".into(), 277 | "Enter".green(), 278 | " to save and quit".into(), 279 | ]), 280 | ]; 281 | rect.render_widget( 282 | Paragraph::new(text).block(Block::bordered().title("Save as")), 283 | area, 284 | ); 285 | rect.set_cursor_position(( 286 | // Put cursor past the end of the input text 287 | area.x + (input_file_name.visual_cursor() as u16) + 1, 288 | // Move one line own, from the border to the input line 289 | area.y + 1, 290 | )) 291 | } 292 | })?; 293 | 294 | match cursor_mode { 295 | CursorMode::Popup => { 296 | match rx.recv()? { 297 | Event::Input(event) => match event.code { 298 | KeyCode::End => { 299 | terminal.clear()?; 300 | // restore terminal 301 | disable_raw_mode()?; 302 | execute!( 303 | terminal.backend_mut(), 304 | LeaveAlternateScreen, 305 | DisableMouseCapture 306 | )?; 307 | terminal.show_cursor()?; 308 | break; 309 | } 310 | KeyCode::Enter => { 311 | terminal.clear()?; 312 | // restore terminal 313 | disable_raw_mode()?; 314 | execute!( 315 | terminal.backend_mut(), 316 | LeaveAlternateScreen, 317 | DisableMouseCapture 318 | )?; 319 | terminal.show_cursor()?; 320 | let _ = save_to_xlsx(&model, input_file_name.value()); 321 | break; 322 | } 323 | KeyCode::Esc => { 324 | popup_open = false; 325 | cursor_mode = CursorMode::Navigate; 326 | } 327 | _ => { 328 | input_file_name.handle_event(&CEvent::Key(event)); 329 | } 330 | }, 331 | Event::Tick => {} 332 | } 333 | } 334 | CursorMode::Navigate => { 335 | match rx.recv()? { 336 | Event::Input(event) => match event.code { 337 | KeyCode::Char('q') => { 338 | popup_open = true; 339 | cursor_mode = CursorMode::Popup; 340 | } 341 | KeyCode::Down => { 342 | selected_row_index += 1; 343 | } 344 | KeyCode::Up => { 345 | if selected_row_index > 1 { 346 | selected_row_index -= 1; 347 | } 348 | } 349 | KeyCode::Right => { 350 | selected_column_index += 1; 351 | } 352 | KeyCode::Left => { 353 | if selected_column_index > 1 { 354 | selected_column_index -= 1; 355 | } 356 | } 357 | KeyCode::PageDown => { 358 | selected_row_index += 10; 359 | } 360 | KeyCode::PageUp => { 361 | if selected_row_index > 10 { 362 | selected_row_index -= 10; 363 | } else { 364 | selected_row_index = 1; 365 | } 366 | } 367 | KeyCode::Char('s') => { 368 | selected_sheet += 1; 369 | if selected_sheet >= sheet_names.len() { 370 | selected_sheet = 0; 371 | } 372 | } 373 | KeyCode::Char('a') => { 374 | selected_sheet = selected_sheet.saturating_sub(1); 375 | } 376 | KeyCode::Char('e') => { 377 | cursor_mode = CursorMode::Input; 378 | let input_str = model 379 | .get_cell_formula( 380 | selected_sheet as u32, 381 | selected_row_index as i32, 382 | selected_column_index, 383 | ) 384 | .unwrap() 385 | .unwrap_or_default(); 386 | input_formula = input_formula.with_value(input_str); 387 | } 388 | KeyCode::Char('+') => { 389 | model.new_sheet(); 390 | model.evaluate(); 391 | sheet_names = model.workbook.get_worksheet_names(); 392 | } 393 | _ => { 394 | // println!("{:?}", event); 395 | } 396 | }, 397 | Event::Tick => {} 398 | } 399 | } 400 | CursorMode::Input => match rx.recv()? { 401 | Event::Input(event) => match event.code { 402 | // KeyCode::Char(c) => { 403 | // input_str.push(c); 404 | // } 405 | // KeyCode::Backspace => { 406 | // input_str.pop(); 407 | // } 408 | KeyCode::Enter => { 409 | cursor_mode = CursorMode::Navigate; 410 | let value = input_formula.value().to_string(); 411 | let sheet = selected_sheet as i32; 412 | let row = selected_row_index as i32; 413 | let column = selected_column_index; 414 | model 415 | .set_user_input(sheet as u32, row, column, value) 416 | .unwrap(); 417 | model.evaluate(); 418 | } 419 | _ => { 420 | input_formula.handle_event(&CEvent::Key(event)); 421 | } 422 | }, 423 | Event::Tick => {} 424 | }, 425 | } 426 | } 427 | 428 | Ok(()) 429 | } 430 | 431 | /// helper function to create a centered rect using up certain percentage of the available rect `r` 432 | fn centered_rect(percent_x: u16, percent_y: u16, r: Rect) -> Rect { 433 | let popup_layout = Layout::vertical([ 434 | Constraint::Percentage((100 - percent_y) / 2), 435 | Constraint::Percentage(percent_y), 436 | Constraint::Percentage((100 - percent_y) / 2), 437 | ]) 438 | .split(r); 439 | 440 | Layout::horizontal([ 441 | Constraint::Percentage((100 - percent_x) / 2), 442 | Constraint::Percentage(percent_x), 443 | Constraint::Percentage((100 - percent_x) / 2), 444 | ]) 445 | .split(popup_layout[1])[1] 446 | } 447 | --------------------------------------------------------------------------------