Subject: [PATCH 017/228] gnu: Add rust-branches-0.1.

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

* gnu/packages/crates-io.scm (rust-branches-0.1): Add variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9e0d53ae5f..70bba96064 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -7866,6 +7866,26 @@ (define-public rust-boxxy-0.12
         ("rust-rustls" ,rust-rustls-0.16)
         ("rust-sha2" ,rust-sha2-0.9))))))
 
+(define-public rust-branches-0.1
+  (package
+    (name "rust-branches")
+    (version "0.1.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "branches" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0alxmzmms4s8vv1v94y2kdq49a4p7728fgkpxx36z2m092bznn3r"))))
+    (build-system cargo-build-system)
+    (home-page "https://github.com/fereidani/branches")
+    (synopsis
+     "Branch hinting prediction and control functions for stable Rust including likely, unlikely, assume and abort to help algorithm optimization")
+    (description
+     "Branch hinting prediction and control functions for stable Rust including
+likely, unlikely, assume and abort to help algorithm optimization")
+    (license license:expat)))
+
 (define-public rust-bresenham-0.1
   (package
     (name "rust-bresenham")
-- 
2.41.0