summary refs log tree commit diff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-01-04 12:07:39 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:57:20 +0200
commit89dbfbe009443d23f239db57a338ab0ecf6d557d (patch)
treee6fdbae991b225ddcbb269d102fb4cf1b7ece17c
parent3c38fd6ab4b3a7d30a65775c11912c73ebffad66 (diff)
downloadguix-89dbfbe009443d23f239db57a338ab0ecf6d557d.tar.gz
gnu: Add rust-web-time-0.2.
* gnu/packages/crates-io.scm (rust-web-time-0.2): New variable.

Change-Id: Id15bb75f20ca9ae348a9807566adb4a65faf65c8
-rw-r--r--gnu/packages/crates-io.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 36565583f6..d7d539d836 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -83077,6 +83077,37 @@ for terminal and other window-less applications.")
      "Bindings for all Web APIs, a procedurally generated crate from WebIDL.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-web-time-0.2
+  (package
+    (name "rust-web-time")
+    (version "0.2.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "web-time" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1q6gk0nkwbfz30g1pz8g52mq00zjx7m5im36k3474aw73jdh8c5a"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f      ; Not all files included.
+       #:cargo-inputs (("rust-js-sys" ,rust-js-sys-0.3)
+                       ("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2))
+       #:cargo-development-inputs
+       (("rust-futures-channel" ,rust-futures-channel-0.3)
+        ("rust-futures-util" ,rust-futures-util-0.3)
+        ("rust-getrandom" ,rust-getrandom-0.2)
+        ("rust-pollster" ,rust-pollster-0.3)
+        ("rust-rand" ,rust-rand-0.8)
+        ("rust-wasm-bindgen-futures" ,rust-wasm-bindgen-futures-0.4)
+        ("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3)
+        ("rust-web-sys" ,rust-web-sys-0.3))))
+    (home-page "https://github.com/daxpedda/web-time")
+    (synopsis "Drop-in replacement for std::time for Wasm in browsers")
+    (description
+     "Drop-in replacement for @code{std::time} for Wasm in browsers.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-webbrowser-0.8
   (package
     (name "rust-webbrowser")