aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/crates-crypto.scm
diff options
context:
space:
mode:
authorHerman Rimm <herman@rimm.ee>2024-02-18 22:09:07 +0100
committerEfraim Flashner <efraim@flashner.co.il>2024-07-19 00:43:46 +0300
commit22786788d342249fecb403272212e8bb158951c6 (patch)
tree9ffda065317d318836796470baf724d50e97b15c /gnu/packages/crates-crypto.scm
parent410b4e461976b512210897d09f9e86637058f207 (diff)
downloadguix-22786788d342249fecb403272212e8bb158951c6.tar.gz
guix-22786788d342249fecb403272212e8bb158951c6.zip
gnu: Add rust-tls-codec-0.4.
* gnu/packages/crates-crypto.scm (rust-tls-codec-0.4): Add variable. Change-Id: I672e82a8af7eb805e49c159ae61f078cf6931d9b Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/crates-crypto.scm')
-rw-r--r--gnu/packages/crates-crypto.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index ab3fd94eff..9660b8430f 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -6150,6 +6150,42 @@ cryptographic implementations.")
"This package provides the Tiger cryptographic hash function.")
(license (list license:expat license:asl2.0))))
+(define-public rust-tls-codec-0.4
+ (package
+ (name "rust-tls-codec")
+ (version "0.4.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "tls_codec" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0spv5d8gjpmil4x14d8jk6wps59r4y7kdj77par8b30g6ff8rrxm"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin (substitute* "Cargo.toml"
+ (("\"= ?([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
+ (string-append "\"^" version)))))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-arbitrary" ,rust-arbitrary-1)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-tls-codec-derive" ,rust-tls-codec-derive-0.4)
+ ("rust-zeroize" ,rust-zeroize-1))
+ #:cargo-development-inputs
+ (("rust-anstyle" ,rust-anstyle-1)
+ ("rust-anstyle-parse" ,rust-anstyle-parse-0.2)
+ ("rust-clap" ,rust-clap-4)
+ ("rust-clap-lex" ,rust-clap-lex-0.5)
+ ("rust-criterion" ,rust-criterion-0.5)
+ ("rust-regex" ,rust-regex-1))))
+ (home-page "https://github.com/RustCrypto/formats/tree/master/tls_codec")
+ (synopsis "Rust implementation of TLS (de)serialization")
+ (description
+ "This package provides a Rust implementation of TLS serialization
+and deserialization.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-tls-codec-derive-0.4
(package
(name "rust-tls-codec-derive")