Subject: [PATCH 002/156] gnu: Add rust-asn1-rs-0.3.

From: Wilko Meyer <[email-masked]>
Date: Mon, 8 Jan 2024 02:51:39 +0100

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

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f659f8ef1e1..fe40c027c97 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -3407,6 +3407,32 @@ (define-public rust-asn1-rs-0.5
     (description "Parser/encoder for ASN.1 BER/DER data")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-asn1-rs-0.3
+  (package
+    (inherit rust-asn1-rs-0.5)
+    (name "rust-asn1-rs")
+    (version "0.3.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "asn1-rs" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0czsk1nd4dx2k83f7jzkn8klx05wbmblkx1jh51i4c170akhbzrh"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-asn1-rs-derive" ,rust-asn1-rs-derive-0.1)
+                       ("rust-asn1-rs-impl" ,rust-asn1-rs-impl-0.1)
+                       ("rust-bitvec" ,rust-bitvec-1)
+                       ("rust-cookie-factory" ,rust-cookie-factory-0.3)
+                       ("rust-displaydoc" ,rust-displaydoc-0.2)
+                       ("rust-nom" ,rust-nom-7)
+                       ("rust-num-bigint" ,rust-num-bigint-0.4)
+                       ("rust-num-traits" ,rust-num-traits-0.2)
+                       ("rust-rusticata-macros" ,rust-rusticata-macros-4)
+                       ("rust-thiserror" ,rust-thiserror-1)
+                       ("rust-time" ,rust-time-0.3))))))
+
 (define-public rust-asn1-rs-derive-0.4
   (package
     (name "rust-asn1-rs-derive")
-- 
2.41.0