guix-commits
[Top][All Lists]
Advanced

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

281/330: gnu: Add rust-rust-embed-8.


From: guix-commits
Subject: 281/330: gnu: Add rust-rust-embed-8.
Date: Mon, 18 Mar 2024 07:16:36 -0400 (EDT)

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

commit f0d896d991f683020f02793b5d5ce0fc92a4781f
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Mar 18 11:53:58 2024 +0200

    gnu: Add rust-rust-embed-8.
    
    * gnu/packages/crates-io.scm (rust-rust-embed-8): New variable.
    (rust-rust-embed-5): Inherit from rust-rust-embed-8.
    
    Change-Id: I1399e418b4ab1a1dcb57d3c3220e53b26353f47d
---
 gnu/packages/crates-io.scm | 50 +++++++++++++++++++++++++++++++++++++---------
 1 file changed, 41 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ab435cf816..d756dc88a1 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -60250,8 +60250,48 @@ reading and writing BAM files.")
 suitable for financial calculations.")
     (license license:expat)))
 
+(define-public rust-rust-embed-8
+  (package
+    (name "rust-rust-embed")
+    (version "8.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rust-embed" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0ic70vd4lh6dhjnxaq8wywq3bg23jf78jyyashb3s1b601nz8y7v"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags '("--release" "--"
+                            "--skip=create_is_accurate"
+                            "--skip=last_modified_is_accurate"
+                            "--skip=RustEmbed")
+       #:cargo-inputs (("rust-actix-web" ,rust-actix-web-4)
+                       ("rust-axum" ,rust-axum-0.7)
+                       ("rust-hex" ,rust-hex-0.4)
+                       ("rust-include-flate" ,rust-include-flate-0.2)
+                       ("rust-mime-guess" ,rust-mime-guess-2)
+                       ("rust-poem" ,rust-poem-1)
+                       ("rust-rocket" ,rust-rocket-0.5)
+                       ("rust-rust-embed-impl" ,rust-rust-embed-impl-8)
+                       ("rust-rust-embed-utils" ,rust-rust-embed-utils-8)
+                       ("rust-salvo" ,rust-salvo-0.16)
+                       ("rust-tokio" ,rust-tokio-1)
+                       ("rust-walkdir" ,rust-walkdir-2)
+                       ("rust-warp" ,rust-warp-0.3))
+       #:cargo-development-inputs (("rust-sha2" ,rust-sha2-0.10))))
+    (home-page "https://github.com/pyrossh/rust-embed";)
+    (synopsis "Rust custom @code{Derive} macro")
+    (description
+     "This package provides a custom @code{Derive} macro which loads files
+into the Rust binary at compile time during release and loads the file from
+the file-system during development.")
+    (license license:expat)))
+
 (define-public rust-rust-embed-5
   (package
+    (inherit rust-rust-embed-8)
     (name "rust-rust-embed")
     (version "5.9.0")
     (source
@@ -60261,7 +60301,6 @@ suitable for financial calculations.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "08smnqn21vn5zaywfki391v2l9v30cs0446qzzhvjssxmimgxq9g"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-test-flags
        '("--release" "--"
@@ -60275,14 +60314,7 @@ suitable for financial calculations.")
         ("rust-rust-embed-utils" ,rust-rust-embed-utils-5)
         ("rust-tokio" ,rust-tokio-0.2)
         ("rust-walkdir" ,rust-walkdir-2)
-        ("rust-warp" ,rust-warp-0.2))))
-    (home-page "https://github.com/pyros2097/rust-embed";)
-    (synopsis "Rust custom @code{Derive} macro")
-    (description
-     "This package provides a custom @code{Derive} macro which loads files
-into the Rust binary at compile time during release and loads the file from
-the file-system during development.")
-    (license license:expat)))
+        ("rust-warp" ,rust-warp-0.2))))))
 
 (define-public rust-rust-embed-impl-5
   (package



reply via email to

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