diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-02-10 21:55:55 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-02-13 11:50:47 +0100 |
commit | 301533886de3b9c8fee5f21df47d0e565e48e814 (patch) | |
tree | b3c733996a6b01141ed5dbb27d4dee52f3476e19 | |
parent | 5b12ff952e817f27f90a737692218dbf058b149e (diff) | |
download | guix-patches-301533886de3b9c8fee5f21df47d0e565e48e814.tar guix-patches-301533886de3b9c8fee5f21df47d0e565e48e814.tar.gz |
gnu: Add rust-arbitrary-0.4.
* gnu/packages/crates-io.scm (rust-arbitrary-0.4): New variable.
(rust-arbitrary-0.2): Inherit from above.
-rw-r--r-- | gnu/packages/crates-io.scm | 38 |
1 files changed, 31 insertions, 7 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index fb98650888..9acd7006d5 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -1903,8 +1903,38 @@ on every platform.") "153awzwywmb61xg857b80l63b1x6hifx2pha7lxf6fck9qxwraq8")))) (arguments '()))) +(define-public rust-arbitrary-0.4 + (package + (name "rust-arbitrary") + (version "0.4.7") + (source + (origin + (method url-fetch) + (uri (crate-uri "arbitrary" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0sa55cynafwzvlhyhfpm3vmi2fydj3ipdj5yfbaif7l56cixfmfv")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-derive-arbitrary" ,rust-derive-arbitrary-0.4)))) + (home-page "https://github.com/nagisa/rust_arbitrary") + (synopsis "Trait for generating structured data from unstructured data") + (description + "The @code{Arbitrary} crate lets you construct arbitrary instance of +a type. + +This crate is primarily intended to be combined with a fuzzer like +@code{libFuzzer} and @code{cargo-fuzz} or AFL, and to help you turn the raw, +untyped byte buffers that they produce into well-typed, valid, structured +values. This allows you to combine structure-aware test case generation with +coverage-guided, mutation-based fuzzers.") + (license (list license:expat license:asl2.0)))) + (define-public rust-arbitrary-0.2 (package + (inherit rust-arbitrary-0.4) (name "rust-arbitrary") (version "0.2.0") (source @@ -1915,13 +1945,7 @@ on every platform.") (string-append name "-" version ".tar.gz")) (sha256 (base32 - "1i3fhcdyjq4isn22xx2svmpfr5hwyzi0wavbm07fs8i2dv5pdkv4")))) - (build-system cargo-build-system) - (home-page "https://github.com/nagisa/rust_arbitrary/") - (synopsis "Trait for generating structured data from unstructured data") - (description - "The trait for generating structured data from unstructured data.") - (license (list license:expat license:asl2.0)))) + "1i3fhcdyjq4isn22xx2svmpfr5hwyzi0wavbm07fs8i2dv5pdkv4")))))) (define-public rust-arc-swap-1 (package |