guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

311/330: gnu: Add rust-inlinable-string-0.1.


From: guix-commits
Subject: 311/330: gnu: Add rust-inlinable-string-0.1.
Date: Mon, 18 Mar 2024 07:16:47 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit da2ae0aa51f24b223fdac7a9240de1e54dbb3c9a
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Mar 18 12:01:38 2024 +0200

    gnu: Add rust-inlinable-string-0.1.
    
    * gnu/packages/crates-io.scm (rust-inlinable-string-0.1): New variable.
    
    Change-Id: If1869320ee72ecca86f8803e1d75b14ed5789987
---
 gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a67be4616b..9882b713ea 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -31899,6 +31899,31 @@ deordinalize, demodulize, foreign key, and 
pluralize/singularize are supported
 as both traits and pure functions acting on String types.")
     (license license:bsd-2)))
 
+(define-public rust-inlinable-string-0.1
+  (package
+    (name "rust-inlinable-string")
+    (version "0.1.15")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "inlinable_string" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1ysjci8yfvxgf51z0ny2nnwhxrclhmb3vbngin8v4bznhr3ybyn8"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs (("rust-serde-test" ,rust-serde-test-1))))
+    (home-page "https://github.com/fitzgen/inlinable_string";)
+    (synopsis "Crate which provides the `InlinableString` type")
+    (description
+     "The @code{inlinable_string} crate provides the @code{InlinableString} 
type
+-- an owned, grow-able UTF-8 string that stores small strings inline and avoids
+heap-allocation -- and the @code{StringExt} trait which abstracts string
+operations over both @code{std::string::String} and @code{InlinableString} (or
+even your own custom string type).")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-inline-c-0.1
   (package
     (name "rust-inline-c")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]