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.
parent
e5815422a8
commit
289ec877cd
|
@ -16196,8 +16196,64 @@ Rust.")
|
||||||
http://reveng.sourceforge.net/crc-catalogue) expressed as simple Rust structs.")
|
http://reveng.sourceforge.net/crc-catalogue) expressed as simple Rust structs.")
|
||||||
(license (list license:expat license:asl2.0))))
|
(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
|
(define-public rust-criterion-0.4
|
||||||
(package
|
(package
|
||||||
|
(inherit rust-criterion-0.5)
|
||||||
(name "rust-criterion")
|
(name "rust-criterion")
|
||||||
(version "0.4.0")
|
(version "0.4.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
|
@ -16207,7 +16263,6 @@ http://reveng.sourceforge.net/crc-catalogue) expressed as simple Rust structs.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1jsl4r0yc3fpkyjbi8aa1jrm69apqq9rxwnjnd9brqmaq44nxiz7"))))
|
"1jsl4r0yc3fpkyjbi8aa1jrm69apqq9rxwnjnd9brqmaq44nxiz7"))))
|
||||||
(build-system cargo-build-system)
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:cargo-inputs
|
`(#:cargo-inputs
|
||||||
(("rust-anes" ,rust-anes-0.1)
|
(("rust-anes" ,rust-anes-0.1)
|
||||||
|
@ -16238,13 +16293,7 @@ http://reveng.sourceforge.net/crc-catalogue) expressed as simple Rust structs.")
|
||||||
("rust-futures" ,rust-futures-0.3)
|
("rust-futures" ,rust-futures-0.3)
|
||||||
("rust-quickcheck" ,rust-quickcheck-1)
|
("rust-quickcheck" ,rust-quickcheck-1)
|
||||||
("rust-rand" ,rust-rand-0.8)
|
("rust-rand" ,rust-rand-0.8)
|
||||||
("rust-tempfile" ,rust-tempfile-3))))
|
("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.3
|
(define-public rust-criterion-0.3
|
||||||
(package
|
(package
|
||||||
|
|
Reference in New Issue