diff --git a/Cargo.lock b/Cargo.lock index 09e309e..d3e6249 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -391,14 +391,14 @@ dependencies = [ [[package]] name = "cosmic-text" version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0b68966c2543609f8d92f9d33ac3b719b2a67529b0c6c0b3e025637b477eef9" +source = "git+https://github.com/hecrj/cosmic-text.git?rev=cb83458e7d0b84ef37c5beb72dda5046d7d343a6#cb83458e7d0b84ef37c5beb72dda5046d7d343a6" dependencies = [ "aliasable", "fontdb", "libm", "log", "rangemap", + "rustc-hash", "rustybuzz", "swash", "sys-locale", @@ -551,12 +551,22 @@ dependencies = [ "miniz_oxide", ] +[[package]] +name = "fontconfig-parser" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "674e258f4b5d2dcd63888c01c68413c51f565e8af99d2f7701c7b81d79ef41c4" +dependencies = [ + "roxmltree", +] + [[package]] name = "fontdb" version = "0.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af8d8cbea8f21307d7e84bca254772981296f058a1d36b461bf4d83a7499fc9e" dependencies = [ + "fontconfig-parser", "log", "memmap2 0.6.2", "slotmap", @@ -1958,6 +1968,15 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "216080ab382b992234dda86873c18d4c48358f5cfcb70fd693d7f6f2131b628b" +[[package]] +name = "roxmltree" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "862340e351ce1b271a378ec53f304a5558f7db87f3769dc655a8f6ecbb68b302" +dependencies = [ + "xmlparser", +] + [[package]] name = "rustc-demangle" version = "0.1.23" @@ -3089,6 +3108,12 @@ version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fcb9cbac069e033553e8bb871be2fbdffcab578eb25bd0f7c508cedc6dcd75a" +[[package]] +name = "xmlparser" +version = "0.13.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66fee0b777b0f5ac1c69bb06d361268faafa61cd4682ae064a171c16c433e9e4" + [[package]] name = "yazi" version = "0.1.6" diff --git a/Cargo.toml b/Cargo.toml index 2f0368d..5028afb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,3 +14,7 @@ peg = "0.8.2" serde = { version = "1.0.192", features = ["derive"] } serde_json = "1.0.108" toml = "0.8.8" + +[patch.crates-io.cosmic-text] +git = "https://github.com/hecrj/cosmic-text.git" +rev = "cb83458e7d0b84ef37c5beb72dda5046d7d343a6" diff --git a/flake.nix b/flake.nix index a935c3a..5b2d80e 100644 --- a/flake.nix +++ b/flake.nix @@ -22,7 +22,7 @@ cargo = rust; rustc = rust; }; - libPath = with pkgs; lib.makeLibraryPath [libxkbcommon wayland]; + libPath = with pkgs; lib.makeLibraryPath [libxkbcommon wayland vulkan-loader]; in { devShell = pkgs.mkShell { nativeBuildInputs = [rust pkgs.cargo-watch];