[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
343/470: gnu: Add rust-jpeg-decoder-0.3.
From: |
guix-commits |
Subject: |
343/470: gnu: Add rust-jpeg-decoder-0.3. |
Date: |
Thu, 16 Mar 2023 03:01:56 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit a60408f993dfb8384480a44dda8d23c0435abece
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Feb 23 16:01:05 2023 +0200
gnu: Add rust-jpeg-decoder-0.3.
* gnu/packages/crates-graphics.scm (rust-jpeg-decoder-0.3): New variable.
(rust-jpeg-decoder-0.1): Inherit from rust-jpeg-decoder-0.3.
---
gnu/packages/crates-graphics.scm | 39 +++++++++++++++++++++++++++++++++------
1 file changed, 33 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index ba517cdaa8..18b852a8a8 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -1446,8 +1446,40 @@ filters and decoders for the most common image formats.")
pixel buffers with width, height and stride.")
(license license:cc0)))
+(define-public rust-jpeg-decoder-0.3
+ (package
+ (name "rust-jpeg-decoder")
+ (version "0.3.0")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "jpeg-decoder" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0gkv0zx95i4fr40fj1a10d70lqi6lfyia8r5q8qjxj8j4pj0005w"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ (substitute* "Cargo.toml"
+ (("=0\\.2\\.83") "^0.2.83"))))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:tests? #f ; Not all files included
+ #:cargo-inputs
+ (("rust-rayon" ,rust-rayon-1))
+ #:cargo-development-inputs
+ (("rust-criterion" ,rust-criterion-0.3)
+ ("rust-png" ,rust-png-0.16)
+ ("rust-walkdir" ,rust-walkdir-2)
+ ("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2)
+ ("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3))))
+ (home-page "https://github.com/image-rs/jpeg-decoder")
+ (synopsis "JPEG decoder")
+ (description "JPEG decoder written in Rust.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-jpeg-decoder-0.1
(package
+ (inherit rust-jpeg-decoder-0.3)
(name "rust-jpeg-decoder")
(version "0.1.22")
(source
@@ -1458,7 +1490,6 @@ pixel buffers with width, height and stride.")
(string-append name "-" version ".tar.gz"))
(sha256
(base32 "1wnh0bmmswpgwhgmlizz545x8334nlbmkq8imy9k224ri3am7792"))))
- (build-system cargo-build-system)
(arguments
`(#:tests? #f ; Some test files missing.
#:cargo-inputs
@@ -1467,11 +1498,7 @@ pixel buffers with width, height and stride.")
#:cargo-development-inputs
(("rust-criterion" ,rust-criterion-0.3)
("rust-png" ,rust-png-0.14)
- ("rust-walkdir" ,rust-walkdir-2))))
- (home-page "https://github.com/image-rs/jpeg-decoder")
- (synopsis "JPEG decoder")
- (description "JPEG decoder written in Rust.")
- (license (list license:expat license:asl2.0))))
+ ("rust-walkdir" ,rust-walkdir-2))))))
(define-public rust-line-drawing-0.7
(package
- 299/470: gnu: Add rust-ntest-test-cases-0.8., (continued)
- 299/470: gnu: Add rust-ntest-test-cases-0.8., guix-commits, 2023/03/16
- 291/470: gnu: Add rust-hyper-rustls-0.23., guix-commits, 2023/03/16
- 302/470: gnu: rust-http-auth-0.1: Don't skip build., guix-commits, 2023/03/16
- 294/470: gnu: Add rust-password-hash-0.4., guix-commits, 2023/03/16
- 314/470: gnu: Remove rust-rustc-rayon-0.3., guix-commits, 2023/03/16
- 336/470: gnu: rust-aom-sys-0.3: Update to 0.3.2., guix-commits, 2023/03/16
- 326/470: gnu: Remove rust-gettext-sys-0.19., guix-commits, 2023/03/16
- 337/470: gnu: Add rust-avif-parse-1., guix-commits, 2023/03/16
- 333/470: gnu: Remove rust-gl-0.11., guix-commits, 2023/03/16
- 334/470: Revert "gnu: Remove rust-libz-ng-sys-1.", guix-commits, 2023/03/16
- 343/470: gnu: Add rust-jpeg-decoder-0.3.,
guix-commits <=
- 385/470: gnu: Add rust-built-0.5., guix-commits, 2023/03/16
- 390/470: gnu: Add rust-webp-0.2., guix-commits, 2023/03/16
- 426/470: gnu: Add rust-faccess-0.2., guix-commits, 2023/03/16
- 391/470: gnu: Add rust-mp4parse-0.12., guix-commits, 2023/03/16
- 392/470: gnu: Add rust-libwebp-sys-0.4., guix-commits, 2023/03/16
- 395/470: gnu: Add rust-dav1d-0.6., guix-commits, 2023/03/16
- 400/470: gnu: gdk-pixbuf: Remove broken configuration option., guix-commits, 2023/03/16
- 425/470: gnu: Add rust-normpath-0.3., guix-commits, 2023/03/16
- 417/470: gnu: rust-signal-hook-mio-0.2: Update to 0.2.3., guix-commits, 2023/03/16
- 216/470: gnu: Add rust-trycmd-0.14., guix-commits, 2023/03/16