guix-commits
[Top][All Lists]
Advanced

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

141/330: gnu: Add rust-simd-json-0.13.


From: guix-commits
Subject: 141/330: gnu: Add rust-simd-json-0.13.
Date: Mon, 18 Mar 2024 07:15:51 -0400 (EDT)

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

commit 0cac1f577113811a42226220fc510bc2bc6e6b4c
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sat Mar 16 21:59:56 2024 +0200

    gnu: Add rust-simd-json-0.13.
    
    * gnu/packages/crates-io.scm (rust-simd-json-0.13): New variable.
    
    Change-Id: Ife25a37141881490083ff8cff19d650f1a6b05d6
---
 gnu/packages/crates-io.scm | 53 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a9696e8f08..43e1d94ab0 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -64382,6 +64382,59 @@ implementation in Rust.")
      "This package provides helpers to write more compact simd code.")
     (license license:expat)))
 
+(define-public rust-simd-json-0.13
+  (package
+    (name "rust-simd-json")
+    (version "0.13.8")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "simd-json" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0xmzpzklnxxnwspf7abhzgr3khbnrw4h8svag8rq9i4v3c88zbrg"))
+       (snippet
+        #~(begin (use-modules (guix build utils))
+                 ;; Remove some of the optional dependencies:
+                 (substitute* "Cargo.toml.orig"
+                   ((".*alloc_counter.*") "")
+                   ((".*colored.*") "")
+                   ((".*jemallocator.*") "")
+                   ((".*perfcnt.*") ""))
+                 (rename-file "Cargo.toml.orig" "Cargo.toml")))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-ahash" ,rust-ahash-0.8)
+                       ;("rust-alloc-counter" ,rust-alloc-counter-0.0.4)
+                       ("rust-beef" ,rust-beef-0.5)
+                       ;("rust-colored" ,rust-colored-2)
+                       ("rust-getopts" ,rust-getopts-0.2)
+                       ("rust-getrandom" ,rust-getrandom-0.2)
+                       ("rust-halfbrown" ,rust-halfbrown-0.2)
+                       ;("rust-jemallocator" ,rust-jemallocator-0.5)
+                       ("rust-lexical-core" ,rust-lexical-core-0.8)
+                       ("rust-once-cell" ,rust-once-cell-1)
+                       ;("rust-perfcnt" ,rust-perfcnt-0.8)
+                       ("rust-ref-cast" ,rust-ref-cast-1)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-json" ,rust-serde-json-1)
+                       ("rust-simdutf8" ,rust-simdutf8-0.1)
+                       ("rust-value-trait" ,rust-value-trait-0.8))
+       #:cargo-development-inputs (("rust-core-affinity" 
,rust-core-affinity-0.8)
+                                   ("rust-criterion" ,rust-criterion-0.5)
+                                   ("rust-float-cmp" ,rust-float-cmp-0.9)
+                                   ("rust-getopts" ,rust-getopts-0.2)
+                                   ("rust-proptest" ,rust-proptest-1))
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'pre-check
+           (lambda _
+             (delete-file "tests/jsonchecker.rs"))))))
+    (home-page "https://github.com/simd-lite/simd-json";)
+    (synopsis "High performance JSON parser based on a port of simdjson")
+    (description "High performance JSON parser based on a port of simdjson.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-simdutf8-0.1
   (package
     (name "rust-simdutf8")



reply via email to

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