From eb98d5a83ce98ece279fec51085521aafd976ec4 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 2 Sep 2019 15:51:26 +0300 Subject: 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 9aa995ef94..6f2a002a2f 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -681,6 +681,37 @@ (define-public rust-heapsize-0.3 `(#: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 @@ (define-public rust-kernel32-sys 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") -- cgit v1.2.3