Subject: [PATCH v2 03/44] gnu: Add rust-codemap-0.1.

From: Murilo <[email-masked]>
Date: Fri, 31 May 2024 09:37:53 -0300

* gnu/packages/crates-io.scm (rust-codemap-0.1): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a18f756e62..06cec2cff9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -13605,6 +13605,29 @@ (define-public rust-codegenrs-2
         ("rust-difference" ,rust-difference-2)
         ("rust-normalize-line-endings" ,rust-normalize-line-endings-0.3))))))
 
+(define-public rust-codemap-0.1
+  (package
+    (name "rust-codemap")
+    (version "0.1.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "codemap" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "091azkslwkcijj3lp9ymb084y9a0wm4fkil7m613ja68r2snkrxr"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t))
+    (home-page "https://github.com/kevinmehall/codemap")
+    (synopsis
+     "Data structure for error reporting and suggestions")
+    (description
+     "This package provides a data structure for efficiently storing source code
+position and span information (e.g. in a compiler AST), and mapping it back to
+file/line/column locations for error reporting and suggestions.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-codespan-reporting-0.11
   (package
     (name "rust-codespan-reporting")
-- 
2.41.0