From 42046dde64c68b20d81785ee0b12928ab3dfaf84 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sat, 16 Mar 2024 21:59:55 +0200 Subject: [PATCH] gnu: Add rust-typewit-1. * gnu/packages/crates-io.scm (rust-typewit-1): New variable. Change-Id: I987876d0b2729888bf01ebf68fbf4837ebd12ad9 --- gnu/packages/crates-io.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 41af3ea02b..7d0791d8a6 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -77424,6 +77424,28 @@ implementation is incomplete.") (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") + (description "This package provides type-witness-based abstractions, mostly +for emulating polymorphism in const fns.") + (license license:zlib))) + (define-public rust-typewit-proc-macros-1 (package (name "rust-typewit-proc-macros")