[PATCH rust-team 00/23] Add py-spy.

  • Done
  • quality assurance status badge
Details
2 participants
  • Efraim Flashner
  • Maxim Cournoyer
Owner
unassigned
Submitted by
Maxim Cournoyer
Severity
normal
M
M
Maxim Cournoyer wrote on 10 Dec 15:15 +0100
(address . guix-patches@gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
cover.1733840023.git.maxim.cournoyer@gmail.com
This adds py-spy, a Python profiler that can attach to live processes. It's
written in Rust, hence the packaging churn ;-). There are some simple changes
to the cargo build system too, adding more flexibility w.r.t. to controlling
parallel building/testing.

Maxim Cournoyer (23):
build/cargo: Delete trailing #t in phases.
build/cargo: Honor #:parallel-build? and #:parallel-tests? arguments.
build/cargo: Resolve byte compilation warning.
gnu: Add rust-read-process-memory-0.1.
gnu: Update ust-wasmparser to 0.218.
gnu: rust-ruzstd-0.7: Update to 0.7.3.
gnu: rust-libc-0.2: Update to 0.2.168.
gnu: rust-proc-macro2-1: Update to 1.0.92.
gnu: rust-syn-test-suite-0.0.0: Update to 0.0.0+test.
gnu: rust-syn-2: Update to 2.0.90.
gnu: Add rust-zerocopy-derive-0.8.
gnu: rust-object-0.36: Update to 0.36.5.
gnu: rust-gimli-0.31: Update to 0.31.1.
gnu: Add rust-goblin-0.9.
gnu: Add rust-proc-maps-0.4.
gnu: Add rust-mark-flaky-tests-macro-1.
gnu: Add rust-mark-flaky-tests-1.
gnu: Add rust-remoteprocess-0.5.
gnu: Add rust-lru-0.10.
gnu: rust-rle-decode-fast-1: Update to 1.0.3.
gnu: rust-inferno-0.11: Update to 0.11.21.
gnu: Add rust-py-spy-testdata-0.1.
gnu: Add py-spy.

gnu/local.mk | 1 +
gnu/packages/crates-check.scm | 81 +++++++++++
gnu/packages/crates-io.scm | 223 +++++++++++++++++++++++-------
gnu/packages/rust-apps.scm | 73 +++++++++-
guix/build-system/cargo.scm | 9 ++
guix/build/cargo-build-system.scm | 42 ++++--
6 files changed, 365 insertions(+), 64 deletions(-)
create mode 100644 gnu/packages/crates-check.scm


