[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
180/194: gnu: Add rust-criterion-0.5.
From: |
guix-commits |
Subject: |
180/194: gnu: Add rust-criterion-0.5. |
Date: |
Tue, 3 Oct 2023 14:58:13 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit d29e869b3e6b752ce3c3c302cdc696cfca65b8d3
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Oct 3 16:02:17 2023 +0300
gnu: Add rust-criterion-0.5.
* gnu/packages/crates-io.scm (rust-criterion-0.5): New variable.
(rust-criterion-0.4): Inherit from rust-criterion-0.5.
---
gnu/packages/crates-io.scm | 65 ++++++++++++++++++++++++++++++++++++++++------
1 file changed, 57 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d911c28a13..4b79e390c2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -16175,8 +16175,64 @@ Rust.")
http://reveng.sourceforge.net/crc-catalogue) expressed as simple Rust
structs.")
(license (list license:expat license:asl2.0))))
+(define-public rust-criterion-0.5
+ (package
+ (name "rust-criterion")
+ (version "0.5.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "criterion" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0bv9ipygam3z8kk6k771gh9zi0j0lb9ir0xi1pc075ljg80jvcgj"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin (substitute* "Cargo.toml"
+ (("\"~([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
+ (string-append "\"^" version)))))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-anes" ,rust-anes-0.1)
+ ("rust-async-std" ,rust-async-std-1)
+ ("rust-cast" ,rust-cast-0.3)
+ ("rust-ciborium" ,rust-ciborium-0.2)
+ ("rust-clap" ,rust-clap-4)
+ ("rust-criterion-plot" ,rust-criterion-plot-0.5)
+ ("rust-csv" ,rust-csv-1)
+ ("rust-futures" ,rust-futures-0.3)
+ ("rust-is-terminal" ,rust-is-terminal-0.4)
+ ("rust-itertools" ,rust-itertools-0.10)
+ ("rust-num-traits" ,rust-num-traits-0.2)
+ ("rust-once-cell" ,rust-once-cell-1)
+ ("rust-oorandom" ,rust-oorandom-11.1)
+ ("rust-plotters" ,rust-plotters-0.3)
+ ("rust-rayon" ,rust-rayon-1)
+ ("rust-regex" ,rust-regex-1)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-derive" ,rust-serde-derive-1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-smol" ,rust-smol-1)
+ ("rust-tinytemplate" ,rust-tinytemplate-1)
+ ("rust-tokio" ,rust-tokio-1)
+ ("rust-walkdir" ,rust-walkdir-2))
+ #:cargo-development-inputs
+ (("rust-approx" ,rust-approx-0.5)
+ ("rust-futures" ,rust-futures-0.3)
+ ("rust-quickcheck" ,rust-quickcheck-1)
+ ("rust-rand" ,rust-rand-0.8)
+ ("rust-tempfile" ,rust-tempfile-3))))
+ (home-page "https://bheisler.github.io/criterion.rs/book/index.html")
+ (synopsis "Statistics-driven micro-benchmarking library")
+ (description
+ "This package provides a statistics-driven micro-benchmarking library.")
+ ;; The user can choose either license.
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-criterion-0.4
(package
+ (inherit rust-criterion-0.5)
(name "rust-criterion")
(version "0.4.0")
(source (origin
@@ -16186,7 +16242,6 @@ http://reveng.sourceforge.net/crc-catalogue) expressed
as simple Rust structs.")
(sha256
(base32
"1jsl4r0yc3fpkyjbi8aa1jrm69apqq9rxwnjnd9brqmaq44nxiz7"))))
- (build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-anes" ,rust-anes-0.1)
@@ -16217,13 +16272,7 @@ http://reveng.sourceforge.net/crc-catalogue) expressed
as simple Rust structs.")
("rust-futures" ,rust-futures-0.3)
("rust-quickcheck" ,rust-quickcheck-1)
("rust-rand" ,rust-rand-0.8)
- ("rust-tempfile" ,rust-tempfile-3))))
- (home-page "https://bheisler.github.io/criterion.rs/book/index.html")
- (synopsis "Statistics-driven micro-benchmarking library")
- (description
- "This package provides a statistics-driven micro-benchmarking library.")
- ;; The user can choose either license.
- (license (list license:asl2.0 license:expat))))
+ ("rust-tempfile" ,rust-tempfile-3))))))
(define-public rust-criterion-0.3
(package
- 162/194: gnu: rust-assert-cmd-2: Update to 2.0.12., (continued)
- 162/194: gnu: rust-assert-cmd-2: Update to 2.0.12., guix-commits, 2023/10/03
- 156/194: gnu: Add rust-debug-unreachable-0.1., guix-commits, 2023/10/03
- 157/194: gnu: Add rust-core-extensions-0.1., guix-commits, 2023/10/03
- 163/194: gnu: Add rust-itertools-0.11., guix-commits, 2023/10/03
- 192/194: gnu: python-orjson: Update to 3.9.7., guix-commits, 2023/10/03
- 187/194: gnu: b3sum: Update to 1.5.0., guix-commits, 2023/10/03
- 172/194: gnu: wlgreet: Update to 0.4.1., guix-commits, 2023/10/03
- 175/194: gnu: du-dust: Install manpage, shell completions., guix-commits, 2023/10/03
- 171/194: gnu: Add rust-greetd-ipc-0.9., guix-commits, 2023/10/03
- 189/194: gnu: rust-oorandom-11: Rename from rust-oorandom-11.1., guix-commits, 2023/10/03
- 180/194: gnu: Add rust-criterion-0.5.,
guix-commits <=
- 183/194: gnu: rust-serde-json-1: Update to 1.0.107., guix-commits, 2023/10/03
- 193/194: gnu: python-pyopenssl: Update to 23.2.0., guix-commits, 2023/10/03
- 177/194: gnu: rust-minisign: Update to 0.7.5., guix-commits, 2023/10/03
- 191/194: gnu: rust-smallvec-1: Update to 1.11.1., guix-commits, 2023/10/03
- 190/194: gnu: rust-pyo3: Update to 0.19.2., guix-commits, 2023/10/03
- 170/194: gnu: Add rust-resize-0.4., guix-commits, 2023/10/03
- 176/194: gnu: rust-getrandom-0.2: Update to 0.2.10., guix-commits, 2023/10/03
- 169/194: gnu: Add rust-termtree-0.4., guix-commits, 2023/10/03
- 186/194: gnu: rust-blake3-1: Update to 1.5.0., guix-commits, 2023/10/03