aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/crates-io.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2041e0e3cb..a68ddcd2ff 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -14400,6 +14400,42 @@ for the serde framework.")
"This package provides a JSON serialization file format.")
(license (list license:expat license:asl2.0))))
+(define-public rust-serde-macros-0.4
+ (package
+ (name "rust-serde-macros")
+ (version "0.4.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "serde_macros" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1717rpncvvyvyrpb7hdjgxpiki9vdgygwv2r3d9aal5n8cm8xi8i"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-cargo-toml
+ (lambda _
+ (substitute* "Cargo.toml"
+ ((", path =.*}") "}"))
+ #t)))
+ #:cargo-inputs
+ (("rust-serde-codegen" ,rust-serde-codegen-0.4))
+ #:cargo-development-inputs
+ (("rust-num" ,rust-num-0.2)
+ ("rust-rustc-serialize" ,rust-rustc-serialize-0.3)
+ ("rust-serde" ,rust-serde-0.4))))
+ (home-page "https://serde.rs")
+ (synopsis
+ "Macros to auto-generate implementations for the serde framework")
+ (description
+ "Macros to auto-generate implementations for the serde framework.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-serde-test-1.0
(package
(name "rust-serde-test")