guix-commits
[Top][All Lists]
Advanced

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

05/05: gnu: Add rust-heapsize-plugin, rust-language-tags.


From: guix-commits
Subject: 05/05: gnu: Add rust-heapsize-plugin, rust-language-tags.
Date: Mon, 2 Sep 2019 08:55:18 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit eb98d5a83ce98ece279fec51085521aafd976ec4
Author: Efraim Flashner <address@hidden>
Date:   Mon Sep 2 15:51:26 2019 +0300

    gnu: Add rust-heapsize-plugin, rust-language-tags.
    
    * gnu/packages/crates-io.scm (rust-heapsize-plugin, rust-language-tags):
    New variables.
---
 gnu/packages/crates-io.scm | 59 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9aa995e..6f2a002 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -681,6 +681,37 @@ heap.")
      `(#:cargo-inputs (("rust-kernel32-sys" ,rust-kernel32-sys))
        #:tests? #f)))) ;; No flexible-tests feature flags on this release.
 
+;; This package makes use of removed features
+(define-public rust-heapsize-plugin
+  (package
+    (name "rust-heapsize-plugin")
+    (version "0.1.6")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "heapsize_plugin" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+         (base32
+          "1i72isf699q9jl167g2kg4xd6h3cd05rc79zaph58aqjy0g0m9y9"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-development-inputs (("rust-heapsize" ,rust-heapsize-0.3))
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-Cargo-toml
+           (lambda _
+             (substitute* "Cargo.toml"
+               (("path = \"..\", ") ""))
+             #t)))))
+    (home-page "https://github.com/servo/heapsize";)
+    (synopsis "Measure runtime size of an object on the heap")
+    (description
+     "This package automatically generates infrastructure for measuring the
+total runtime size of an object on the heap")
+    (properties `((hidden? . #t)))
+    (license license:mpl2.0)))
+
 (define-public rust-hex
   (package
     (name "rust-hex")
@@ -818,6 +849,34 @@ friction with idiomatic Rust structs to ease 
interopability.")
 kernel32.")
     (license license:expat)))
 
+(define-public rust-language-tags
+  (package
+    (name "rust-language-tags")
+    (version "0.2.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "language-tags" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+         (base32
+          "16hrjdpa827carq5x4b8zhas24d8kg4s16m6nmmn1kb7cr5qh7d9"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-heapsize" ,rust-heapsize-0.3))
+       #:cargo-development-inputs
+       (("rust-heapsize-plugin" ,rust-heapsize-plugin))))
+    (home-page "https://github.com/pyfisch/rust-language-tags";)
+    (synopsis "Language tags for Rust")
+    (description
+     "Language tags can be used identify human languages, scripts e.g. Latin
+script, countries and other regions.  They are commonly used in HTML and HTTP
+@code{Content-Language} and @code{Accept-Language} header fields.  This package
+currently supports parsing (fully conformant parser), formatting and comparing
+language tags.")
+    (license license:expat)))
+
 (define-public rust-lazy-static
   (package
     (name "rust-lazy-static")



reply via email to

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