guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

19/330: gnu: Add rust-object-0.32.


From: guix-commits
Subject: 19/330: gnu: Add rust-object-0.32.
Date: Mon, 18 Mar 2024 07:14:57 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 309a483b23d99bcf8615fcd5f6dece5d805128b7
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Mar 14 10:58:21 2024 +0200

    gnu: Add rust-object-0.32.
    
    * gnu/packages/crates-io.scm (rust-object-0.32): New variable.
    (rust-object-0.30): Inherit from rust-object-0.32.
    
    Change-Id: Ice57fec4251daae857deaf5efcbde5688caaf7bd
---
 gnu/packages/crates-io.scm | 45 +++++++++++++++++++++++++++++++++++++--------
 1 file changed, 37 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ea0e3ec524..5b249bdcf2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -43376,8 +43376,44 @@ form and deobfuscated locally.")
      "This package provides a package for loading Wavefront @code{.obj} 
files.")
     (license license:asl2.0)))
 
+(define-public rust-object-0.32
+  (package
+    (name "rust-object")
+    (version "0.32.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "object" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0hc4cjwyngiy6k51hlzrlsxgv5z25vv7c2cp0ky1lckfic0259m6"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags
+       '("--release" "--"
+         ;; Not all files are included
+         "--skip=read::coff::coff_extended_relocations")
+       #:cargo-inputs
+       (("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
+        ("rust-crc32fast" ,rust-crc32fast-1)
+        ("rust-flate2" ,rust-flate2-1)
+        ("rust-hashbrown" ,rust-hashbrown-0.14)
+        ("rust-indexmap" ,rust-indexmap-2)
+        ("rust-memchr" ,rust-memchr-2)
+        ("rust-rustc-std-workspace-alloc" ,rust-rustc-std-workspace-alloc-1)
+        ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1)
+        ("rust-ruzstd" ,rust-ruzstd-0.5)
+        ("rust-wasmparser" ,rust-wasmparser-0.118))))
+    (home-page "https://github.com/gimli-rs/object";)
+    (synopsis "Unified interface for reading and writing object file formats")
+    (description
+     "This package provides a unified interface for reading and writing object
+file formats.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-object-0.30
   (package
+    (inherit rust-object-0.32)
     (name "rust-object")
     (version "0.30.3")
     (source (origin
@@ -43387,7 +43423,6 @@ form and deobfuscated locally.")
               (sha256
                (base32
                 "0fdl7qjsz1j9kl3j7f4656fswzrqpyj2kgaizhknmjrx7mfjd1pa"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-test-flags
        '("--release" "--"
@@ -43402,13 +43437,7 @@ form and deobfuscated locally.")
         ("rust-memchr" ,rust-memchr-2)
         ("rust-rustc-std-workspace-alloc" ,rust-rustc-std-workspace-alloc-1)
         ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1)
-        ("rust-wasmparser" ,rust-wasmparser-0.57))))
-    (home-page "https://github.com/gimli-rs/object";)
-    (synopsis "Unified interface for reading and writing object file formats")
-    (description
-     "This package provides a unified interface for reading and writing object
-file formats.")
-    (license (list license:asl2.0 license:expat))))
+        ("rust-wasmparser" ,rust-wasmparser-0.57))))))
 
 (define-public rust-object-0.29
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]