Subject: [PATCH 07/21] gnu: Add rust-postgres-protocol-0.6

From: Domagoj Stolfa <[email-masked]>
Date: Sun, 4 Jul 2021 17:31:49 +0100

* gnu/packages/crates-io.scm (rust-postgres-protocol-0.6): New public variable.
---
 gnu/packages/crates-io.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 359b48542d..e998ad334f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -32581,6 +32581,39 @@ UDP.")
      "This package provides low level Postgres protocol APIs.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-postgres-protocol-0.6
+  (package
+    (name "rust-postgres-protocol")
+    (version "0.6.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "postgres-protocol" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "1wxzs78zvz00bh3bhbbp9hnq9hg77f8h5pzjmcy9481fsdq0ygpz"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:cargo-inputs
+        (("rust-base64" ,rust-base64-0.13)
+         ("rust-byteorder" ,rust-byteorder-1)
+         ("rust-bytes" ,rust-bytes-1)
+         ("rust-fallible-iterator"
+          ,rust-fallible-iterator-0.2)
+         ("rust-hmac" ,rust-hmac-0.10)
+         ("rust-md-5" ,rust-md-5-0.9)
+         ("rust-memchr" ,rust-memchr-2)
+         ("rust-rand" ,rust-rand-0.8)
+         ("rust-sha2" ,rust-sha2-0.9)
+         ("rust-stringprep" ,rust-stringprep-0.1))))
+    (home-page
+      "https://github.com/sfackler/rust-postgres")
+    (synopsis "Low level Postgres protocol APIs")
+    (description "Low level Postgres protocol APIs")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-postgres-shared-0.4
   (package
     (name "rust-postgres-shared")
-- 
2.32.0