base-commit: 44b044d5f22c2d7683bd6201aa6620a8ba51061a
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 03/23] build/cargo: Resolve byte compilation warning.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
f18f174e48a30312fe176f2155a5f0b26ae08681.1733840023.git.maxim.cournoyer@gmail.com
* guix/build/cargo-build-system.scm: Hide `delete' symbol from (guix build
utils) import.

Change-Id: I75f0109a1a0984deb9888ec1c2b71cea4de22c76
---
guix/build/cargo-build-system.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/guix/build/cargo-build-system.scm b/guix/build/cargo-build-system.scm
index d125ff20ca..397d86cf8e 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -25,7 +25,7 @@
(define-module (guix build cargo-build-system)
#:use-module ((guix build gnu-build-system) #:prefix gnu:)
#:use-module (guix build json)
- #:use-module (guix build utils)
+ #:use-module ((guix build utils) #:hide (delete))
#:use-module (guix build cargo-utils)
#:use-module (ice-9 popen)
#:use-module (ice-9 rdelim)
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 01/23] build/cargo: Delete trailing #t in phases.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
5b23f5cb76b23feed1002f62e7f20eecc1aeda7c.1733840023.git.maxim.cournoyer@gmail.com
* guix/build/cargo-build-system.scm (unpack-rust-crates): Delete trailing #t.
(configure, patch-cargo-checksums, package, install): Likewise.

Change-Id: I510a46b3d35cd292d71d5646d4a0436f7d77f98e
---
guix/build/cargo-build-system.scm | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)

Toggle diff (60 lines)
diff --git a/guix/build/cargo-build-system.scm b/guix/build/cargo-build-system.scm
index 132a811f49..84897393d9 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -105,8 +105,7 @@ (define* (unpack-rust-crates #:key inputs vendor-dir #:allow-other-keys)
(for-each (lambda (crate)
(invoke "tar" "xzf" crate "-C" vendor-dir))
- (find-files "target/package" "\\.crate$"))))
- #t)
+ (find-files "target/package" "\\.crate$")))))
(define (rust-package? name)
(string-prefix? "rust-" name))
@@ -220,8 +219,7 @@ (define* (configure #:key inputs
;; during building, and in any case if one is not present it is created
;; during the 'build phase by cargo.
(when (file-exists? "Cargo.lock")
- (delete-file "Cargo.lock"))
- #t)
+ (delete-file "Cargo.lock")))
;; After the 'patch-generated-file-shebangs phase any vendored crates who have
;; their shebangs patched will have a mismatch on their checksum.
@@ -229,10 +227,10 @@ (define* (patch-cargo-checksums #:key
(vendor-dir "guix-vendor")
#:allow-other-keys)
"Patch the checksums of the vendored crates after patching their shebangs."
- (generate-all-checksums vendor-dir)
- #t)
+ (generate-all-checksums vendor-dir))
(define* (build #:key
+ parallel-build?
skip-build?
(features '())
(cargo-build-flags '("--release"))
@@ -311,8 +309,7 @@ (define* (package #:key
(find-files dir #:directories? #t))
(delete-file-recursively dir)))
(find-files "." "\\.crate$")))))
- (format #t "Not installing cargo sources, skipping `cargo package`.~%"))
- #t)
+ (format #t "Not installing cargo sources, skipping `cargo package`.~%")))
(define* (install #:key
inputs
@@ -348,9 +345,7 @@ (define* (install #:key
(for-each (lambda (crate)
(invoke "tar" "xzf" crate "-C" sources))
- (find-files registry "\\.crate$")))
-
- #t))
+ (find-files registry "\\.crate$")))))
(define %standard-phases
(modify-phases gnu:%standard-phases
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 02/23] build/cargo: Honor #:parallel-build? and #:parallel-tests? arguments.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
b339f673a52517b06372bb47940be72c5ebc5d56.1733840023.git.maxim.cournoyer@gmail.com
* guix/build-system/cargo.scm (cargo-build): Add #:parallel-build? and
#:parallel-tests? arguments.
(cargo-cross-build): Likewise.
* guix/build/cargo-build-system.scm (build): Honor them.
(check): Likewise.

Change-Id: Idbee7aa3a6a7cd0fc222082837390b83cc8e8c07
---
guix/build-system/cargo.scm | 9 +++++++++
guix/build/cargo-build-system.scm | 23 ++++++++++++++++++++---
2 files changed, 29 insertions(+), 3 deletions(-)

Toggle diff (101 lines)
diff --git a/guix/build-system/cargo.scm b/guix/build-system/cargo.scm
index f24ff6195e..ea841a34eb 100644
--- a/guix/build-system/cargo.scm
+++ b/guix/build-system/cargo.scm
@@ -6,6 +6,7 @@
;;; Copyright © 2019 Ivan Petkov <ivanppetkov@gmail.com>
;;; Copyright © 2020 Jakub K?dzio?ka <kuba@kadziolka.net>
;;; Copyright © 2021, 2024 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2024 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -95,6 +96,8 @@ (define* (cargo-build name inputs
(cargo-package-flags ''("--no-metadata" "--no-verify"))
(features ''())
(skip-build? #f)
+ (parallel-build? #t)
+ (parallel-tests? #t)
(install-source? #t)
(phases '%standard-phases)
(outputs '("out"))
@@ -122,6 +125,8 @@ (define* (cargo-build name inputs
#:cargo-target #$(cargo-triplet system)
#:features #$(sexp->gexp features)
#:skip-build? #$skip-build?
+ #:parallel-build? #$parallel-build?
+ #:parallel-tests? #$parallel-tests?
#:install-source? #$install-source?
#:tests? #$(and tests? (not skip-build?))
#:phases #$(if (pair? phases)
@@ -152,6 +157,8 @@ (define* (cargo-cross-build name
(cargo-target (cargo-triplet (or target system)))
(features ''())
(skip-build? #f)
+ (parallel-build? #t)
+ (parallel-tests? #t)
(install-source? (not (target-mingw? target)))
(phases '%standard-phases)
(outputs '("out"))
@@ -181,6 +188,8 @@ (define* (cargo-cross-build name
#:cargo-target #$(cargo-triplet (or target system))
#:features #$(sexp->gexp features)
#:skip-build? #$skip-build?
+ #:parallel-build? #$parallel-build?
+ #:parallel-tests? #$parallel-tests?
#:install-source? #$install-source?
#:tests? #$(and tests? (not skip-build?))
#:phases #$(if (pair? phases)
diff --git a/guix/build/cargo-build-system.scm b/guix/build/cargo-build-system.scm
index 84897393d9..d125ff20ca 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -5,6 +5,7 @@
;;; Copyright © 2019-2024 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2020 Jakub K?dzio?ka <kuba@kadziolka.net>
;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
+;;; Copyright © 2024 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -239,19 +240,35 @@ (define* (build #:key
(or skip-build?
(apply invoke
`("cargo" "build"
+ ,@(if parallel-build?
+ (list "-j" (number->string (parallel-job-count)))
+ '())
,@(if (null? features)
'()
`("--features" ,(string-join features)))
,@cargo-build-flags))))
(define* (check #:key
+ parallel-build?
+ parallel-tests?
tests?
(cargo-test-flags '("--release"))
#:allow-other-keys)
"Run tests for a given Cargo package."
- (if tests?
- (apply invoke "cargo" "test" cargo-test-flags)
- #t))
+ (when tests?
+ (apply invoke
+ `("cargo" "test"
+ ,@(if parallel-build?
+ (list "-j" (number->string (parallel-job-count)))
+ '())
+ ,@cargo-test-flags
+ ,@(if parallel-tests?
+ (append (if (member "--" cargo-test-flags)
+ '()
+ '("--"))
+ (list "--test-threads"
+ (number->string (parallel-job-count))))
+ '())))))
(define* (package #:key
source
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 04/23] gnu: Add rust-read-process-memory-0.1.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
a9eb525e25d45579e3b9717826931777769e5ba7.1733840023.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-read-process-memory-0.1): New variable.

Change-Id: Iee6386d28ea10a83ac769251a7341a6d0caccdc6
---
gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)

Toggle diff (36 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 81667a660a..e02212980d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -86154,6 +86154,29 @@ (define-public rust-thread-priority-0.10
"Library for managing threads priority and schedule policies.")
(license license:expat)))
+(define-public rust-read-process-memory-0.1
+ (package
+ (name "rust-read-process-memory")
+ (version "0.1.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "read-process-memory" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1c1vmw8a2ywf7v96xfwbsyrnpk3fy8cc2a0rdxw8fs0b5wxni5w4"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-mach" ,rust-mach-0.3)
+ ("rust-winapi" ,rust-winapi-0.3))))
+ (home-page "https://github.com/rbspy/read-process-memory")
+ (synopsis "Read memory from another process")
+ (description "This package provides a crate that allows reading memory
+from another process.")
+ (license license:expat)))
+
(define-public rust-thread-tree-0.3
(package
(name "rust-thread-tree")
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 07/23] gnu: rust-libc-0.2: Update to 0.2.168.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
84d3de2b79e588e743ed79693d6a025e8dca4c14.1733840023.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-libc-0.2): Update to 0.2.168.

Change-Id: If07c0bd242b012465728c7a44c2eb34fd81e75fb
---
gnu/packages/crates-io.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (23 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b9f35a9255..9fdfc582af 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -40157,14 +40157,14 @@ (define-public rust-lexopt-0.3
(define-public rust-libc-0.2
(package
(name "rust-libc")
- (version "0.2.162")
+ (version "0.2.168")
(source
(origin
(method url-fetch)
(uri (crate-uri "libc" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "1633a00yyx45kzx9r54fndvr8njsjqyr7zl12mzgsmgyczg8glhq"))))
+ (base32 "0vab4inpw0dz78nii02hsxp1skqn06xzh64psw8wl1h63scb5bjs"))))
(build-system cargo-build-system)
(arguments
(list #:cargo-inputs
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 05/23] gnu: Update ust-wasmparser to 0.218.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
572526d1653d0f41c900ddaaa1b2aea017a97612.1733840023.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-wasmparser-0.216): Replace with...
(rust-wasmparser-0.218): ... this. Add comment w.r.t. disabling tests.
(rust-wasmparser-0.118): Inherit from it, removing now duplicate fields.
(rust-object-0.36): Adjust accordingly.

Change-Id: I712c36a92d751447560c9c5ca9770c450cfc5030
---
gnu/packages/crates-io.scm | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)

Toggle diff (52 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e02212980d..7461fba144 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -52174,7 +52174,7 @@ (define-public rust-object-0.36
("rust-rustc-std-workspace-alloc" ,rust-rustc-std-workspace-alloc-1)
("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1)
("rust-ruzstd" ,rust-ruzstd-0.7)
- ("rust-wasmparser" ,rust-wasmparser-0.216))))
+ ("rust-wasmparser" ,rust-wasmparser-0.218))))
(home-page "https://github.com/gimli-rs/object")
(synopsis "Unified interface for reading and writing object file formats")
(description
@@ -95732,20 +95732,23 @@ (define-public rust-wasm-sync-0.1
and native running processes.")
(license (list license:expat license:asl2.0))))
-(define-public rust-wasmparser-0.216
+(define-public rust-wasmparser-0.218
(package
(name "rust-wasmparser")
- (version "0.216.0")
+ (version "0.218.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "wasmparser" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "1qr8j1c15r208d9nsjw01x3w71m9i4g756djnhgk37b1lfzfdpmw"))))
+ (base32 "1p65jvj1i6bh180hd656z8yzkn3zx8vs3a6i5lmsgspczk3ld7mh"))))
(build-system cargo-build-system)
(arguments
- `(#:tests? #f ; failed to resolve: use of undeclared crate or module `wat`
+ ;; The test suite fails with error "failed to resolve: use of undeclared
+ ;; crate or module `wat`" (see:
+ ;; https://github.com/bytecodealliance/wasm-tools/issues/1947).
+ `(#:tests? #f
#:cargo-inputs (("rust-ahash" ,rust-ahash-0.8)
("rust-bitflags" ,rust-bitflags-2)
("rust-hashbrown" ,rust-hashbrown-0.14)
@@ -95768,7 +95771,7 @@ (define-public rust-wasmparser-0.216
(define-public rust-wasmparser-0.118
(package
- (inherit rust-wasmparser-0.216)
+ (inherit rust-wasmparser-0.218)
(name "rust-wasmparser")
(version "0.118.2")
(source
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 06/23] gnu: rust-ruzstd-0.7: Update to 0.7.3.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
4362ae16011e4d03f3d1ff94455b939bed48a5bb.1733840023.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-ruzstd-0.7): Update to 0.7.3.

Change-Id: I5db86546237a2af5b619a14380a6298b956b8c8c
---
gnu/packages/crates-io.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Toggle diff (27 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7461fba144..b9f35a9255 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -71253,17 +71253,17 @@ (define-public rust-rustyline-derive-0.3
(define-public rust-ruzstd-0.7
(package
(name "rust-ruzstd")
- (version "0.7.2")
+ (version "0.7.3")
(source
(origin
(method url-fetch)
(uri (crate-uri "ruzstd" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "08ffshmfmmcgijcg4w517clpsxwknga89inxjw4hgb1s2f797hwr"))))
+ (base32 "17z83lw00pd3190yvdk2lksdi7my6wc0psgg07is6gf7pyb2kl7s"))))
(build-system cargo-build-system)
(arguments
- `(#:tests? #f ; Not all files included.
+ `(#:tests? #f ;missing data files
#:cargo-inputs
(("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
("rust-rustc-std-workspace-alloc" ,rust-rustc-std-workspace-alloc-1)
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 09/23] gnu: rust-syn-test-suite-0.0.0: Update to 0.0.0+test.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
a095db369eaf9811c45aa2266ed53b873cbbd487.1733840023.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-syn-test-suite-0.0.0): Update to 0.0.0+test.

Change-Id: I30618df59eb75f033991155df86256c7a3aa1419
---
gnu/packages/crates-io.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (23 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8718871f41..9a6aa1e261 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -82119,14 +82119,14 @@ (define-public rust-syn-derive-0.1
(define-public rust-syn-test-suite-0.0.0
(package
(name "rust-syn-test-suite")
- (version "0.0.0")
+ (version "0.0.0+test")
(source (origin
(method url-fetch)
(uri (crate-uri "syn-test-suite" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
- "15yz9q7rgxaplv0zbnanzyv1la4gmg47yq5wlkcwv3cck4qlncdm"))))
+ "1d9ffrbgci1qjdcpvgrsg3sh24qdsdh66zcsvn5prrk05ycn3mm0"))))
(build-system cargo-build-system)
(arguments (list #:skip-build? #t))
(home-page "https://github.com/dtolnay/syn")
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 10/23] gnu: rust-syn-2: Update to 2.0.90.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
f971e9c56cd095039eb511545ea8015740b54878.1733840023.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-syn-2): Update to 2.0.90.
[arguments]: Update comment above #:tests? argument.

Change-Id: Ic37eef85baebb3e45610fcaad57e0ae622b221e9
---
gnu/packages/crates-io.scm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

Toggle diff (29 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9a6aa1e261..ff615677cf 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -81886,18 +81886,18 @@ (define-public rust-symphonia-utils-xiph-0.4
(define-public rust-syn-2
(package
(name "rust-syn")
- (version "2.0.87")
+ (version "2.0.90")
(source (origin
(method url-fetch)
(uri (crate-uri "syn" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0bd3mfcswvn4jkrp7ich5kk58kmpph8412yxd36nsfnh8vilrai5"))))
+ (base32 "0cfg5dsr1x0hl6b9hz08jp1197mx0rq3xydqmqaws36xlms3p7ci"))))
(build-system cargo-build-system)
(arguments
;; Tests fail to compile
- ;; error[E0432]: unresolved imports `syn::Item`, `syn::Pat`
- `(#:tests? #false
+ ;; error[E0463]: can't find crate for `rustc_ast` (among other errors).
+ `(#:tests? #f
#:phases
(modify-phases %standard-phases
;; The syn-test-suite crate is empty.
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 08/23] gnu: rust-proc-macro2-1: Update to 1.0.92.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
60d603b98cf533d0b084fd4af1ec9dfd1e085e39.1733840023.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-proc-macro2-1): Update to 1.0.92.

Change-Id: Ib126bce83336075dca0aea7165c6ee084b7180f9
---
gnu/packages/crates-io.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (23 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9fdfc582af..8718871f41 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -60396,14 +60396,14 @@ (define-public rust-proc-macro-nested-0.1
(define-public rust-proc-macro2-1
(package
(name "rust-proc-macro2")
- (version "1.0.89")
+ (version "1.0.92")
(source
(origin
(method url-fetch)
(uri (crate-uri "proc-macro2" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0vlq56v41dsj69pnk7lil7fxvbfid50jnzdn3xnr31g05mkb0fgi"))))
+ (base32 "1c1vjy5wg8iy7kxsxda564qf4ljp0asysmbn2i7caj177x5m9lrp"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-test-flags '("--lib")
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 11/23] gnu: Add rust-zerocopy-derive-0.8.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
2318a868d2c2f412243e313ea0b358f8e3db4197.1733840023.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-zerocopy-derive-0.8): New variable.
(rust-zerocopy-derive-0.7): Inherit from it.

Change-Id: Ia23684a67a84d656036c15d25d7634e6e49f05ab
---
gnu/packages/crates-io.scm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

Toggle diff (33 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ff615677cf..3c94381ffe 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -98378,22 +98378,22 @@ (define-public rust-zerocopy-0.3
(define-public rust-zerocopy-derive-0.8
(package
(name "rust-zerocopy-derive")
- (version "0.8.9")
+ (version "0.8.13")
(source
(origin
(method url-fetch)
(uri (crate-uri "zerocopy-derive" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "1cd712qs5ccn6diy53ymk8vkprgcmnx1gvg3x3xsdxqxi362ywzs"))
+ (base32 "0pgjqk2w5wrw752wfsxgf7rwqjlk1r4vq5iky2fjijh38cxdg23r"))
(modules '((guix build utils)))
- (snippet
+ (snippet ;relax requirements
'(begin (substitute* "Cargo.toml"
(("\"= ?([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
(string-append "\"^" version)))))))
(build-system cargo-build-system)
(arguments
- `(#:tests? #f ; unresolved import `zerocopy`
+ `(#:tests? #f ;error[E0432]: unresolved import `zerocopy`
#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-quote" ,rust-quote-1)
("rust-syn" ,rust-syn-2))
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 13/23] gnu: rust-gimli-0.31: Update to 0.31.1.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
74f92dd4b1819e1292c1ca8e5ef103f9f22373d5.1733840023.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-gimli-0.31): Update to 0.31.1.

Change-Id: I47dd49c9ad00da7a1dc079c138c9eea5cc2e4600
---
gnu/packages/crates-io.scm | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)

Toggle diff (36 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 110b9b15ca..7b9caa3903 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -31792,14 +31792,14 @@ (define-public rust-ghost-0.1
(define-public rust-gimli-0.31
(package
(name "rust-gimli")
- (version "0.31.0")
+ (version "0.31.1")
(source
(origin
(method url-fetch)
(uri (crate-uri "gimli" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0r1d55xdi1k2l5ah9p0n23i93pm47cl8apjm8rwgqd1j7yi5w21j"))))
+ (base32 "0gvqc0ramx8szv76jhfd4dms0zyamvlg4whhiz11j34hh3dqxqh7"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
@@ -31809,9 +31809,10 @@ (define-public rust-gimli-0.31
("rust-rustc-std-workspace-alloc" ,rust-rustc-std-workspace-alloc-1)
("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1)
("rust-stable-deref-trait" ,rust-stable-deref-trait-1))
- #:cargo-development-inputs (("rust-test-assembler" ,rust-test-assembler-0.1))))
+ #:cargo-development-inputs
+ (("rust-test-assembler" ,rust-test-assembler-0.1))))
(home-page "https://github.com/gimli-rs/gimli")
- (synopsis "Library for reading and writing the DWARF debugging format")
+ (synopsis "Library for reading and writing the DWARF debugging format.")
(description
"This package provides a library for reading and writing the DWARF
debugging format.")
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 14/23] gnu: Add rust-goblin-0.9.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
36cfcf6b5be65f7ac75be3b73cfc9ce265694933.1733840023.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-goblin-0.9): New variable.
(rust-goblin-0.8): Inherit from it.

Change-Id: I8b856eff3d79a76afde1c985e6424949d44e6f2a
---
gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)

Toggle diff (57 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7b9caa3903..62494dd453 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -32487,20 +32487,20 @@ (define-public rust-gmp-mpfr-sys-1
libraries GMP, MPFR, and MPC.")
(license license:lgpl3+)))
-(define-public rust-goblin-0.8
+(define-public rust-goblin-0.9
(package
(name "rust-goblin")
- (version "0.8.0")
+ (version "0.9.2")
(source
(origin
(method url-fetch)
(uri (crate-uri "goblin" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "11wqipqx0dbimxy5612nxpx79qja43sxic95llcb34r0xpzs81xv"))))
+ (base32 "08yrnjj5j4nddh6y1r8kf35ys7p3iwg6npga3nc4cwfps4r3zask"))))
(build-system cargo-build-system)
(arguments
- `(#:tests? #f ; Not all files included.
+ `(#:tests? #f ;there are missing data files
#:cargo-inputs (("rust-log" ,rust-log-0.4)
("rust-plain" ,rust-plain-0.2)
("rust-scroll" ,rust-scroll-0.12))
@@ -32511,6 +32511,25 @@ (define-public rust-goblin-0.8
and loading crate.")
(license license:expat)))
+(define-public rust-goblin-0.8
+ (package
+ (inherit rust-goblin-0.9)
+ (name "rust-goblin")
+ (version "0.8.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "goblin" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "11wqipqx0dbimxy5612nxpx79qja43sxic95llcb34r0xpzs81xv"))))
+ (arguments
+ `(#:tests? #f ; Not all files included.
+ #:cargo-inputs (("rust-log" ,rust-log-0.4)
+ ("rust-plain" ,rust-plain-0.2)
+ ("rust-scroll" ,rust-scroll-0.12))
+ #:cargo-development-inputs (("rust-stderrlog" ,rust-stderrlog-0.5))))))
+
(define-public rust-goblin-0.7
(package
(inherit rust-goblin-0.8)
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 12/23] gnu: rust-object-0.36: Update to 0.36.5.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
35d87d12b70c1a656526c62bc20b6189be06319a.1733840023.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-object-0.36): Update to 0.36.5.
[arguments]: Simply #:cargo-test-flags.
{#:cargo-inputs}: Update rust-hashbrown to 0.15.

Change-Id: I06b78b73115c4078acb0604c3ac6d45566d42d96
---
gnu/packages/crates-io.scm | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)

Toggle diff (41 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3c94381ffe..110b9b15ca 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -52147,28 +52147,25 @@ (define-public rust-obj-0.9
(define-public rust-object-0.36
(package
(name "rust-object")
- (version "0.36.4")
+ (version "0.36.5")
(source
(origin
(method url-fetch)
(uri (crate-uri "object" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "02h7k38dwi8rndc3y81n6yjxijbss99p2jm9c0b6ak5c45c1lkq8"))))
+ (base32 "0gk8lhbs229c68lapq6w6qmnm4jkj48hrcw5ilfyswy514nhmpxf"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-test-flags
- '("--release" "--"
- ;; Not all files are included
- "--skip=read::coff::coff_extended_relocations"
- "--skip=read::elf::get_buildid_bad_elf"
- "--skip=read::elf::get_buildid_less_bad_elf"
- "--skip=read::macho::test_go_macho")
+ ;; The parse_self test correspond to the unit tests; the integration
+ ;; tests have some failures for unknown reasons.
+ '("--release" "parse_self" "--")
#:cargo-inputs
(("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
("rust-crc32fast" ,rust-crc32fast-1)
("rust-flate2" ,rust-flate2-1)
- ("rust-hashbrown" ,rust-hashbrown-0.14)
+ ("rust-hashbrown" ,rust-hashbrown-0.15)
("rust-indexmap" ,rust-indexmap-2)
("rust-memchr" ,rust-memchr-2)
("rust-rustc-std-workspace-alloc" ,rust-rustc-std-workspace-alloc-1)
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 15/23] gnu: Add rust-proc-maps-0.4.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
9eca369c8847177fcfcdedb56b43ae16aa382502.1733840024.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-proc-maps-0.4): New variable.

Change-Id: I4fc7d6b5369181d839083d40b87b21373b8b95ba
---
gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)

Toggle diff (38 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 62494dd453..010a5ce78a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -60532,6 +60532,31 @@ (define-public rust-proc-macro2-diagnostics-0.9
("rust-yansi" ,rust-yansi-0.5))
#:cargo-development-inputs (("rust-trybuild" ,rust-trybuild-1))))))
+(define-public rust-proc-maps-0.4
+ (package
+ (name "rust-proc-maps")
+ (version "0.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "proc-maps" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1ys4dj9wzqj6z5k7i28qy7l2ff224znvjfyrzhjkl68flrd4rd1x"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+ ("rust-bindgen" ,rust-bindgen-0.70)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-libproc" ,rust-libproc-0.14)
+ ("rust-mach2" ,rust-mach2-0.4)
+ ("rust-winapi" ,rust-winapi-0.3))))
+ (home-page "https://github.com/rbspy/proc-maps")
+ (synopsis "Helper crate for getting virtual memory maps from processes")
+ (description "This package provides a helper crate for getting virtual
+memory maps from processes.")
+ (license license:expat)))
+
(define-public rust-proc-mounts-0.3
(package
(name "rust-proc-mounts")
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 16/23] gnu: Add rust-mark-flaky-tests-macro-1.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
a0879c607588e927103dd7e4716b6ecc6aa29b41.1733840024.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-check.scm: New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Register it.
---
gnu/local.mk | 1 +
gnu/packages/crates-check.scm | 58 +++++++++++++++++++++++++++++++++++
2 files changed, 59 insertions(+)
create mode 100644 gnu/packages/crates-check.scm

Toggle diff (78 lines)
diff --git a/gnu/local.mk b/gnu/local.mk
index a7bd32453b..654d5fdaaa 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -210,6 +210,7 @@ GNU_SYSTEM_MODULES = \
%D%/packages/cppi.scm \
%D%/packages/cran.scm \
%D%/packages/crates-apple.scm \
+ %D%/packages/crates-check.scm \
%D%/packages/crates-crypto.scm \
%D%/packages/crates-io.scm \
%D%/packages/crates-graphics.scm \
diff --git a/gnu/packages/crates-check.scm b/gnu/packages/crates-check.scm
new file mode 100644
index 0000000000..663a25ccc3
--- /dev/null
+++ b/gnu/packages/crates-check.scm
@@ -0,0 +1,58 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2024 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
+
+;;;
+;;; Please: Try to add new module packages in alphabetic order.
+;;;
+
+(define-module (gnu packages crates-check)
+ #:use-module (guix build-system cargo)
+ #:use-module (guix download)
+ #:use-module ((guix licenses) #:prefix license:)
+ #:use-module (guix packages)
+ #:use-module (gnu packages crates-io))
+
+(define-public rust-mark-flaky-tests-macro-1
+ (package
+ (name "rust-mark-flaky-tests-macro")
+ (version "1.0.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "mark-flaky-tests-macro" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "115bb0pb4vb8pwm6lblcnc6zxxlk6w654njiphp696dj2vyiz2q7"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-proc-macro-crate" ,rust-proc-macro-crate-1)
+ ("rust-proc-macro-error" ,rust-proc-macro-error-1)
+ ("rust-proc-macro2" ,rust-proc-macro2-1)
+ ("rust-quote" ,rust-quote-1)
+ ("rust-syn" ,rust-syn-2))))
+ (home-page "https://github.com/GoldsteinE/mark-flaky-tests/")
+ (synopsis "Mark, debug and auto-retry your flaky tests (proc-macro crate)")
+ (description
+ "This package provides Mark, debug and auto-retry your flaky tests (proc-macro crate).")
+ (license (list license:expat license:asl2.0))))
+
+;;;
+;;; Avoid adding new packages to the end of this file. To reduce the chances
+;;; of a merge conflict, place them above by existing packages with similar
+;;; functionality or similar names.
+;;;
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 17/23] gnu: Add rust-mark-flaky-tests-1.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
084e30cc1f3d795d4174e666b2b2207f86c864c8.1733840024.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-check.scm (rust-mark-flaky-tests-1): New variable.

Change-Id: I85a28276548bacff3ccfdabe2b1bc62b47566f2e
---
gnu/packages/crates-check.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)

Toggle diff (36 lines)
diff --git a/gnu/packages/crates-check.scm b/gnu/packages/crates-check.scm
index 663a25ccc3..d59760fc2f 100644
--- a/gnu/packages/crates-check.scm
+++ b/gnu/packages/crates-check.scm
@@ -51,6 +51,29 @@ (define-public rust-mark-flaky-tests-macro-1
"This package provides Mark, debug and auto-retry your flaky tests (proc-macro crate).")
(license (list license:expat license:asl2.0))))
+(define-public rust-mark-flaky-tests-1
+ (package
+ (name "rust-mark-flaky-tests")
+ (version "1.0.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "mark-flaky-tests" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0c29bflpb5aawl5vzcai2rhvphskvh7gdr5v9sq52lx0jmy4lv2q"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-futures" ,rust-futures-0.3)
+ ("rust-mark-flaky-tests-macro" ,rust-mark-flaky-tests-macro-1))
+ #:cargo-development-inputs (("rust-paste" ,rust-paste-1)
+ ("rust-tokio" ,rust-tokio-1))))
+ (home-page "https://github.com/GoldsteinE/mark-flaky-tests/")
+ (synopsis "Mark, debug and auto-retry your flaky tests")
+ (description
+ "This package provides Mark, debug and auto-retry your flaky tests.")
+ (license (list license:expat license:asl2.0))))
+
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 18/23] gnu: Add rust-remoteprocess-0.5.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
4394b9a399fe443abba56704c4859913c21ca1f2.1733840024.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-remoteprocess-0.5): New variable.

Change-Id: I0accd08b4eee79fcd2fc226c223f7486b0132824
---
gnu/packages/crates-io.scm | 39 ++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)

Toggle diff (59 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 010a5ce78a..f438ed12af 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -83,6 +83,7 @@ (define-module (gnu packages crates-io)
#:use-module (gnu packages compression)
#:use-module (gnu packages cpp)
#:use-module (gnu packages crates-apple)
+ #:use-module (gnu packages crates-check)
#:use-module (gnu packages crates-crypto)
#:use-module (gnu packages crates-graphics)
#:use-module (gnu packages crates-gtk)
@@ -66827,6 +66828,44 @@ (define-public rust-relative-path-1
(description "This package provides portable, relative paths for Rust.")
(license (list license:expat license:asl2.0))))
+(define-public rust-remoteprocess-0.5
+ (package
+ (name "rust-remoteprocess")
+ (version "0.5.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "remoteprocess" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "087z016qvypalbqjgdxmri97vsrqg4k1kpmc8b5d5hdgqxq4f6g6"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-addr2line" ,rust-addr2line-0.24)
+ ("rust-cfg-if" ,rust-cfg-if-1)
+ ("rust-goblin" ,rust-goblin-0.9)
+ ("rust-lazy-static" ,rust-lazy-static-1)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-libproc" ,rust-libproc-0.14)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-mach" ,rust-mach-0.3)
+ ("rust-mach-o-sys" ,rust-mach-o-sys-0.1)
+ ("rust-memmap2" ,rust-memmap2-0.9)
+ ("rust-nix" ,rust-nix-0.26)
+ ("rust-object" ,rust-object-0.36)
+ ("rust-proc-maps" ,rust-proc-maps-0.4)
+ ("rust-read-process-memory" ,rust-read-process-memory-0.1)
+ ("rust-regex" ,rust-regex-1)
+ ("rust-winapi" ,rust-winapi-0.3))
+ #:cargo-development-inputs
+ (("rust-mark-flaky-tests" ,rust-mark-flaky-tests-1))))
+ (home-page "https://github.com/benfred/remoteprocess")
+ (synopsis "Library for getting information on running processes")
+ (description "This package provides an API for getting information on
+running processes.")
+ (license license:expat)))
+
(define-public rust-rend-0.3
(package
(name "rust-rend")
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 19/23] gnu: Add rust-lru-0.10.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
42bb99168d8035598b3b021709c5d4958fecf1a4.1733840024.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-lru-0.10): New variable.
(rust-lru-0.9): Inherit from it.

Change-Id: I74de3fb4266a851e8c025c3ef8e0a667971ed237
---
gnu/packages/crates-io.scm | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)

Toggle diff (36 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f438ed12af..93c346086a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -43183,10 +43183,28 @@ (define-public rust-lru-0.12
(description "This package provides a LRU cache implementation.")
(license license:expat)))
-(define-public rust-lru-0.9
+(define-public rust-lru-0.10
(package
(inherit rust-lru-0.12)
(name "rust-lru")
+ (version "0.10.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "lru" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0w5n2sgh66ac8ihqv6688mlm7zb3ks18jlbzpbhwgw3x8jp8z3ki"))))
+ (arguments
+ `(#:cargo-inputs (("rust-hashbrown" ,rust-hashbrown-0.13))
+ #:cargo-development-inputs
+ (("rust-scoped-threadpool" ,rust-scoped-threadpool-0.1)
+ ("rust-stats-alloc" ,rust-stats-alloc-0.1))))))
+
+(define-public rust-lru-0.9
+ (package
+ (inherit rust-lru-0.10)
+ (name "rust-lru")
(version "0.9.0")
(source
(origin
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 20/23] gnu: rust-rle-decode-fast-1: Update to 1.0.3.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
e6b7ea825afda2b1e03d26f25ea91e4a8d18f536.1733840024.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-rle-decode-fast-1): Update to 1.0.3.

Change-Id: I274deddb0cef0218c99a869c4513b6e6aab14a22
---
gnu/packages/crates-io.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (23 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 93c346086a..5a75c0b8ef 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -67280,14 +67280,14 @@ (define-public rust-ringbuf-0.2
(define-public rust-rle-decode-fast-1
(package
(name "rust-rle-decode-fast")
- (version "1.0.1")
+ (version "1.0.3")
(source
(origin
(method url-fetch)
(uri (crate-uri "rle-decode-fast" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "1b4h7qs4mssc5dnlhs3f91ya8pb40bv72zzshl18gify2jllzgna"))))
+ (base32 "08kljzl29rpm12fiz0qj5pask49aiswdvcjigdcq73s224rgd0im"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 23/23] gnu: Add py-spy.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
407ff9a3329b5273e3f777beda2e694628d26a83.1733840024.git.maxim.cournoyer@gmail.com
* gnu/packages/rust-apps.scm (py-spy): New variable.

Change-Id: I41876fd3c83da27cece7c0fe4812248c3c4467df
Series-postfix: PATCH rust-team
---
gnu/packages/rust-apps.scm | 51 ++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)

Toggle diff (71 lines)
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index eb43ca8d23..2bd8db2565 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -91,6 +91,7 @@ (define-module (gnu packages rust-apps)
#:use-module (gnu packages jemalloc)
#:use-module (gnu packages kde)
#:use-module (gnu packages libusb)
+ #:use-module (gnu packages libunwind)
#:use-module (gnu packages linux)
#:use-module (gnu packages llvm)
#:use-module (gnu packages networking)
@@ -2144,6 +2145,56 @@ (define-public rust-py-spy-testdata-0.1
(description "This package provides Python coredumps for testing py-spy.")
(license license:expat))))
+(define-public py-spy
+ (package
+ (name "py-spy")
+ (version "0.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "py-spy" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0fvdmrqp4qand1zb9cwks8hpkysdqajrdh9y7ks15c78985k1x64"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+ ("rust-chrono" ,rust-chrono-0.4)
+ ("rust-clap" ,rust-clap-3)
+ ("rust-clap-complete" ,rust-clap-complete-3)
+ ("rust-console" ,rust-console-0.15)
+ ("rust-cpp-demangle" ,rust-cpp-demangle-0.4)
+ ("rust-ctrlc" ,rust-ctrlc-3)
+ ("rust-env-logger" ,rust-env-logger-0.10)
+ ("rust-goblin" ,rust-goblin-0.9)
+ ("rust-indicatif" ,rust-indicatif-0.17)
+ ("rust-inferno" ,rust-inferno-0.11)
+ ("rust-lazy-static" ,rust-lazy-static-1)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-lru" ,rust-lru-0.10)
+ ("rust-memmap2" ,rust-memmap2-0.9)
+ ("rust-num-traits" ,rust-num-traits-0.2)
+ ("rust-proc-maps" ,rust-proc-maps-0.4)
+ ("rust-rand" ,rust-rand-0.8)
+ ("rust-rand-distr" ,rust-rand-distr-0.4)
+ ("rust-regex" ,rust-regex-1)
+ ("rust-remoteprocess" ,rust-remoteprocess-0.5)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-derive" ,rust-serde-derive-1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-tempfile" ,rust-tempfile-3)
+ ("rust-termios" ,rust-termios-0.3)
+ ("rust-winapi" ,rust-winapi-0.3))
+ #:cargo-development-inputs (("rust-py-spy-testdata" ,rust-py-spy-testdata-0.1))))
+ (native-inputs (list python-minimal-wrapper))
+ (inputs (list libunwind))
+ (home-page "https://github.com/benfred/py-spy")
+ (synopsis "Sampling profiler for Python programs")
+ (description
+ "This package provides Sampling profiler for Python programs.")
+ (license license:expat)))
+
(define-public ripgrep
(package
(name "ripgrep")
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 22/23] gnu: Add rust-py-spy-testdata-0.1.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
fe70d6dbc7a0890880641139b2fd6a385ad2723a.1733840024.git.maxim.cournoyer@gmail.com
* gnu/packages/rust-apps.scm (rust-py-spy-testdata-0.1): New variable.

Change-Id: Ic7aff58e69e84c28f967d935c409e2981fdf6f1e
---
gnu/packages/rust-apps.scm | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)

Toggle diff (42 lines)
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 297111d867..eb43ca8d23 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -12,7 +12,7 @@
;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus@gmail.ccom>
;;; Copyright © 2021, 2022 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2021 Alexandru-Sergiu Marton <brown121407@posteo.ro>
-;;; Copyright © 2021, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2021, 2023, 2024 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021, 2022 Petr Hodina <phodina@protonmail.com>
;;; Copyright © 2021 jgart <jgart@dismail.de>
;;; Copyright © 2021 Nicolas Graves <ngraves@ngraves.fr>
@@ -2124,6 +2124,26 @@ (define-public ouch
decompressing files and directories.")
(license license:expat)))
+(define-public rust-py-spy-testdata-0.1
+ (hidden-package ;uninteresting for users
+ (package
+ (name "rust-py-spy-testdata")
+ (version "0.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "py-spy-testdata" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "18d880f2rjdd42828srh97vpvlrs9pg23j28gphw9qd2w3bp128q"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t))
+ (home-page "https://github.com/benfred/py-spy-testdata")
+ (synopsis "Python coredumps for testing py-spy")
+ (description "This package provides Python coredumps for testing py-spy.")
+ (license license:expat))))
+
(define-public ripgrep
(package
(name "ripgrep")
--
2.46.0
M
M
Maxim Cournoyer wrote on 10 Dec 15:21 +0100
[PATCH rust-team 21/23] gnu: rust-inferno-0.11: Update to 0.11.21.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
abcf860e5a68bf84da25c5371326ce94f45cf075.1733840024.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-inferno-0.11): Update to 0.11.21.

Change-Id: I4ab157a33263c7d1b6a6671295196c8d1c2c9ba2
---
gnu/packages/crates-io.scm | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

Toggle diff (49 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 5a75c0b8ef..6ddd081e65 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -36385,14 +36385,14 @@ (define-public rust-infer-0.2
(define-public rust-inferno-0.11
(package
(name "rust-inferno")
- (version "0.11.19")
+ (version "0.11.21")
(source
(origin
(method url-fetch)
(uri (crate-uri "inferno" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "1ndqcz0p6n4gqrqlq53j42v516nnnii0ljshx634cjnlkj1hy7rj"))))
+ (base32 "126v1njhhx1shw0ammn3ngxxp20dmlb78p1xd9brks2zszhjja93"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-test-flags
@@ -36407,8 +36407,8 @@ (define-public rust-inferno-0.11
("rust-clap" ,rust-clap-4)
("rust-crossbeam-channel" ,rust-crossbeam-channel-0.5)
("rust-crossbeam-utils" ,rust-crossbeam-utils-0.8)
- ("rust-dashmap" ,rust-dashmap-5)
- ("rust-env-logger" ,rust-env-logger-0.10)
+ ("rust-dashmap" ,rust-dashmap-6)
+ ("rust-env-logger" ,rust-env-logger-0.11)
("rust-indexmap" ,rust-indexmap-2)
("rust-is-terminal" ,rust-is-terminal-0.4)
("rust-itoa" ,rust-itoa-1)
@@ -36416,11 +36416,13 @@ (define-public rust-inferno-0.11
("rust-num-format" ,rust-num-format-0.4)
("rust-once-cell" ,rust-once-cell-1)
("rust-quick-xml" ,rust-quick-xml-0.26)
+ ("rust-regex" ,rust-regex-1)
("rust-rgb" ,rust-rgb-0.8)
+ ("rust-rle-decode-fast" ,rust-rle-decode-fast-1)
("rust-str-stack" ,rust-str-stack-0.1))
#:cargo-development-inputs
(("rust-assert-cmd" ,rust-assert-cmd-2)
- ("rust-criterion" ,rust-criterion-0.4)
+ ("rust-criterion" ,rust-criterion-0.5)
("rust-libflate" ,rust-libflate-2)
("rust-maplit" ,rust-maplit-1)
("rust-pretty-assertions" ,rust-pretty-assertions-1)
--
2.46.0
E
E
Efraim Flashner wrote on 10 Dec 16:37 +0100
Re: [bug#74767] [PATCH rust-team 02/23] build/cargo: Honor #:parallel-build? and #:parallel-tests? arguments.
(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)(address . 74767@debbugs.gnu.org)
Z1hgMHWbGp3qu4sH@3900XT
Attachment: file
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmdYYCwACgkQQarn3Mo9
g1F3/w//fPp4kGE89Fo7Hkxo2PCcQsGhNIVrr36VxN5NX/JeMWT5+fKP4zhEPlOe
aeLuAiw1E8uANaLqLQhWuRu/TxUo53MnDMvqExO7tFWXiQrxFTiNAHsAPbyjB7CL
Jgud0vzMprAq+6oHSiWNfLIgWO0QO+O+cp8DFkTHUztV0iZzUeZizF08XMnNdn4p
iUGTl8RyxHmJrqd3daGxyVrfBYcsK5PjSjZYZrhcNy1E7JzNPUuyAS/gmuiIBDGp
6x0bGxqOBh5GOVE9hstxbqk0aD0OPQlKyWA9+dEN4yWCLg2DLUwCYQQdm3uOuH7Z
aPiYCRkNwbpcpSux13QQu5kLx1attFVpKotBIDID1ThdOX9TqY2RW0YFr6WpOHtu
vunQF/f+ESZY3cV2YuvAGBxU4MEh5vTifQtHHIUwJBPwB+jN5OE2J2on4qKLyMxJ
Jnl+JbCCTt+dURVAitkixmZI2E71oT+lD4mXVfJ0OBAtmYYFTbORBElx2M6Omofe
ASyLLov7N1I8i/Pn6ltLFDv6wOg0VID76ZqA4fAalymjfvSu70lOohLDwbmzeTI+
sJP78HK7EGEW02q0YEeFLCa8JUBMPVCGYRlxNZAYdJElwHDCn0McgrXW3eZvxGqz
JZFMag0TNwAYHa62CL8GK0wtqUKPUT9g+NtHbjIRZNa2x12/7VQ=
=DwQY
-----END PGP SIGNATURE-----


M
M
Maxim Cournoyer wrote on 11 Dec 02:11 +0100
(name . Efraim Flashner)(address . efraim@flashner.co.il)(address . 74767@debbugs.gnu.org)
87v7vrgh0s.fsf@gmail.com
Hi Efraim,

Efraim Flashner <efraim@flashner.co.il> writes:

Toggle quote (3 lines)
> Should probably have cargo test not honor both parallel-build and
> parallel-tests at the same time.

According to the doc [0], these switches are different; -j will cause the
test binaries or other assets to be built in parallel, while
--test-threads will cause the parallelization of tests. I believe
that's the same we currently do for gnu-build-system.


Toggle quote (3 lines)
> Also, currently the builds and tests try to use all the cores available,
> so if parallel-{build,tests} is false it should go down to 1.

Good point. I'll fix that.

--
Thanks,
Maxim
M
M
Maxim Cournoyer wrote on 11 Dec 02:48 +0100
[PATCH PATCH rust-team v2 03/24] build/cargo: Honor #:parallel-build? and #:parallel-tests? arguments.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
4597d056c9b3549734f0dd6311b59775d286e2de.1733881750.git.maxim.cournoyer@gmail.com
* guix/build-system/cargo.scm (cargo-build): Add #:parallel-build? and
#:parallel-tests? arguments.
(cargo-cross-build): Likewise.
* guix/build/cargo-build-system.scm (build): Honor them.
(check): Likewise.

Change-Id: Idbee7aa3a6a7cd0fc222082837390b83cc8e8c07
---

Changes in v2:
- Set build number/threads to 1 when parallel build/test is disabled.

guix/build-system/cargo.scm | 9 +++++++++
guix/build/cargo-build-system.scm | 23 ++++++++++++++++++++---
2 files changed, 29 insertions(+), 3 deletions(-)

Toggle diff (101 lines)
diff --git a/guix/build-system/cargo.scm b/guix/build-system/cargo.scm
index f24ff6195e..ea841a34eb 100644
--- a/guix/build-system/cargo.scm
+++ b/guix/build-system/cargo.scm
@@ -6,6 +6,7 @@
;;; Copyright © 2019 Ivan Petkov <ivanppetkov@gmail.com>
;;; Copyright © 2020 Jakub K?dzio?ka <kuba@kadziolka.net>
;;; Copyright © 2021, 2024 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2024 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -95,6 +96,8 @@ (define* (cargo-build name inputs
(cargo-package-flags ''("--no-metadata" "--no-verify"))
(features ''())
(skip-build? #f)
+ (parallel-build? #t)
+ (parallel-tests? #t)
(install-source? #t)
(phases '%standard-phases)
(outputs '("out"))
@@ -122,6 +125,8 @@ (define* (cargo-build name inputs
#:cargo-target #$(cargo-triplet system)
#:features #$(sexp->gexp features)
#:skip-build? #$skip-build?
+ #:parallel-build? #$parallel-build?
+ #:parallel-tests? #$parallel-tests?
#:install-source? #$install-source?
#:tests? #$(and tests? (not skip-build?))
#:phases #$(if (pair? phases)
@@ -152,6 +157,8 @@ (define* (cargo-cross-build name
(cargo-target (cargo-triplet (or target system)))
(features ''())
(skip-build? #f)
+ (parallel-build? #t)
+ (parallel-tests? #t)
(install-source? (not (target-mingw? target)))
(phases '%standard-phases)
(outputs '("out"))
@@ -181,6 +188,8 @@ (define* (cargo-cross-build name
#:cargo-target #$(cargo-triplet (or target system))
#:features #$(sexp->gexp features)
#:skip-build? #$skip-build?
+ #:parallel-build? #$parallel-build?
+ #:parallel-tests? #$parallel-tests?
#:install-source? #$install-source?
#:tests? #$(and tests? (not skip-build?))
#:phases #$(if (pair? phases)
diff --git a/guix/build/cargo-build-system.scm b/guix/build/cargo-build-system.scm
index 84897393d9..37a64b07e8 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -5,6 +5,7 @@
;;; Copyright © 2019-2024 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2020 Jakub K?dzio?ka <kuba@kadziolka.net>
;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
+;;; Copyright © 2024 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -239,19 +240,35 @@ (define* (build #:key
(or skip-build?
(apply invoke
`("cargo" "build"
+ ,@(if parallel-build?
+ (list "-j" (number->string (parallel-job-count)))
+ (list "-j" "1"))
,@(if (null? features)
'()
`("--features" ,(string-join features)))
,@cargo-build-flags))))
(define* (check #:key
+ parallel-build?
+ parallel-tests?
tests?
(cargo-test-flags '("--release"))
#:allow-other-keys)
"Run tests for a given Cargo package."
- (if tests?
- (apply invoke "cargo" "test" cargo-test-flags)
- #t))
+ (when tests?
+ (apply invoke
+ `("cargo" "test"
+ ,@(if parallel-build?
+ (list "-j" (number->string (parallel-job-count)))
+ (list "-j" "1"))
+ ,@cargo-test-flags
+ ,@(if (member "--" cargo-test-flags)
+ '()
+ '("--"))
+ ,@(if parallel-tests?
+ (list "--test-threads"
+ (number->string (parallel-job-count)))
+ (list "--test-threads" "1"))))))
(define* (package #:key
source
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:48 +0100
[PATCH PATCH rust-team v2 01/24] gnu: rust-1.55: Use minimal variant of python-wrapper.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
3751e2473a8415293f3903c0aaa34362bc0b6f30.1733881750.git.maxim.cournoyer@gmail.com
This should help reduce the number of times rebuilding the rust bootstrap
chain from scratch is needed when updating packages.

* gnu/packages/rust.scm (rust-1.55) [native-inputs]: Replace python-wrapper
with python-minimal-wrapper.

Change-Id: I92c88192c75353b22f374d5c301776d2bcc6b1db
---

Changes in v2:
- New

gnu/packages/rust.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (17 lines)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index e6efd094e9..3ce8dd9d94 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -537,7 +537,7 @@ (define-public rust-1.55
suffix (,(string-append libc "/lib"))))))))))
(native-inputs
`(("pkg-config" ,pkg-config)
- ("python" ,python-wrapper)
+ ("python" ,python-minimal-wrapper)
("rustc-bootstrap" ,rust-bootstrap)
("cargo-bootstrap" ,rust-bootstrap "cargo")))
(inputs

base-commit: 44b044d5f22c2d7683bd6201aa6620a8ba51061a
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:48 +0100
[PATCH PATCH rust-team v2 02/24] build/cargo: Delete trailing #t in phases.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
c43b57b3e400ba1c8627c4e4e8750966d5782793.1733881750.git.maxim.cournoyer@gmail.com
* guix/build/cargo-build-system.scm (unpack-rust-crates): Delete trailing #t.
(configure, patch-cargo-checksums, package, install): Likewise.

Change-Id: I510a46b3d35cd292d71d5646d4a0436f7d77f98e
---

(no changes since v1)

guix/build/cargo-build-system.scm | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)

Toggle diff (60 lines)
diff --git a/guix/build/cargo-build-system.scm b/guix/build/cargo-build-system.scm
index 132a811f49..84897393d9 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -105,8 +105,7 @@ (define* (unpack-rust-crates #:key inputs vendor-dir #:allow-other-keys)
(for-each (lambda (crate)
(invoke "tar" "xzf" crate "-C" vendor-dir))
- (find-files "target/package" "\\.crate$"))))
- #t)
+ (find-files "target/package" "\\.crate$")))))
(define (rust-package? name)
(string-prefix? "rust-" name))
@@ -220,8 +219,7 @@ (define* (configure #:key inputs
;; during building, and in any case if one is not present it is created
;; during the 'build phase by cargo.
(when (file-exists? "Cargo.lock")
- (delete-file "Cargo.lock"))
- #t)
+ (delete-file "Cargo.lock")))
;; After the 'patch-generated-file-shebangs phase any vendored crates who have
;; their shebangs patched will have a mismatch on their checksum.
@@ -229,10 +227,10 @@ (define* (patch-cargo-checksums #:key
(vendor-dir "guix-vendor")
#:allow-other-keys)
"Patch the checksums of the vendored crates after patching their shebangs."
- (generate-all-checksums vendor-dir)
- #t)
+ (generate-all-checksums vendor-dir))
(define* (build #:key
+ parallel-build?
skip-build?
(features '())
(cargo-build-flags '("--release"))
@@ -311,8 +309,7 @@ (define* (package #:key
(find-files dir #:directories? #t))
(delete-file-recursively dir)))
(find-files "." "\\.crate$")))))
- (format #t "Not installing cargo sources, skipping `cargo package`.~%"))
- #t)
+ (format #t "Not installing cargo sources, skipping `cargo package`.~%")))
(define* (install #:key
inputs
@@ -348,9 +345,7 @@ (define* (install #:key
(for-each (lambda (crate)
(invoke "tar" "xzf" crate "-C" sources))
- (find-files registry "\\.crate$")))
-
- #t))
+ (find-files registry "\\.crate$")))))
(define %standard-phases
(modify-phases gnu:%standard-phases
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:48 +0100
[PATCH PATCH rust-team v2 06/24] gnu: Update rust-wasmparser to 0.218.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
68d63a27b9dfbabe4fe8db28d5de0d96b732167b.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-wasmparser-0.216): Replace with...
(rust-wasmparser-0.218): ... this. Add comment w.r.t. disabling tests.
(rust-wasmparser-0.118): Inherit from it, removing now duplicate fields.
(rust-object-0.36): Adjust accordingly.

Change-Id: I712c36a92d751447560c9c5ca9770c450cfc5030
---

(no changes since v1)

gnu/packages/crates-io.scm | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)

Toggle diff (52 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e02212980d..7461fba144 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -52174,7 +52174,7 @@ (define-public rust-object-0.36
("rust-rustc-std-workspace-alloc" ,rust-rustc-std-workspace-alloc-1)
("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1)
("rust-ruzstd" ,rust-ruzstd-0.7)
- ("rust-wasmparser" ,rust-wasmparser-0.216))))
+ ("rust-wasmparser" ,rust-wasmparser-0.218))))
(home-page "https://github.com/gimli-rs/object")
(synopsis "Unified interface for reading and writing object file formats")
(description
@@ -95732,20 +95732,23 @@ (define-public rust-wasm-sync-0.1
and native running processes.")
(license (list license:expat license:asl2.0))))
-(define-public rust-wasmparser-0.216
+(define-public rust-wasmparser-0.218
(package
(name "rust-wasmparser")
- (version "0.216.0")
+ (version "0.218.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "wasmparser" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "1qr8j1c15r208d9nsjw01x3w71m9i4g756djnhgk37b1lfzfdpmw"))))
+ (base32 "1p65jvj1i6bh180hd656z8yzkn3zx8vs3a6i5lmsgspczk3ld7mh"))))
(build-system cargo-build-system)
(arguments
- `(#:tests? #f ; failed to resolve: use of undeclared crate or module `wat`
+ ;; The test suite fails with error "failed to resolve: use of undeclared
+ ;; crate or module `wat`" (see:
+ ;; https://github.com/bytecodealliance/wasm-tools/issues/1947).
+ `(#:tests? #f
#:cargo-inputs (("rust-ahash" ,rust-ahash-0.8)
("rust-bitflags" ,rust-bitflags-2)
("rust-hashbrown" ,rust-hashbrown-0.14)
@@ -95768,7 +95771,7 @@ (define-public rust-wasmparser-0.216
(define-public rust-wasmparser-0.118
(package
- (inherit rust-wasmparser-0.216)
+ (inherit rust-wasmparser-0.218)
(name "rust-wasmparser")
(version "0.118.2")
(source
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:48 +0100
[PATCH PATCH rust-team v2 04/24] build/cargo: Resolve byte compilation warning.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
dec024b40dc8321b2e480899201a2cc10316a6cb.1733881750.git.maxim.cournoyer@gmail.com
* guix/build/cargo-build-system.scm: Hide `delete' symbol from (guix build
utils) import.

Change-Id: I75f0109a1a0984deb9888ec1c2b71cea4de22c76
---

Is this really OK? 'delete' is used in the modify-phases. I also read https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26805#16,which explains what exporting it became useful then. Not sure!

guix/build/cargo-build-system.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/guix/build/cargo-build-system.scm b/guix/build/cargo-build-system.scm
index 37a64b07e8..453d759470 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -25,7 +25,7 @@
(define-module (guix build cargo-build-system)
#:use-module ((guix build gnu-build-system) #:prefix gnu:)
#:use-module (guix build json)
- #:use-module (guix build utils)
+ #:use-module ((guix build utils) #:hide (delete))
#:use-module (guix build cargo-utils)
#:use-module (ice-9 popen)
#:use-module (ice-9 rdelim)
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:48 +0100
[PATCH PATCH rust-team v2 05/24] gnu: Add rust-read-process-memory-0.1.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
cb118417a388053bfe698bc5b77d82ffb8d615d7.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-read-process-memory-0.1): New variable.

Change-Id: Iee6386d28ea10a83ac769251a7341a6d0caccdc6
---

(no changes since v1)

gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)

Toggle diff (36 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 81667a660a..e02212980d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -86154,6 +86154,29 @@ (define-public rust-thread-priority-0.10
"Library for managing threads priority and schedule policies.")
(license license:expat)))
+(define-public rust-read-process-memory-0.1
+ (package
+ (name "rust-read-process-memory")
+ (version "0.1.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "read-process-memory" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1c1vmw8a2ywf7v96xfwbsyrnpk3fy8cc2a0rdxw8fs0b5wxni5w4"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-mach" ,rust-mach-0.3)
+ ("rust-winapi" ,rust-winapi-0.3))))
+ (home-page "https://github.com/rbspy/read-process-memory")
+ (synopsis "Read memory from another process")
+ (description "This package provides a crate that allows reading memory
+from another process.")
+ (license license:expat)))
+
(define-public rust-thread-tree-0.3
(package
(name "rust-thread-tree")
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:48 +0100
[PATCH PATCH rust-team v2 10/24] gnu: rust-syn-test-suite-0.0.0: Update to 0.0.0+test.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
8bb324e8bc326d757e6a9771a103df66b7c4fb12.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-syn-test-suite-0.0.0): Update to 0.0.0+test.

Change-Id: I30618df59eb75f033991155df86256c7a3aa1419
---

(no changes since v1)

gnu/packages/crates-io.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (23 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8718871f41..9a6aa1e261 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -82119,14 +82119,14 @@ (define-public rust-syn-derive-0.1
(define-public rust-syn-test-suite-0.0.0
(package
(name "rust-syn-test-suite")
- (version "0.0.0")
+ (version "0.0.0+test")
(source (origin
(method url-fetch)
(uri (crate-uri "syn-test-suite" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
- "15yz9q7rgxaplv0zbnanzyv1la4gmg47yq5wlkcwv3cck4qlncdm"))))
+ "1d9ffrbgci1qjdcpvgrsg3sh24qdsdh66zcsvn5prrk05ycn3mm0"))))
(build-system cargo-build-system)
(arguments (list #:skip-build? #t))
(home-page "https://github.com/dtolnay/syn")
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:48 +0100
[PATCH PATCH rust-team v2 07/24] gnu: rust-ruzstd-0.7: Update to 0.7.3.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
d721d1ebbccd63544135b2ca9e6db2593972dc80.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-ruzstd-0.7): Update to 0.7.3.

Change-Id: I5db86546237a2af5b619a14380a6298b956b8c8c
---

(no changes since v1)

gnu/packages/crates-io.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Toggle diff (27 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7461fba144..b9f35a9255 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -71253,17 +71253,17 @@ (define-public rust-rustyline-derive-0.3
(define-public rust-ruzstd-0.7
(package
(name "rust-ruzstd")
- (version "0.7.2")
+ (version "0.7.3")
(source
(origin
(method url-fetch)
(uri (crate-uri "ruzstd" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "08ffshmfmmcgijcg4w517clpsxwknga89inxjw4hgb1s2f797hwr"))))
+ (base32 "17z83lw00pd3190yvdk2lksdi7my6wc0psgg07is6gf7pyb2kl7s"))))
(build-system cargo-build-system)
(arguments
- `(#:tests? #f ; Not all files included.
+ `(#:tests? #f ;missing data files
#:cargo-inputs
(("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
("rust-rustc-std-workspace-alloc" ,rust-rustc-std-workspace-alloc-1)
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:48 +0100
[PATCH PATCH rust-team v2 11/24] gnu: rust-syn-2: Update to 2.0.90.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
82e38a66b242b61647224c2cd6c54b60593f654b.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-syn-2): Update to 2.0.90.
[arguments]: Update comment above #:tests? argument.

Change-Id: Ic37eef85baebb3e45610fcaad57e0ae622b221e9
---

(no changes since v1)

gnu/packages/crates-io.scm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

Toggle diff (29 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9a6aa1e261..ff615677cf 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -81886,18 +81886,18 @@ (define-public rust-symphonia-utils-xiph-0.4
(define-public rust-syn-2
(package
(name "rust-syn")
- (version "2.0.87")
+ (version "2.0.90")
(source (origin
(method url-fetch)
(uri (crate-uri "syn" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0bd3mfcswvn4jkrp7ich5kk58kmpph8412yxd36nsfnh8vilrai5"))))
+ (base32 "0cfg5dsr1x0hl6b9hz08jp1197mx0rq3xydqmqaws36xlms3p7ci"))))
(build-system cargo-build-system)
(arguments
;; Tests fail to compile
- ;; error[E0432]: unresolved imports `syn::Item`, `syn::Pat`
- `(#:tests? #false
+ ;; error[E0463]: can't find crate for `rustc_ast` (among other errors).
+ `(#:tests? #f
#:phases
(modify-phases %standard-phases
;; The syn-test-suite crate is empty.
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:48 +0100
[PATCH PATCH rust-team v2 08/24] gnu: rust-libc-0.2: Update to 0.2.168.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
ce3ca2ceb2b03b6f0ef95d721e7db29acba37ec2.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-libc-0.2): Update to 0.2.168.

Change-Id: If07c0bd242b012465728c7a44c2eb34fd81e75fb
---

(no changes since v1)

gnu/packages/crates-io.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (23 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b9f35a9255..9fdfc582af 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -40157,14 +40157,14 @@ (define-public rust-lexopt-0.3
(define-public rust-libc-0.2
(package
(name "rust-libc")
- (version "0.2.162")
+ (version "0.2.168")
(source
(origin
(method url-fetch)
(uri (crate-uri "libc" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "1633a00yyx45kzx9r54fndvr8njsjqyr7zl12mzgsmgyczg8glhq"))))
+ (base32 "0vab4inpw0dz78nii02hsxp1skqn06xzh64psw8wl1h63scb5bjs"))))
(build-system cargo-build-system)
(arguments
(list #:cargo-inputs
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:48 +0100
[PATCH PATCH rust-team v2 09/24] gnu: rust-proc-macro2-1: Update to 1.0.92.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
d8c99fd369d8fec864bbc498eb078f324e96d289.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-proc-macro2-1): Update to 1.0.92.

Change-Id: Ib126bce83336075dca0aea7165c6ee084b7180f9
---

(no changes since v1)

gnu/packages/crates-io.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (23 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9fdfc582af..8718871f41 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -60396,14 +60396,14 @@ (define-public rust-proc-macro-nested-0.1
(define-public rust-proc-macro2-1
(package
(name "rust-proc-macro2")
- (version "1.0.89")
+ (version "1.0.92")
(source
(origin
(method url-fetch)
(uri (crate-uri "proc-macro2" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0vlq56v41dsj69pnk7lil7fxvbfid50jnzdn3xnr31g05mkb0fgi"))))
+ (base32 "1c1vjy5wg8iy7kxsxda564qf4ljp0asysmbn2i7caj177x5m9lrp"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-test-flags '("--lib")
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:49 +0100
[PATCH PATCH rust-team v2 13/24] gnu: rust-object-0.36: Update to 0.36.5.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
ceb11be63513ca388576a0006628e6eeb4178a80.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-object-0.36): Update to 0.36.5.
[arguments]: Simply #:cargo-test-flags.
{#:cargo-inputs}: Update rust-hashbrown to 0.15.

Change-Id: I06b78b73115c4078acb0604c3ac6d45566d42d96
---

(no changes since v1)

gnu/packages/crates-io.scm | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)

Toggle diff (41 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3c94381ffe..110b9b15ca 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -52147,28 +52147,25 @@ (define-public rust-obj-0.9
(define-public rust-object-0.36
(package
(name "rust-object")
- (version "0.36.4")
+ (version "0.36.5")
(source
(origin
(method url-fetch)
(uri (crate-uri "object" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "02h7k38dwi8rndc3y81n6yjxijbss99p2jm9c0b6ak5c45c1lkq8"))))
+ (base32 "0gk8lhbs229c68lapq6w6qmnm4jkj48hrcw5ilfyswy514nhmpxf"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-test-flags
- '("--release" "--"
- ;; Not all files are included
- "--skip=read::coff::coff_extended_relocations"
- "--skip=read::elf::get_buildid_bad_elf"
- "--skip=read::elf::get_buildid_less_bad_elf"
- "--skip=read::macho::test_go_macho")
+ ;; The parse_self test correspond to the unit tests; the integration
+ ;; tests have some failures for unknown reasons.
+ '("--release" "parse_self" "--")
#:cargo-inputs
(("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
("rust-crc32fast" ,rust-crc32fast-1)
("rust-flate2" ,rust-flate2-1)
- ("rust-hashbrown" ,rust-hashbrown-0.14)
+ ("rust-hashbrown" ,rust-hashbrown-0.15)
("rust-indexmap" ,rust-indexmap-2)
("rust-memchr" ,rust-memchr-2)
("rust-rustc-std-workspace-alloc" ,rust-rustc-std-workspace-alloc-1)
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:49 +0100
[PATCH PATCH rust-team v2 14/24] gnu: rust-gimli-0.31: Update to 0.31.1.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
6bdc427fac9afff84199d16253e867ada6b22cba.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-gimli-0.31): Update to 0.31.1.

Change-Id: I47dd49c9ad00da7a1dc079c138c9eea5cc2e4600
---

(no changes since v1)

gnu/packages/crates-io.scm | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)

Toggle diff (36 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 110b9b15ca..7b9caa3903 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -31792,14 +31792,14 @@ (define-public rust-ghost-0.1
(define-public rust-gimli-0.31
(package
(name "rust-gimli")
- (version "0.31.0")
+ (version "0.31.1")
(source
(origin
(method url-fetch)
(uri (crate-uri "gimli" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0r1d55xdi1k2l5ah9p0n23i93pm47cl8apjm8rwgqd1j7yi5w21j"))))
+ (base32 "0gvqc0ramx8szv76jhfd4dms0zyamvlg4whhiz11j34hh3dqxqh7"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
@@ -31809,9 +31809,10 @@ (define-public rust-gimli-0.31
("rust-rustc-std-workspace-alloc" ,rust-rustc-std-workspace-alloc-1)
("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1)
("rust-stable-deref-trait" ,rust-stable-deref-trait-1))
- #:cargo-development-inputs (("rust-test-assembler" ,rust-test-assembler-0.1))))
+ #:cargo-development-inputs
+ (("rust-test-assembler" ,rust-test-assembler-0.1))))
(home-page "https://github.com/gimli-rs/gimli")
- (synopsis "Library for reading and writing the DWARF debugging format")
+ (synopsis "Library for reading and writing the DWARF debugging format.")
(description
"This package provides a library for reading and writing the DWARF
debugging format.")
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:48 +0100
[PATCH PATCH rust-team v2 12/24] gnu: Add rust-zerocopy-derive-0.8.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
f465af9d645b8a94a07fc79c9981a557418ce0d4.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-zerocopy-derive-0.8): New variable.
(rust-zerocopy-derive-0.7): Inherit from it.

Change-Id: Ia23684a67a84d656036c15d25d7634e6e49f05ab
---

(no changes since v1)

gnu/packages/crates-io.scm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

Toggle diff (33 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ff615677cf..3c94381ffe 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -98378,22 +98378,22 @@ (define-public rust-zerocopy-0.3
(define-public rust-zerocopy-derive-0.8
(package
(name "rust-zerocopy-derive")
- (version "0.8.9")
+ (version "0.8.13")
(source
(origin
(method url-fetch)
(uri (crate-uri "zerocopy-derive" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "1cd712qs5ccn6diy53ymk8vkprgcmnx1gvg3x3xsdxqxi362ywzs"))
+ (base32 "0pgjqk2w5wrw752wfsxgf7rwqjlk1r4vq5iky2fjijh38cxdg23r"))
(modules '((guix build utils)))
- (snippet
+ (snippet ;relax requirements
'(begin (substitute* "Cargo.toml"
(("\"= ?([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
(string-append "\"^" version)))))))
(build-system cargo-build-system)
(arguments
- `(#:tests? #f ; unresolved import `zerocopy`
+ `(#:tests? #f ;error[E0432]: unresolved import `zerocopy`
#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-quote" ,rust-quote-1)
("rust-syn" ,rust-syn-2))
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:49 +0100
[PATCH PATCH rust-team v2 15/24] gnu: Add rust-goblin-0.9.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
aac7fc5edb2e3f0d17d54735a6ec58bf690aa94a.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-goblin-0.9): New variable.
(rust-goblin-0.8): Inherit from it.

Change-Id: I8b856eff3d79a76afde1c985e6424949d44e6f2a
---

(no changes since v1)

gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)

Toggle diff (57 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7b9caa3903..62494dd453 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -32487,20 +32487,20 @@ (define-public rust-gmp-mpfr-sys-1
libraries GMP, MPFR, and MPC.")
(license license:lgpl3+)))
-(define-public rust-goblin-0.8
+(define-public rust-goblin-0.9
(package
(name "rust-goblin")
- (version "0.8.0")
+ (version "0.9.2")
(source
(origin
(method url-fetch)
(uri (crate-uri "goblin" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "11wqipqx0dbimxy5612nxpx79qja43sxic95llcb34r0xpzs81xv"))))
+ (base32 "08yrnjj5j4nddh6y1r8kf35ys7p3iwg6npga3nc4cwfps4r3zask"))))
(build-system cargo-build-system)
(arguments
- `(#:tests? #f ; Not all files included.
+ `(#:tests? #f ;there are missing data files
#:cargo-inputs (("rust-log" ,rust-log-0.4)
("rust-plain" ,rust-plain-0.2)
("rust-scroll" ,rust-scroll-0.12))
@@ -32511,6 +32511,25 @@ (define-public rust-goblin-0.8
and loading crate.")
(license license:expat)))
+(define-public rust-goblin-0.8
+ (package
+ (inherit rust-goblin-0.9)
+ (name "rust-goblin")
+ (version "0.8.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "goblin" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "11wqipqx0dbimxy5612nxpx79qja43sxic95llcb34r0xpzs81xv"))))
+ (arguments
+ `(#:tests? #f ; Not all files included.
+ #:cargo-inputs (("rust-log" ,rust-log-0.4)
+ ("rust-plain" ,rust-plain-0.2)
+ ("rust-scroll" ,rust-scroll-0.12))
+ #:cargo-development-inputs (("rust-stderrlog" ,rust-stderrlog-0.5))))))
+
(define-public rust-goblin-0.7
(package
(inherit rust-goblin-0.8)
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:49 +0100
[PATCH PATCH rust-team v2 16/24] gnu: Add rust-proc-maps-0.4.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
430f60a845952536631ac4bc3b4404c5eb6c40ee.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-proc-maps-0.4): New variable.

Change-Id: I4fc7d6b5369181d839083d40b87b21373b8b95ba
---

(no changes since v1)

gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)

Toggle diff (38 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 62494dd453..010a5ce78a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -60532,6 +60532,31 @@ (define-public rust-proc-macro2-diagnostics-0.9
("rust-yansi" ,rust-yansi-0.5))
#:cargo-development-inputs (("rust-trybuild" ,rust-trybuild-1))))))
+(define-public rust-proc-maps-0.4
+ (package
+ (name "rust-proc-maps")
+ (version "0.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "proc-maps" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1ys4dj9wzqj6z5k7i28qy7l2ff224znvjfyrzhjkl68flrd4rd1x"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+ ("rust-bindgen" ,rust-bindgen-0.70)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-libproc" ,rust-libproc-0.14)
+ ("rust-mach2" ,rust-mach2-0.4)
+ ("rust-winapi" ,rust-winapi-0.3))))
+ (home-page "https://github.com/rbspy/proc-maps")
+ (synopsis "Helper crate for getting virtual memory maps from processes")
+ (description "This package provides a helper crate for getting virtual
+memory maps from processes.")
+ (license license:expat)))
+
(define-public rust-proc-mounts-0.3
(package
(name "rust-proc-mounts")
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:49 +0100
[PATCH PATCH rust-team v2 17/24] gnu: Add rust-mark-flaky-tests-macro-1.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
41903ed174d0758b31126f3d21c8569e60d81e84.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-check.scm: New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Register it.
---

(no changes since v1)

gnu/local.mk | 1 +
gnu/packages/crates-check.scm | 58 +++++++++++++++++++++++++++++++++++
2 files changed, 59 insertions(+)
create mode 100644 gnu/packages/crates-check.scm

Toggle diff (78 lines)
diff --git a/gnu/local.mk b/gnu/local.mk
index a7bd32453b..654d5fdaaa 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -210,6 +210,7 @@ GNU_SYSTEM_MODULES = \
%D%/packages/cppi.scm \
%D%/packages/cran.scm \
%D%/packages/crates-apple.scm \
+ %D%/packages/crates-check.scm \
%D%/packages/crates-crypto.scm \
%D%/packages/crates-io.scm \
%D%/packages/crates-graphics.scm \
diff --git a/gnu/packages/crates-check.scm b/gnu/packages/crates-check.scm
new file mode 100644
index 0000000000..663a25ccc3
--- /dev/null
+++ b/gnu/packages/crates-check.scm
@@ -0,0 +1,58 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2024 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
+
+;;;
+;;; Please: Try to add new module packages in alphabetic order.
+;;;
+
+(define-module (gnu packages crates-check)
+ #:use-module (guix build-system cargo)
+ #:use-module (guix download)
+ #:use-module ((guix licenses) #:prefix license:)
+ #:use-module (guix packages)
+ #:use-module (gnu packages crates-io))
+
+(define-public rust-mark-flaky-tests-macro-1
+ (package
+ (name "rust-mark-flaky-tests-macro")
+ (version "1.0.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "mark-flaky-tests-macro" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "115bb0pb4vb8pwm6lblcnc6zxxlk6w654njiphp696dj2vyiz2q7"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-proc-macro-crate" ,rust-proc-macro-crate-1)
+ ("rust-proc-macro-error" ,rust-proc-macro-error-1)
+ ("rust-proc-macro2" ,rust-proc-macro2-1)
+ ("rust-quote" ,rust-quote-1)
+ ("rust-syn" ,rust-syn-2))))
+ (home-page "https://github.com/GoldsteinE/mark-flaky-tests/")
+ (synopsis "Mark, debug and auto-retry your flaky tests (proc-macro crate)")
+ (description
+ "This package provides Mark, debug and auto-retry your flaky tests (proc-macro crate).")
+ (license (list license:expat license:asl2.0))))
+
+;;;
+;;; Avoid adding new packages to the end of this file. To reduce the chances
+;;; of a merge conflict, place them above by existing packages with similar
+;;; functionality or similar names.
+;;;
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:49 +0100
[PATCH PATCH rust-team v2 18/24] gnu: Add rust-mark-flaky-tests-1.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
445ece945ba260d26fed94302e4b4e0a9d183cb5.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-check.scm (rust-mark-flaky-tests-1): New variable.

Change-Id: I85a28276548bacff3ccfdabe2b1bc62b47566f2e
---

(no changes since v1)

gnu/packages/crates-check.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)

Toggle diff (36 lines)
diff --git a/gnu/packages/crates-check.scm b/gnu/packages/crates-check.scm
index 663a25ccc3..d59760fc2f 100644
--- a/gnu/packages/crates-check.scm
+++ b/gnu/packages/crates-check.scm
@@ -51,6 +51,29 @@ (define-public rust-mark-flaky-tests-macro-1
"This package provides Mark, debug and auto-retry your flaky tests (proc-macro crate).")
(license (list license:expat license:asl2.0))))
+(define-public rust-mark-flaky-tests-1
+ (package
+ (name "rust-mark-flaky-tests")
+ (version "1.0.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "mark-flaky-tests" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0c29bflpb5aawl5vzcai2rhvphskvh7gdr5v9sq52lx0jmy4lv2q"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-futures" ,rust-futures-0.3)
+ ("rust-mark-flaky-tests-macro" ,rust-mark-flaky-tests-macro-1))
+ #:cargo-development-inputs (("rust-paste" ,rust-paste-1)
+ ("rust-tokio" ,rust-tokio-1))))
+ (home-page "https://github.com/GoldsteinE/mark-flaky-tests/")
+ (synopsis "Mark, debug and auto-retry your flaky tests")
+ (description
+ "This package provides Mark, debug and auto-retry your flaky tests.")
+ (license (list license:expat license:asl2.0))))
+
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:49 +0100
[PATCH PATCH rust-team v2 21/24] gnu: rust-rle-decode-fast-1: Update to 1.0.3.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
a608f2a1685732b000063535159ad2c425548ab3.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-rle-decode-fast-1): Update to 1.0.3.

Change-Id: I274deddb0cef0218c99a869c4513b6e6aab14a22
---

(no changes since v1)

gnu/packages/crates-io.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (23 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 93c346086a..5a75c0b8ef 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -67280,14 +67280,14 @@ (define-public rust-ringbuf-0.2
(define-public rust-rle-decode-fast-1
(package
(name "rust-rle-decode-fast")
- (version "1.0.1")
+ (version "1.0.3")
(source
(origin
(method url-fetch)
(uri (crate-uri "rle-decode-fast" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "1b4h7qs4mssc5dnlhs3f91ya8pb40bv72zzshl18gify2jllzgna"))))
+ (base32 "08kljzl29rpm12fiz0qj5pask49aiswdvcjigdcq73s224rgd0im"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:49 +0100
[PATCH PATCH rust-team v2 19/24] gnu: Add rust-remoteprocess-0.5.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
5d4080b1d84b16e606b8aa46bc8fa18887e9a4c4.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-remoteprocess-0.5): New variable.

Change-Id: I0accd08b4eee79fcd2fc226c223f7486b0132824
---

(no changes since v1)

gnu/packages/crates-io.scm | 39 ++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)

Toggle diff (59 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 010a5ce78a..f438ed12af 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -83,6 +83,7 @@ (define-module (gnu packages crates-io)
#:use-module (gnu packages compression)
#:use-module (gnu packages cpp)
#:use-module (gnu packages crates-apple)
+ #:use-module (gnu packages crates-check)
#:use-module (gnu packages crates-crypto)
#:use-module (gnu packages crates-graphics)
#:use-module (gnu packages crates-gtk)
@@ -66827,6 +66828,44 @@ (define-public rust-relative-path-1
(description "This package provides portable, relative paths for Rust.")
(license (list license:expat license:asl2.0))))
+(define-public rust-remoteprocess-0.5
+ (package
+ (name "rust-remoteprocess")
+ (version "0.5.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "remoteprocess" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "087z016qvypalbqjgdxmri97vsrqg4k1kpmc8b5d5hdgqxq4f6g6"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-addr2line" ,rust-addr2line-0.24)
+ ("rust-cfg-if" ,rust-cfg-if-1)
+ ("rust-goblin" ,rust-goblin-0.9)
+ ("rust-lazy-static" ,rust-lazy-static-1)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-libproc" ,rust-libproc-0.14)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-mach" ,rust-mach-0.3)
+ ("rust-mach-o-sys" ,rust-mach-o-sys-0.1)
+ ("rust-memmap2" ,rust-memmap2-0.9)
+ ("rust-nix" ,rust-nix-0.26)
+ ("rust-object" ,rust-object-0.36)
+ ("rust-proc-maps" ,rust-proc-maps-0.4)
+ ("rust-read-process-memory" ,rust-read-process-memory-0.1)
+ ("rust-regex" ,rust-regex-1)
+ ("rust-winapi" ,rust-winapi-0.3))
+ #:cargo-development-inputs
+ (("rust-mark-flaky-tests" ,rust-mark-flaky-tests-1))))
+ (home-page "https://github.com/benfred/remoteprocess")
+ (synopsis "Library for getting information on running processes")
+ (description "This package provides an API for getting information on
+running processes.")
+ (license license:expat)))
+
(define-public rust-rend-0.3
(package
(name "rust-rend")
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:49 +0100
[PATCH PATCH rust-team v2 23/24] gnu: Add rust-py-spy-testdata-0.1.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
fa54b6583be228410ac191aa604a9d97092adfa9.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/rust-apps.scm (rust-py-spy-testdata-0.1): New variable.

Change-Id: Ic7aff58e69e84c28f967d935c409e2981fdf6f1e
---

(no changes since v1)

gnu/packages/rust-apps.scm | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)

Toggle diff (42 lines)
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 297111d867..eb43ca8d23 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -12,7 +12,7 @@
;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus@gmail.ccom>
;;; Copyright © 2021, 2022 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2021 Alexandru-Sergiu Marton <brown121407@posteo.ro>
-;;; Copyright © 2021, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2021, 2023, 2024 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021, 2022 Petr Hodina <phodina@protonmail.com>
;;; Copyright © 2021 jgart <jgart@dismail.de>
;;; Copyright © 2021 Nicolas Graves <ngraves@ngraves.fr>
@@ -2124,6 +2124,26 @@ (define-public ouch
decompressing files and directories.")
(license license:expat)))
+(define-public rust-py-spy-testdata-0.1
+ (hidden-package ;uninteresting for users
+ (package
+ (name "rust-py-spy-testdata")
+ (version "0.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "py-spy-testdata" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "18d880f2rjdd42828srh97vpvlrs9pg23j28gphw9qd2w3bp128q"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t))
+ (home-page "https://github.com/benfred/py-spy-testdata")
+ (synopsis "Python coredumps for testing py-spy")
+ (description "This package provides Python coredumps for testing py-spy.")
+ (license license:expat))))
+
(define-public ripgrep
(package
(name "ripgrep")
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:49 +0100
[PATCH PATCH rust-team v2 22/24] gnu: rust-inferno-0.11: Update to 0.11.21.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
f3d747fadf97a8d71001d6a12c357f85ff853c5f.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-inferno-0.11): Update to 0.11.21.

Change-Id: I4ab157a33263c7d1b6a6671295196c8d1c2c9ba2
---

(no changes since v1)

gnu/packages/crates-io.scm | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

Toggle diff (49 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 5a75c0b8ef..6ddd081e65 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -36385,14 +36385,14 @@ (define-public rust-infer-0.2
(define-public rust-inferno-0.11
(package
(name "rust-inferno")
- (version "0.11.19")
+ (version "0.11.21")
(source
(origin
(method url-fetch)
(uri (crate-uri "inferno" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "1ndqcz0p6n4gqrqlq53j42v516nnnii0ljshx634cjnlkj1hy7rj"))))
+ (base32 "126v1njhhx1shw0ammn3ngxxp20dmlb78p1xd9brks2zszhjja93"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-test-flags
@@ -36407,8 +36407,8 @@ (define-public rust-inferno-0.11
("rust-clap" ,rust-clap-4)
("rust-crossbeam-channel" ,rust-crossbeam-channel-0.5)
("rust-crossbeam-utils" ,rust-crossbeam-utils-0.8)
- ("rust-dashmap" ,rust-dashmap-5)
- ("rust-env-logger" ,rust-env-logger-0.10)
+ ("rust-dashmap" ,rust-dashmap-6)
+ ("rust-env-logger" ,rust-env-logger-0.11)
("rust-indexmap" ,rust-indexmap-2)
("rust-is-terminal" ,rust-is-terminal-0.4)
("rust-itoa" ,rust-itoa-1)
@@ -36416,11 +36416,13 @@ (define-public rust-inferno-0.11
("rust-num-format" ,rust-num-format-0.4)
("rust-once-cell" ,rust-once-cell-1)
("rust-quick-xml" ,rust-quick-xml-0.26)
+ ("rust-regex" ,rust-regex-1)
("rust-rgb" ,rust-rgb-0.8)
+ ("rust-rle-decode-fast" ,rust-rle-decode-fast-1)
("rust-str-stack" ,rust-str-stack-0.1))
#:cargo-development-inputs
(("rust-assert-cmd" ,rust-assert-cmd-2)
- ("rust-criterion" ,rust-criterion-0.4)
+ ("rust-criterion" ,rust-criterion-0.5)
("rust-libflate" ,rust-libflate-2)
("rust-maplit" ,rust-maplit-1)
("rust-pretty-assertions" ,rust-pretty-assertions-1)
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:49 +0100
[PATCH PATCH rust-team v2 20/24] gnu: Add rust-lru-0.10.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
7a0b72b55a536b5516ce4c9213a40bcef7c511ca.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/crates-io.scm (rust-lru-0.10): New variable.
(rust-lru-0.9): Inherit from it.

Change-Id: I74de3fb4266a851e8c025c3ef8e0a667971ed237
---

(no changes since v1)

gnu/packages/crates-io.scm | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)

Toggle diff (36 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f438ed12af..93c346086a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -43183,10 +43183,28 @@ (define-public rust-lru-0.12
(description "This package provides a LRU cache implementation.")
(license license:expat)))
-(define-public rust-lru-0.9
+(define-public rust-lru-0.10
(package
(inherit rust-lru-0.12)
(name "rust-lru")
+ (version "0.10.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "lru" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0w5n2sgh66ac8ihqv6688mlm7zb3ks18jlbzpbhwgw3x8jp8z3ki"))))
+ (arguments
+ `(#:cargo-inputs (("rust-hashbrown" ,rust-hashbrown-0.13))
+ #:cargo-development-inputs
+ (("rust-scoped-threadpool" ,rust-scoped-threadpool-0.1)
+ ("rust-stats-alloc" ,rust-stats-alloc-0.1))))))
+
+(define-public rust-lru-0.9
+ (package
+ (inherit rust-lru-0.10)
+ (name "rust-lru")
(version "0.9.0")
(source
(origin
--
2.46.0
M
M
Maxim Cournoyer wrote on 11 Dec 02:49 +0100
[PATCH PATCH rust-team v2 24/24] gnu: Add py-spy.
(address . 74767@debbugs.gnu.org)(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
c58d57cfbac6786ea4525b79acc16245c901cf87.1733881750.git.maxim.cournoyer@gmail.com
* gnu/packages/rust-apps.scm (py-spy): New variable.

Change-Id: I41876fd3c83da27cece7c0fe4812248c3c4467df
---

(no changes since v1)

gnu/packages/rust-apps.scm | 51 ++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)

Toggle diff (71 lines)
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index eb43ca8d23..2bd8db2565 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -91,6 +91,7 @@ (define-module (gnu packages rust-apps)
#:use-module (gnu packages jemalloc)
#:use-module (gnu packages kde)
#:use-module (gnu packages libusb)
+ #:use-module (gnu packages libunwind)
#:use-module (gnu packages linux)
#:use-module (gnu packages llvm)
#:use-module (gnu packages networking)
@@ -2144,6 +2145,56 @@ (define-public rust-py-spy-testdata-0.1
(description "This package provides Python coredumps for testing py-spy.")
(license license:expat))))
+(define-public py-spy
+ (package
+ (name "py-spy")
+ (version "0.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "py-spy" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0fvdmrqp4qand1zb9cwks8hpkysdqajrdh9y7ks15c78985k1x64"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+ ("rust-chrono" ,rust-chrono-0.4)
+ ("rust-clap" ,rust-clap-3)
+ ("rust-clap-complete" ,rust-clap-complete-3)
+ ("rust-console" ,rust-console-0.15)
+ ("rust-cpp-demangle" ,rust-cpp-demangle-0.4)
+ ("rust-ctrlc" ,rust-ctrlc-3)
+ ("rust-env-logger" ,rust-env-logger-0.10)
+ ("rust-goblin" ,rust-goblin-0.9)
+ ("rust-indicatif" ,rust-indicatif-0.17)
+ ("rust-inferno" ,rust-inferno-0.11)
+ ("rust-lazy-static" ,rust-lazy-static-1)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-lru" ,rust-lru-0.10)
+ ("rust-memmap2" ,rust-memmap2-0.9)
+ ("rust-num-traits" ,rust-num-traits-0.2)
+ ("rust-proc-maps" ,rust-proc-maps-0.4)
+ ("rust-rand" ,rust-rand-0.8)
+ ("rust-rand-distr" ,rust-rand-distr-0.4)
+ ("rust-regex" ,rust-regex-1)
+ ("rust-remoteprocess" ,rust-remoteprocess-0.5)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-derive" ,rust-serde-derive-1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-tempfile" ,rust-tempfile-3)
+ ("rust-termios" ,rust-termios-0.3)
+ ("rust-winapi" ,rust-winapi-0.3))
+ #:cargo-development-inputs (("rust-py-spy-testdata" ,rust-py-spy-testdata-0.1))))
+ (native-inputs (list python-minimal-wrapper))
+ (inputs (list libunwind))
+ (home-page "https://github.com/benfred/py-spy")
+ (synopsis "Sampling profiler for Python programs")
+ (description
+ "This package provides Sampling profiler for Python programs.")
+ (license license:expat)))
+
(define-public ripgrep
(package
(name "ripgrep")
--
2.46.0
E
E
Efraim Flashner wrote 7 days ago
(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)(address . 74767-done@debbugs.gnu.org)
Z2MZ57xUviz7DKT1@3900XT
Thanks. Patches pushed to the rust-team branch.

--
Efraim Flashner <efraim@flashner.co.il> ????? ?????
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmdjGeMACgkQQarn3Mo9
g1H6Wg/+Jp75EvmSlrmacvTCvmxTzQHqZWgijimQ3U91bp0tlh2C1ap/xux94MqZ
+VYAXxQBdJ/ldgDTWnTTgcrVsDOMC1Qk8vK5JCHoN1tNgM2hMlnB7FgEpKX+z3CJ
/Sg5arF900qPRKZ/60kQOry1DbnTemuI29A/MJmnY5k+tjwuMfxUgL8InXbeJVer
ErcA3wLHLcGhfThlANNlD2SGxy3HKw1c2j64YCFXikXfEW4NNxp+VGY+LfDk46a4
TJ5n0zti6R96DOH6+JbiILvItpI7u5GI1RtsYPxlGa3pVRClF67JED1TKYx7jB+4
gCERU18PO4Oe9uko9L0Na4TohJkd0lGVGYR0mhk2Cxhkk31qo4JmZoru6pBOfTqV
2gzuLKrX6b5obg8+tF27iNHb7SUHHSBceCmHqtODdU9vR7MRuSROd8EiJDVXtf3H
Sn9ejQ/p35gPoU8YF87sBaOg7jYPJ79zy2AVNWn/A5SjOxf2vMBg4wJNlClpAqQl
Zv2cHPHRBLv165odgtV87MCypZrIChMD5k3vHHUI4LbRDRZrf8+n9vv3xlqmxp7F
E9BqRX+EkJxXAyVl7sqO07eF5XjgGChaK3lDiGjq4gLBO5Jz3ojYKImC58wfGv0S
cgWRwXT3NZqET5hMfVSYuuUamtpYfJzHg2NpgXWhev9FD5Rz2CI=
=RS0M
-----END PGP SIGNATURE-----


Closed
M
M
Maxim Cournoyer wrote 6 days ago
(name . Efraim Flashner)(address . efraim@flashner.co.il)(address . 74767-done@debbugs.gnu.org)
878qsco2w0.fsf@gmail.com
Hello,

Efraim Flashner <efraim@flashner.co.il> writes:

Toggle quote (2 lines)
> Thanks. Patches pushed to the rust-team branch.

Thank you, rust team (ha!) :-)

--
Thanks,
Maxim
Closed
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 74767@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 74767
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch