Subject: [PATCH rust-team 19/46] gnu: Add rust-nftables-0.3.

From: Tomas Volf <[email-masked]>
Date: Thu, 15 Feb 2024 21:26:32 +0100

* gnu/packages/crates-io.scm (rust-nftables-0.3): New variable.

Change-Id: I238e5dc9bb99d03428df3bd9199c10699ec63f28
---
 gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 771e9939a7..91fcaf1c5e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -40076,6 +40076,34 @@ (define-public rust-newtype-derive-0.1
     (license (list license:expat
                    license:asl2.0))))
 
+(define-public rust-nftables-0.3
+  (package
+    (name "rust-nftables")
+    (version "0.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "nftables" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0lmn2qkd5d24ip963ijj864djmqnm0q2mvgansbkv82fqysiplbi"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-serde" ,rust-serde-1)
+                       ("rust-serde-json" ,rust-serde-json-1)
+                       ("rust-serde-path-to-error" ,rust-serde-path-to-error-0.1)
+                       ("rust-strum" ,rust-strum-0.25)
+                       ("rust-strum-macros" ,rust-strum-macros-0.25)
+                       ("rust-thiserror" ,rust-thiserror-1))))
+    (home-page "https://namib.me/")
+    (synopsis
+     "Safe abstraction for nftables JSON API")
+    (description
+     "Safe abstraction for nftables JSON API.  It can be used to create
+nftables rulesets in Rust and parse existing nftables rulesets from JSON.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-nibble-vec-0.1
   (package
     (name "rust-nibble-vec")
-- 
2.41.0