mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: rust-syn-1: Update to 1.0.109.
* gnu/packages/crates-io.scm (rust-syn-1): Update to 1.0.109. [arguments]: Do not skip build; add phase to patch out dependency on syn-test-suite; disable tests. <cargo-development-inputs>: Add rust-anyhow, rust-automod, rust-flate2, rust-insta, rust-rayon, rust-ref-cast, rust-regex, rust-reqwest, rust-tar, rust-termcolor, and rust-walkdir. [inputs]: Add openssl. [native-inputs]: Add pkg-config.
This commit is contained in:
parent
4998ea678a
commit
7d03aaaf0f
1 changed files with 29 additions and 4 deletions
|
@ -60138,7 +60138,7 @@ (define-public rust-syn-2
|
|||
(define-public rust-syn-1
|
||||
(package
|
||||
(name "rust-syn")
|
||||
(version "1.0.105")
|
||||
(version "1.0.109")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
|
@ -60146,14 +60146,39 @@ (define-public rust-syn-1
|
|||
(file-name (string-append name "-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"0279ivl07g0y5fs5bwmglhkdvi99ypcm36yb774f8bbh8lyv9fb0"))))
|
||||
"0ds2if4600bd59wsv7jjgfkayfzy3hnazs394kz6zdkmna8l3dkj"))))
|
||||
(build-system cargo-build-system)
|
||||
(arguments
|
||||
`(#:skip-build? #t
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
;; The syn-test-suite crate is empty.
|
||||
(add-after 'unpack 'patch-test-suite
|
||||
(lambda _
|
||||
(substitute* "Cargo.toml"
|
||||
(("^\\[dev-dependencies.syn-test-suite\\]") "")
|
||||
(("^version = \"0\"") "")
|
||||
(("^test = \\[\"syn-test-suite/all-features\"\\]") "")))))
|
||||
;; Tests fail to compile
|
||||
;; error[E0432]: unresolved imports `syn::Item`, `syn::Pat`
|
||||
#:tests? #false
|
||||
#:cargo-inputs
|
||||
(("rust-proc-macro2" ,rust-proc-macro2-1)
|
||||
("rust-quote" ,rust-quote-1)
|
||||
("rust-unicode-ident" ,rust-unicode-ident-1))))
|
||||
("rust-unicode-ident" ,rust-unicode-ident-1))
|
||||
#:cargo-development-inputs
|
||||
(("rust-anyhow" ,rust-anyhow-1)
|
||||
("rust-automod" ,rust-automod-1)
|
||||
("rust-flate2" ,rust-flate2-1)
|
||||
("rust-insta" ,rust-insta-1)
|
||||
("rust-rayon" ,rust-rayon-1)
|
||||
("rust-ref-cast" ,rust-ref-cast-1)
|
||||
("rust-regex" ,rust-regex-1)
|
||||
("rust-reqwest" ,rust-reqwest-0.11)
|
||||
("rust-tar" ,rust-tar-0.4)
|
||||
("rust-termcolor" ,rust-termcolor-1)
|
||||
("rust-walkdir" ,rust-walkdir-2))))
|
||||
(inputs (list openssl))
|
||||
(native-inputs (list pkg-config))
|
||||
(home-page "https://github.com/dtolnay/syn")
|
||||
(synopsis "Parser for Rust source code")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue