[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] WIP patches for the rust importer
From: |
Efraim Flashner |
Subject: |
[PATCH] WIP patches for the rust importer |
Date: |
Tue, 26 Nov 2019 14:04:08 +0200 |
User-agent: |
Mutt/1.12.2 (2019-09-21) |
Attached are two patches. The first one searches through the listed
dependencies and removes the ones that are marked as optional. This
(potentially) decreases the size of each crate and the number of
dependencies.
Before:
(package
(name "rust-serde")
(version "1.0.103")
(source
(origin
(method url-fetch)
(uri (crate-uri "serde" version))
(file-name
(string-append name "-" version ".tar.gz"))
(sha256
(base32
"00ip3xy09nk6c2b47ky1m5379yjmwk6n3sr2vmblp478p1xgj5qj"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-serde-derive" ,rust-serde-derive))
#:cargo-development-inputs
(("rust-serde-derive" ,rust-serde-derive))))
(home-page "https://serde.rs")
(synopsis
"A generic serialization/deserialization framework")
(description
"This package provides a generic serialization/deserialization framework")
(license (list license:expat license:asl2.0)))
After:
<--snip..>
(arguments
`(#:cargo-development-inputs
(("rust-serde-derive" ,rust-serde-derive))))
<--snip-->
The second patch takes the version information from the dependencies and
adds it to the cargo-inputs and cargo-development-inputs, matching how
we now have the crates packaged:
Before:
(package
(name "rust-serde-derive")
(version "1.0.103")
(source
(origin
(method url-fetch)
(uri (crate-uri "serde-derive" version))
(file-name
(string-append name "-" version ".tar.gz"))
(sha256
(base32
"1l2icqq548dmq5bn278zb2vj725znj4h4ms89w3b0r1fkbpzmim8"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-proc-macro2" ,rust-proc-macro2)
("rust-quote" ,rust-quote)
("rust-syn" ,rust-syn))
#:cargo-development-inputs
(("rust-serde" ,rust-serde))))
(home-page "https://serde.rs")
(synopsis
"Macros 1.1 implementation of #[derive(Serialize, Deserialize)]")
(description
"Macros 1.1 implementation of #[derive(Serialize, Deserialize)]")
(license (list license:expat license:asl2.0)))
After:
<--snip-->
(arguments
`(#:cargo-inputs
(("rust-proc-macro2-1.0" ,rust-proc-macro2-1.0)
("rust-quote-1.0" ,rust-quote-1.0)
("rust-syn-1.0" ,rust-syn-1.0))
#:cargo-development-inputs
(("rust-serde-1.0" ,rust-serde-1.0))))
<--snip-->
Unfortunately, this also breaks the recursive crate importer. I'm going
to continue working on it, but I could use some help getting the
recursive aspect of it working.
--
Efraim Flashner <address@hidden> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
0001-import-crate-Don-t-include-optional-dependencies.patch
Description: Text document
0003-import-crate-Honor-versioned-dependencies-when-impor.patch
Description: Text document
signature.asc
Description: PGP signature
- [PATCH] WIP patches for the rust importer,
Efraim Flashner <=