From 6962f9350b65be4a1bfe52d8c96985d82a238670 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 22 Feb 2023 12:17:27 +0200 Subject: [PATCH] gnu: Add rust-litrs-0.2. * gnu/packages/crates-io.scm (rust-litrs-0.2): New variable. --- gnu/packages/crates-io.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 6b446889e4..b1d71334d4 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -32218,6 +32218,27 @@ (define-public rust-libtest-mimic-0.3 ("rust-structopt" ,rust-structopt-0.3) ("rust-termcolor" ,rust-termcolor-1)))))) +(define-public rust-litrs-0.2 + (package + (name "rust-litrs") + (version "0.2.3") + (source (origin + (method url-fetch) + (uri (crate-uri "litrs" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1akrxglqv6dz41jrjr409pjjysd00z5w0949007v52yg6c4mw9zr")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)))) + (home-page "https://github.com/LukasKalbertodt/litrs/") + (synopsis "Parse and inspect Rust literals") + (description + "Parse and inspect Rust literals (i.e. tokens in the Rust programming +language representing fixed values). Particularly useful for proc macros, but +can also be used outside of a proc-macro context.") + (license (list license:expat license:asl2.0)))) + (define-public rust-locale-0.2 (package (name "rust-locale")