Subject: [bug#69257] [PATCH 131/228] gnu: Add rust-typewit-1.

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

* gnu/packages/crates-io.scm (rust-typewit-1): Add variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6a48cce125..1583a038b5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -76361,6 +76361,30 @@ (define-public rust-typenum-1
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-typewit-1
+  (package
+    (name "rust-typewit")
+    (version "1.9.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "typewit" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "093fgb1q5n48vr4nj3hggbhfi6jzab5048scs6jz1ynalgk9myy6"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-typewit-proc-macros" ,rust-typewit-proc-macros-1))
+       #:cargo-development-inputs (("rust-arrayvec" ,rust-arrayvec-0.7)
+                                   ("rust-trybuild" ,rust-trybuild-1))))
+    (home-page "https://github.com/rodrimati1992/typewit/")
+    (synopsis "Type-witness-based abstractions to emulate polymorphism")
+    (description
+     "This package provides type-witness-based abstractions, mostly for
+emulating polymorphism in @code{const} functions.")
+    (license license:zlib)))
+
 (define-public rust-typewit-proc-macros-1
   (package
     (name "rust-typewit-proc-macros")
-- 
2.41.0