Subject: [PATCH 051/228] gnu: Add rust-pnet-base-0.34.

From: Herman Rimm <[email-masked]>
Date: Sun, 18 Feb 2024 22:02:49 +0100

* gnu/packages/crates-io.scm (rust-pnet-base-0.34): Add variable.
(rust-pnet-base-0.27): Inherit rust-pnet-base-0.34.

Change-Id: I00cfe081f4414616c7524af5093ebd639c8cd37f
---
 gnu/packages/crates-io.scm | 26 ++++++++++++++++++++------
 1 file changed, 20 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 212829d65e..4a602c5809 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -48370,29 +48370,43 @@ (define-public rust-pmutil-0.5
     (description "This package provides utils for proc-macro.")
     (license (list license:asl2.0 license:expat))))
 
-(define-public rust-pnet-base-0.27
+(define-public rust-pnet-base-0.34
   (package
     (name "rust-pnet-base")
-    (version "0.27.2")
+    (version "0.34.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "pnet_base" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1v8bcbv9jh581ill77qjzzw2ay76pl781982yclj3xky96m8hijf"))))
+        (base32 "0k2z3jh6vw99bwl0ckpsd142n4yiscza1bmj3b86i2xk7bxzck7y"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs
-       (("rust-serde" ,rust-serde-1))
+     `(#:cargo-inputs (("rust-no-std-net" ,rust-no-std-net-0.6)
+                       ("rust-serde" ,rust-serde-1))
        #:cargo-development-inputs
        (("rust-serde-test" ,rust-serde-test-1))))
     (home-page "https://github.com/libpnet/libpnet")
-    (synopsis "Fundamental base types and code used by pnet")
+    (synopsis "Fundamental base types and code used by pnet.")
     (description
      "This crate implements fundamental base types and code used by pnet.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-pnet-base-0.27
+  (package
+    ;; Does not depend on rust-no-std-net-0.6.
+    (inherit rust-pnet-base-0.34)
+    (name "rust-pnet-base")
+    (version "0.27.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pnet_base" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1v8bcbv9jh581ill77qjzzw2ay76pl781982yclj3xky96m8hijf"))))))
+
 (define-public rust-pnet-datalink-0.27
   (package
     (name "rust-pnet-datalink")
-- 
2.41.0