From: Troy Figiel <troy@troyfigiel.com>
To: 68328@debbugs.gnu.org
Subject: [bug#68328] [PATCH 2/2] gnu: Add rust-annotate-snippets-0.9.
Date: Mon, 8 Jan 2024 17:52:56 +0100 [thread overview]
Message-ID: <878r4ziwpu.fsf@troyfigiel.com> (raw)
In-Reply-To: <87bk9viwz9.fsf@troyfigiel.com>
* 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
next prev parent reply other threads:[~2024-01-08 17:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-08 16:54 [bug#68328] [PATCH 0/2] Add rust-annotate-snippets-0.9 and rust-yansi-term-0.1 Troy Figiel
2024-01-08 13:46 ` [bug#68328] [PATCH 1/2] gnu: Add rust-yansi-term-0.1 Troy Figiel
2024-01-08 16:52 ` Troy Figiel [this message]
2024-01-19 9:38 ` bug#68328: [PATCH 0/2] Add rust-annotate-snippets-0.9 and rust-yansi-term-0.1 Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878r4ziwpu.fsf@troyfigiel.com \
--to=troy@troyfigiel.com \
--cc=68328@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).