Subject: [PATCH 158/228] gnu: Add rust-platforms-3.

From: Herman Rimm <[email-masked]>
Date: Sun, 18 Feb 2024 22:08:48 +0100

* gnu/packages/crates-io.scm (rust-platforms-3): Add variable.

Change-Id: I2a3e388381d88b1ac1554d62338dac0255dd2381
---
 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 2313a8553a..53a788fd0a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -49176,6 +49176,28 @@ (define-public rust-platform-info-2
 a system.")
     (license license:expat)))
 
+(define-public rust-platforms-3
+  (package
+    (name "rust-platforms")
+    (version "3.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "platforms" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0k7q6pigmnvgpfasvssb12m2pv3pc94zrhrfg9by3h3wmhyfqvb2"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-serde" ,rust-serde-1))))
+    (home-page "https://rustsec.org")
+    (synopsis "Registry of valid Rust platforms from the Rust compiler")
+    (description
+     "This package provides a Rust platform registry with information
+about valid Rust platforms (target triple, target_arch, target_os),
+sourced from the Rust compiler.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-pledge-0.4
   (package
     (name "rust-pledge")
-- 
2.41.0