diff --git a/Cargo.lock b/Cargo.lock index 5a14650..867d377 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -65,6 +65,15 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "approx" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6" +dependencies = [ + "num-traits", +] + [[package]] name = "async-broadcast" version = "0.7.2" @@ -283,6 +292,12 @@ version = "3.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43" +[[package]] +name = "by_address" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64fa3c856b712db6612c019f14756e64e4bcea13337a6b33b696333a9eaa2d06" + [[package]] name = "byteorder" version = "1.5.0" @@ -839,6 +854,12 @@ dependencies = [ "once_cell", ] +[[package]] +name = "fast-srgb8" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd2e7510819d6fbf51a5545c8f922716ecfb14df168a3242f7d33e0239efe6a1" + [[package]] name = "fastrand" version = "2.3.0" @@ -1634,6 +1655,30 @@ version = "4.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "48dd4f4a2c8405440fd0462561f0e5806bd0f77e86f51c761481bdd4018b545e" +[[package]] +name = "palette" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cbf71184cc5ecc2e4e1baccdb21026c20e5fc3dcf63028a086131b3ab00b6e6" +dependencies = [ + "approx", + "fast-srgb8", + "palette_derive", + "phf", +] + +[[package]] +name = "palette_derive" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f5030daf005bface118c096f510ffb781fc28f9ab6a32ab224d8631be6851d30" +dependencies = [ + "by_address", + "proc-macro2", + "quote", + "syn 2.0.106", +] + [[package]] name = "parking" version = "2.2.1" @@ -1675,6 +1720,7 @@ version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078" dependencies = [ + "phf_macros", "phf_shared", ] @@ -1698,6 +1744,19 @@ dependencies = [ "rand", ] +[[package]] +name = "phf_macros" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f84ac04429c13a7ff43785d75ad27569f2951ce0ffd30a3321230db2fc727216" +dependencies = [ + "phf_generator", + "phf_shared", + "proc-macro2", + "quote", + "syn 2.0.106", +] + [[package]] name = "phf_shared" version = "0.11.3" @@ -1832,11 +1891,12 @@ dependencies = [ [[package]] name = "rat-focus" -version = "1.0.2" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b4866c2abcc7b8c8744548b4849c67b654d2dd28ee118fcc9b65979c96247cb" +checksum = "9778c58871fb145c6682633f432fcd4ec302f06fd41765dbd86b823e6cc6eaf4" dependencies = [ "crossterm 0.28.1", + "dyn-clone", "fxhash", "log", "rat-event", @@ -1846,19 +1906,18 @@ dependencies = [ [[package]] name = "rat-reloc" -version = "1.1.2" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbddcf2d92aae0efb227180c07d8fbbb4480cd30318e4e6f5825aae8f6dc5ba5" +checksum = "bcd0715b910956d845c342cc570b17685a154768b2d05b555cd95fbc137138d5" dependencies = [ - "log", "ratatui", ] [[package]] name = "rat-scrolled" -version = "1.1.2" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bef575500e9a54d649a470abf1ec136929845bfced1badb5fda4994c6ce39f9" +checksum = "72abe5d23aef5d1d53a92e3c5c4a2477063080c1d7f67308d1c9fa33c78a626d" dependencies = [ "crossterm 0.28.1", "log", @@ -1869,9 +1928,9 @@ dependencies = [ [[package]] name = "rat-text" -version = "1.0.5" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95641a2429aeb420a2c37d7a8c0395cf28ce4ac4f32d914813196ca22a7a3004" +checksum = "932a01bf5d40400660b6c3db128f1d564edd9545d096df4ae69593aa8e920e19" dependencies = [ "chrono", "crossterm 0.28.1", @@ -1879,6 +1938,7 @@ dependencies = [ "format_num_pattern", "iset", "log", + "palette", "pure-rust-locales", "rat-cursor", "rat-event", @@ -1886,7 +1946,9 @@ dependencies = [ "rat-reloc", "rat-scrolled", "ratatui", + "regex-cursor", "ropey", + "rustc-hash", "unicode-display-width", "unicode-segmentation", ] @@ -1955,6 +2017,19 @@ dependencies = [ "regex-syntax", ] +[[package]] +name = "regex-cursor" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0497c781d2f982ae8284d2932aee6a877e58a4541daa5e8fadc18cc75c23a61d" +dependencies = [ + "log", + "memchr", + "regex-automata", + "regex-syntax", + "ropey", +] + [[package]] name = "regex-syntax" version = "0.8.6" @@ -1977,6 +2052,12 @@ version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "56f7d92ca342cea22a06f2121d944b4fd82af56988c270852495420f961d4ace" +[[package]] +name = "rustc-hash" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" + [[package]] name = "rustix" version = "0.38.44" diff --git a/Cargo.toml b/Cargo.toml index cafd865..f927989 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,5 +21,5 @@ regex = "1.11.2" [dev-dependencies] cargo-watch = "8.5.3" -rat-text = "1.0.5" +rat-text = "2.3.0" which = "8.0.0"