From 9f4cab6c134fb983e38f65a27b9b9877ec6d66cd Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Sat, 11 May 2024 23:17:33 +0200 Subject: [PATCH] improved compression support --- Cargo.lock | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++- Cargo.toml | 3 +-- 2 files changed, 74 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 496e0c7..fc45203 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -342,6 +342,27 @@ version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" +[[package]] +name = "bzip2" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdb116a6ef3f6c3698828873ad02c3014b3c85cadb88496095628e3ef1e347f8" +dependencies = [ + "bzip2-sys", + "libc", +] + +[[package]] +name = "bzip2-sys" +version = "0.1.11+1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc" +dependencies = [ + "cc", + "libc", + "pkg-config", +] + [[package]] name = "calloop" version = "0.12.4" @@ -1265,6 +1286,26 @@ dependencies = [ "imgref", ] +[[package]] +name = "lz4" +version = "1.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e9e2dd86df36ce760a60f6ff6ad526f7ba1f14ba0356f8254fb6905e6494df1" +dependencies = [ + "libc", + "lz4-sys", +] + +[[package]] +name = "lz4-sys" +version = "1.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57d27b317e207b10f69f5e75494119e391a96f48861ae870d1da6edac98ca900" +dependencies = [ + "cc", + "libc", +] + [[package]] name = "malloc_buf" version = "0.0.6" @@ -2151,13 +2192,16 @@ dependencies = [ [[package]] name = "servicepoint2" version = "0.1.0" -source = "git+https://github.com/kaesaecracker/servicepoint.git#5c61d027496b3d27a7bfea438dc11453e18f566a" +source = "git+https://github.com/kaesaecracker/servicepoint.git#0a3f400e92296b3dade6ff1995d183b8dec1d997" dependencies = [ + "bzip2", "flate2", "log", + "lz4", "num", "num-derive", "num-traits", + "zstd", ] [[package]] @@ -3230,6 +3274,34 @@ dependencies = [ "syn", ] +[[package]] +name = "zstd" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d789b1514203a1120ad2429eae43a7bd32b90976a7bb8a05f7ec02fa88cc23a" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "7.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cd99b45c6bc03a018c8b8a86025678c87e55526064e38f9df301989dce7ec0a" +dependencies = [ + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "2.0.10+zstd.1.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c253a4914af5bafc8fa8c86ee400827e83cf6ec01195ec1f1ed8441bf00d65aa" +dependencies = [ + "cc", + "pkg-config", +] + [[package]] name = "zune-core" version = "0.4.12" diff --git a/Cargo.toml b/Cargo.toml index ce5d475..bda7357 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,5 +18,4 @@ num-traits = "0.2" font-kit = { version = "0.13.0", features = ["loader-freetype-default", "loader-freetype"], default-features = false } pathfinder_geometry = "0.5.1" yeslogic-fontconfig-sys = { version = "5.0", features = ["dlopen"] } -# servicepoint2 = { path = "../servicepoint2" } -servicepoint2 = { git = "https://github.com/kaesaecracker/servicepoint.git" } +servicepoint2 = { git = "https://github.com/kaesaecracker/servicepoint.git" } \ No newline at end of file