[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#68328] [PATCH 2/2] gnu: Add rust-annotate-snippets-0.9.
From: |
Troy Figiel |
Subject: |
[bug#68328] [PATCH 2/2] gnu: Add rust-annotate-snippets-0.9. |
Date: |
Mon, 8 Jan 2024 17:52:56 +0100 |
* gnu/packages/crates-io.scm (rust-annotate-snippets-0.9): New variable.
---
gnu/packages/crates-io.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9d52921a1c..3fba9c3d31 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -3553,6 +3553,39 @@ (define-public rust-anes-0.1
;; The user can choose either license.
(license (list license:expat license:asl2.0))))
+(define-public rust-annotate-snippets-0.9
+ (package
+ (name "rust-annotate-snippets")
+ (version "0.9.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "annotate-snippets" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "07p8r6jzb7nqydq0kr5pllckqcdxlyld2g275v425axnzffpxbyc"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-unicode-width" ,rust-unicode-width-0.1)
+ ("rust-yansi-term" ,rust-yansi-term-0.1))
+ #:cargo-development-inputs
+ (("rust-criterion" ,rust-criterion-0.3)
+ ("rust-difference" ,rust-difference-2)
+ ("rust-glob" ,rust-glob-0.3)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-toml" ,rust-toml-0.5)
+ ("rust-yansi-term" ,rust-yansi-term-0.1))))
+ (home-page "https://github.com/rust-lang/annotate-snippets-rs")
+ (synopsis "Annotation of Rust code snippets")
+ (description
+ "The library helps visualize meta information annotating source code
+slices. It takes a data structure called @code{Snippet} on the input and
+produces a @code{String} builing an @acronym{ASCII, American Standard Code for
+Information Interchange} representation of the code snippet with
+annotations.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-ansi-parser-0.8
(package
(name "rust-ansi-parser")
--
2.42.0