all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Graves via Guix-patches via <guix-patches@gnu.org>
To: 57040@debbugs.gnu.org
Subject: [bug#57040] [Nicolas Graves] [PATCH 7/9 v2] gnu: rust-syn-1: Update to 1.0.96.
Date: Sun, 07 Aug 2022 21:39:57 +0200	[thread overview]
Message-ID: <878rnzu9ki.fsf@ngraves.fr> (raw)
In-Reply-To: <87iln415gm.fsf@ngraves.fr>


* gnu/packages/crates-io.scm (rust-syn-1): Update to 1.0.96.
---
 gnu/packages/crates-io.scm | 44 ++++++++++++++++++++++++++++++++------
 1 file changed, 37 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 99c70d3ca0..11a317ab71 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -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
--
2.37.1

--
Best regards,
Nicolas Graves




  parent reply	other threads:[~2022-08-07 19:41 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-07 10:10 [bug#57030] [PATCH] gnu: rust-tracing-futures-0.2: Fix build phase Nicolas Graves via Guix-patches via
2022-08-07 10:16 ` Maxime Devos
2022-08-07 13:56   ` Nicolas Graves via Guix-patches via
2022-08-07 13:45 ` [bug#57030] [PATCH] gnu: rust-tracing-futures-0.2: Fix build when used as an input Nicolas Graves via Guix-patches via
2022-08-07 13:49 ` [bug#57030] [PATCH] gnu: rust-tracing-futures-0.2: Fix build phase Nicolas Graves via Guix-patches via
2022-08-07 19:38 ` [bug#57030] [PATCH 7/9 v2] gnu: rust-syn-1: Update to 1.0.96 Nicolas Graves via Guix-patches via
2022-08-07 14:41   ` [bug#57040] [PATCH] gnu: Update rust-tracing-attributes Nicolas Graves via Guix-patches via
2022-08-07 14:44     ` [bug#57040] [PATCH 1/9] gnu: rust-bytemuck-1: Update to 1.11.0 Nicolas Graves via Guix-patches via
2022-08-07 14:44     ` [bug#57040] [PATCH 2/9] gnu: rust-retain-mut-0.1: Update to 0.1.9 Nicolas Graves via Guix-patches via
2022-08-07 14:45     ` [bug#57040] [PATCH 3/9] gnu: Add rust-roaring-0.9 Nicolas Graves via Guix-patches via
2022-08-07 14:45     ` [bug#57040] [PATCH 4/9] gnu: Add rust-unicode-ident-1 Nicolas Graves via Guix-patches via
2022-08-07 14:46     ` [bug#57040] [PATCH 5/9] gnu: rust-proc-macro2-1: Update to 1.0.43 Nicolas Graves via Guix-patches via
2022-08-07 14:47     ` [bug#57040] [PATCH 6/9] gnu: Remove rust-syn-test-suite-0 Nicolas Graves via Guix-patches via
2022-08-07 14:47     ` [bug#57040] [PATCH 7/9] gnu: rust-syn-1: Update to 1.0.99 Nicolas Graves via Guix-patches via
2022-08-07 14:48     ` [bug#57040] [PATCH 8/9] gnu: rust-async-trait-0.1: Update to 0.1.57 Nicolas Graves via Guix-patches via
2022-08-07 14:48     ` [bug#57040] [PATCH 9/9] gnu: rust-tracing-attributes-0.1: Update to 0.1.20 Nicolas Graves via Guix-patches via
2022-08-07 15:53       ` Nicolas Graves via Guix-patches via
     [not found]       ` <875yh61glq.fsf@ngraves.fr>
2022-09-29 13:02         ` bug#57040: " Nicolas Graves via Guix-patches via
2022-08-07 19:39     ` Nicolas Graves via Guix-patches via [this message]
2022-09-29 13:17 ` bug#57030: [Nicolas Graves] " Nicolas Graves via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878rnzu9ki.fsf@ngraves.fr \
    --to=guix-patches@gnu.org \
    --cc=57040@debbugs.gnu.org \
    --cc=ngraves@ngraves.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.