diff mbox series

[bug#69890,33/43] gnu: Add rust-inlinable-string-0.1.

Message ID bb38b4b75d3f3d80424040b33969d77bd5c5bf38.1710817681.git.normally_js@posteo.net
State New
Headers show
Series gnu: Add procs. | expand

Commit Message

normally_js March 19, 2024, 3:51 a.m. UTC
* gnu/packages/crates-io.scm (rust-inlinable-string-0.1): New variable.

Change-Id: I5958abb88527c1fc5e9fcc8dabed14420688e2f7
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index dc1b407431..da9cc94f50 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -30542,6 +30542,33 @@  (define-public rust-inflector-0.11
 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 "Provides the @code{InlinableString} type")
+    (description
+     "The @code{inlinable_string} crate provides the @code{InlinableString}
+type.  It is an owned, grow-able UTF-8 string that stores small strings inline
+and avoids heap-allocation.  It also provides 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")