From e59ac7b75818ab75a9d2723bbb964f57cf7ebd8e Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 26 Dec 2024 22:33:15 +0200 Subject: [PATCH] gnu: rust-lz4: Move to (gnu packages crates-compression). * gnu/packages/crates-io.scm (rust-lz4-1, rust-lz4-compress-0.1, rust-lz4-flex-0.11, rust-lz4-flex-0.9, rust-lz4-sys-1): Move from here * gnu/packages/crates-compression.scm: ... to here. Change-Id: Ibd651c4843d137c3cbf1b192891a5e1f9c7c6559 --- gnu/packages/crates-compression.scm | 114 ++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 114 ---------------------------- 2 files changed, 114 insertions(+), 114 deletions(-) diff --git a/gnu/packages/crates-compression.scm b/gnu/packages/crates-compression.scm index e5bffdaad0..ea390f3453 100644 --- a/gnu/packages/crates-compression.scm +++ b/gnu/packages/crates-compression.scm @@ -1019,6 +1019,120 @@ (define-public rust-libz-sys-1 known as zlib).") (license (list license:asl2.0 license:expat)))) +(define-public rust-lz4-1 + (package + (name "rust-lz4") + (version "1.24.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "lz4" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1wad97k0asgvaj16ydd09gqs2yvgaanzcvqglrhffv7kdpc2v7ky")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-libc" ,rust-libc-0.2) + ("rust-lz4-sys" ,rust-lz4-sys-1)) + #:cargo-development-inputs + (("rust-docmatic" ,rust-docmatic-0.1) + ("rust-rand" ,rust-rand-0.8)))) + (home-page "https://github.com/10xGenomics/lz4-rs") + (synopsis "Rust LZ4 bindings library") + (description "This crate provides Rust LZ4 bindings.") + (license license:expat))) + +(define-public rust-lz4-compress-0.1 + (package + (name "rust-lz4-compress") + (version "0.1.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "lz4-compress" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "14cb8rpdfk6q3bjkf7mirpyzb6rvvcglqnayx6lvpa92m4rnb5hg")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-byteorder" ,rust-byteorder-0.5) + ("rust-quick-error" ,rust-quick-error-1)))) + (home-page "https://github.com/ticki/tfs") + (synopsis "Pure Rust implementation of raw LZ4 compression/decompression") + (description + "Pure Rust implementation of raw LZ4 compression/decompression.") + (license license:expat))) + +(define-public rust-lz4-flex-0.11 + (package + (name "rust-lz4-flex") + (version "0.11.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "lz4_flex" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1n290fjvfi8jg20n6i0q77g8pqi5srnpgg7zhw1ppnlyd5bb5a9y")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-twox-hash" ,rust-twox-hash-1)) + #:cargo-development-inputs (("rust-lz4-compress" ,rust-lz4-compress-0.1) + ("rust-lzzzz" ,rust-lzzzz-1) + ("rust-more-asserts" ,rust-more-asserts-0.3) + ("rust-proptest" ,rust-proptest-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-snap" ,rust-snap-1)))) + (home-page "https://github.com/pseitz/lz4_flex") + (synopsis "LZ4 implementation in Rust, no unsafe by default") + (description "LZ4 implementation in Rust, no unsafe by default.") + (license license:expat))) + +(define-public rust-lz4-flex-0.9 + (package + (inherit rust-lz4-flex-0.11) + (name "rust-lz4-flex") + (version "0.9.5") + (source + (origin + (method url-fetch) + (uri (crate-uri "lz4_flex" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "18xm7s81bpfgvvrra2kknrbgfbi295diz90mkhxvr00phfrbp30s")))) + (arguments + `(#:cargo-inputs (("rust-twox-hash" ,rust-twox-hash-1)) + #:cargo-development-inputs (("rust-criterion" ,rust-criterion-0.3) + ("rust-lz4-compress" ,rust-lz4-compress-0.1) + ("rust-lzzzz" ,rust-lzzzz-1) + ("rust-more-asserts" ,rust-more-asserts-0.2) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-snap" ,rust-snap-1)))))) + +(define-public rust-lz4-sys-1 + (package + (name "rust-lz4-sys") + (version "1.9.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "lz4-sys" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0059ik4xlvnss5qfh6l691psk4g3350ljxaykzv10yr0gqqppljp")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cc" ,rust-cc-1) + ("rust-libc" ,rust-libc-0.2)))) + (home-page "https://github.com/bozaro/lz4-rs") + (synopsis "Rust LZ4 sys package") + (description "This is the Rust LZ4 sys package.") + (license license:expat))) + (define-public rust-miniz-oxide-0.8 (package (name "rust-miniz-oxide") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 5d17041812..da0e30c668 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -42125,120 +42125,6 @@ (define-public rust-lsp-types-0.80 ("rust-serde-repr" ,rust-serde-repr-0.1) ("rust-url" ,rust-url-2)))))) -(define-public rust-lz4-1 - (package - (name "rust-lz4") - (version "1.24.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "lz4" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1wad97k0asgvaj16ydd09gqs2yvgaanzcvqglrhffv7kdpc2v7ky")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-libc" ,rust-libc-0.2) - ("rust-lz4-sys" ,rust-lz4-sys-1)) - #:cargo-development-inputs - (("rust-docmatic" ,rust-docmatic-0.1) - ("rust-rand" ,rust-rand-0.8)))) - (home-page "https://github.com/10xGenomics/lz4-rs") - (synopsis "Rust LZ4 bindings library") - (description "This crate provides Rust LZ4 bindings.") - (license license:expat))) - -(define-public rust-lz4-compress-0.1 - (package - (name "rust-lz4-compress") - (version "0.1.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "lz4-compress" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "14cb8rpdfk6q3bjkf7mirpyzb6rvvcglqnayx6lvpa92m4rnb5hg")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs (("rust-byteorder" ,rust-byteorder-0.5) - ("rust-quick-error" ,rust-quick-error-1)))) - (home-page "https://github.com/ticki/tfs") - (synopsis "Pure Rust implementation of raw LZ4 compression/decompression") - (description - "Pure Rust implementation of raw LZ4 compression/decompression.") - (license license:expat))) - -(define-public rust-lz4-flex-0.11 - (package - (name "rust-lz4-flex") - (version "0.11.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "lz4_flex" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1n290fjvfi8jg20n6i0q77g8pqi5srnpgg7zhw1ppnlyd5bb5a9y")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs (("rust-twox-hash" ,rust-twox-hash-1)) - #:cargo-development-inputs (("rust-lz4-compress" ,rust-lz4-compress-0.1) - ("rust-lzzzz" ,rust-lzzzz-1) - ("rust-more-asserts" ,rust-more-asserts-0.3) - ("rust-proptest" ,rust-proptest-1) - ("rust-serde-json" ,rust-serde-json-1) - ("rust-snap" ,rust-snap-1)))) - (home-page "https://github.com/pseitz/lz4_flex") - (synopsis "LZ4 implementation in Rust, no unsafe by default") - (description "LZ4 implementation in Rust, no unsafe by default.") - (license license:expat))) - -(define-public rust-lz4-flex-0.9 - (package - (inherit rust-lz4-flex-0.11) - (name "rust-lz4-flex") - (version "0.9.5") - (source - (origin - (method url-fetch) - (uri (crate-uri "lz4_flex" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "18xm7s81bpfgvvrra2kknrbgfbi295diz90mkhxvr00phfrbp30s")))) - (arguments - `(#:cargo-inputs (("rust-twox-hash" ,rust-twox-hash-1)) - #:cargo-development-inputs (("rust-criterion" ,rust-criterion-0.3) - ("rust-lz4-compress" ,rust-lz4-compress-0.1) - ("rust-lzzzz" ,rust-lzzzz-1) - ("rust-more-asserts" ,rust-more-asserts-0.2) - ("rust-serde-json" ,rust-serde-json-1) - ("rust-snap" ,rust-snap-1)))))) - -(define-public rust-lz4-sys-1 - (package - (name "rust-lz4-sys") - (version "1.9.4") - (source - (origin - (method url-fetch) - (uri (crate-uri "lz4-sys" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0059ik4xlvnss5qfh6l691psk4g3350ljxaykzv10yr0gqqppljp")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-cc" ,rust-cc-1) - ("rust-libc" ,rust-libc-0.2)))) - (home-page "https://github.com/bozaro/lz4-rs") - (synopsis "Rust LZ4 sys package") - (description "This is the Rust LZ4 sys package.") - (license license:expat))) - (define-public rust-lzma-rs-0.3 (package (name "rust-lzma-rs")