[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
340/475: gnu: Add rust-syn-2.
From: |
guix-commits |
Subject: |
340/475: gnu: Add rust-syn-2. |
Date: |
Sun, 7 May 2023 12:48:02 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 497dc88b56f2754cc3932b31ebf037d6bdc081fb
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Mar 22 21:34:23 2023 +0100
gnu: Add rust-syn-2.
* gnu/packages/crates-io.scm (rust-syn-2): New variable.
---
gnu/packages/crates-io.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4916876399..e796f47bf4 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -60061,6 +60061,51 @@ executed by swayipc.")
interface")
(license license:expat)))
+(define-public rust-syn-2
+ (package
+ (name "rust-syn")
+ (version "2.0.5")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "syn" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "12iqdd7j7hfsp4584bph1318n47z7x79ddgvl63j30i6db3x3hl9"))))
+ (build-system cargo-build-system)
+ (arguments
+ ;; Tests fail to compile
+ ;; error[E0432]: unresolved imports `syn::Item`, `syn::Pat`
+ `(#:tests? #false
+ #: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\"\\]") "")))))
+ #:cargo-inputs
+ (("rust-proc-macro2" ,rust-proc-macro2-1)
+ ("rust-quote" ,rust-quote-1)
+ ("rust-unicode-ident" ,rust-unicode-ident-1))
+ #:cargo-development-inputs
+ (("rust-anyhow" ,rust-anyhow-1)
+ ("rust-automod" ,rust-automod-1)
+ ("rust-insta" ,rust-insta-1)
+ ("rust-ref-cast" ,rust-ref-cast-1)
+ ("rust-reqwest" ,rust-reqwest-0.11)
+ ("rust-tar" ,rust-tar-0.4))))
+ (inputs (list openssl))
+ (native-inputs (list pkg-config))
+ (home-page "https://github.com/dtolnay/syn")
+ (synopsis "Parser for Rust source code")
+ (description
+ "Syn is a parsing library for parsing a stream of Rust tokens into
+a syntax tree of Rust source code.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-syn-1
(package
(name "rust-syn")
- 457/475: gnu: rust-webpki-roots-0.22: Add missing input., (continued)
- 457/475: gnu: rust-webpki-roots-0.22: Add missing input., guix-commits, 2023/05/07
- 446/475: gnu: Add rust-tiny-skia-path-0.8., guix-commits, 2023/05/07
- 464/475: gnu: rust-sct-0.5: Fix build., guix-commits, 2023/05/07
- 462/475: gnu: rust-tokio-rustls-0.23: Add missing input., guix-commits, 2023/05/07
- 458/475: gnu: rust-criterion-0.3: Update to 0.3.6., guix-commits, 2023/05/07
- 455/475: gnu: rust-selectors-0.21: Fix cargo inputs., guix-commits, 2023/05/07
- 472/475: gnu: librsvg-for-system: Choose librsvg based on package support., guix-commits, 2023/05/07
- 453/475: gnu: rust-rustls-0.17: Skip the tests., guix-commits, 2023/05/07
- 471/475: gnu: rust: Re-enable aarch64-linux support., guix-commits, 2023/05/07
- 468/475: gnu: rust-hashbrown-0.8: Update to 0.8.2., guix-commits, 2023/05/07
- 340/475: gnu: Add rust-syn-2.,
guix-commits <=
- 378/475: gnu: Add rust-objc-sys-0.3., guix-commits, 2023/05/07
- 405/475: gnu: rust-alacritty-config-derive-0.1: Update to 0.2.1., guix-commits, 2023/05/07
- 403/475: gnu: Add rust-x11rb-0.10., guix-commits, 2023/05/07
- 366/475: gnu: Add rust-nom-derive-impl-0.10., guix-commits, 2023/05/07
- 344/475: gnu: rust-syn-1: Update to 1.0.109., guix-commits, 2023/05/07
- 402/475: gnu: Add rust-x11-clipboard-0.7., guix-commits, 2023/05/07
- 387/475: gnu: rust-wayland-egl-0.29: Update to 0.29.5., guix-commits, 2023/05/07
- 351/475: gnu: Add rust-windows-0.46., guix-commits, 2023/05/07
- 409/475: gnu: rust-servo-fontconfig-sys-5: Don't skip build., guix-commits, 2023/05/07
- 347/475: gnu: Add rust-test-strategy-0.2., guix-commits, 2023/05/07