@@ -60699,21 +60699,51 @@ (define-public rust-swc-1
(define-public rust-syn-1
(package
(name "rust-syn")
- (version "1.0.82")
+ (version "1.0.96")
(source
(origin
- (method url-fetch)
- (uri (crate-uri "syn" version))
- (file-name (string-append name "-" version ".tar.gz"))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dtolnay/syn")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0ncx7gg5mvd16q5xf77hgk09nwmfq0ppsn0vgc9x9jv0pg85vbwd"))))
+ (base32
+ "1b2my32bcw01w556hc4xckafx1x85lz81shrcmmjqlml07hakwi9"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ (delete-file-recursively "dev")
+ (delete-file-recursively "examples")
+ (delete-file-recursively "json")
+ (delete-file-recursively "codegen")
+ (delete-file-recursively "tests/crates")
+ (substitute* "Cargo.toml"
+ ((".*examples.*") "")
+ (("\"json\",") "")
+ (("\"dev\",") "")
+ (("\"tests/crates\",") ""))))))
(build-system cargo-build-system)
(arguments
- `(#:skip-build? #t
+ `(#:cargo-test-flags
+ '( "--release""--all-features")
+ #: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))
#:cargo-inputs
(("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-quote" ,rust-quote-1)
- ("rust-unicode-xid" ,rust-unicode-xid-0.2))))
+ ("rust-unicode-ident" ,rust-unicode-ident-1))))
+ (native-inputs (list pkg-config openssl))
(home-page "https://github.com/dtolnay/syn")
(synopsis "Parser for Rust source code")
(description