* gnu/packages/rust.scm (rust-rustc-serialize): New variable. --- gnu/packages/rust.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index c85697173..0ddea98f9 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -1240,3 +1240,26 @@ allocations in Rust programs.") display of mixed right-to-left and left-to-right text. It is written in safe Rust, compatible with the current stable release.") (license (list license:expat license:asl2.0)))) + +(define-public rust-rustc-serialize + (package + (name "rust-rustc-serialize") + (version "0.3.22") + (source + (origin + (method url-fetch) + (uri (crate-uri "rustc-serialize" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0ywmsdk4l4q68hkw37743cf8kl7dp71p6317h14v82zji734cx93")))) + (build-system cargo-build-system) + (native-inputs `(("rust-rand" ,rust-rand "src"))) + (home-page "https://github.com/rust-lang/rustc-serialize") + (synopsis "Generic serialization/deserialization support") + (description + "Generic serialization/deserialization support corresponding to the +@code{derive(RustcEncodable, RustcDecodable)} mode in the compiler. It also +includes support for hex, base64, and json encoding and decoding.") + (license (list license:expat license:asl2.0)))) -- 2.11.0