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

* gnu/packages/crates-io.scm (rust-heapsize-plugin, rust-language-tags):
New variables.
This commit is contained in:
Efraim Flashner 2019-09-02 15:51:26 +03:00
parent 7439498366
commit eb98d5a83c
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -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")