[PATCH rust-team 00/37] Add egui, gilrs and dependencies.

  • Open
  • quality assurance status badge
Details
One participant
  • Herman Rimm
Owner
unassigned
Submitted by
Herman Rimm
Severity
normal
H
H
Herman Rimm wrote on 14 Mar 21:53 +0100
(address . guix-patches@gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314205319.5948-1-herman@rimm.ee
I successfully built all these packages natively a month ago. I patched
out dependencies that add support for other platforms.

Cheers,
Herman

Herman Rimm (37):
gnu: Add rust-rename-item-0.1.
gnu: Add rust-serde-plain-1.
gnu: Add rust-atspi-common-0.3.
gnu: Add rust-warp-0.3.
gnu: Add rust-webdriver-0.46.
gnu: Add rust-fantoccini-0.19.
gnu: Add rust-atspi-proxies-0.3.
gnu: Add rust-atspi-connection-0.3.
gnu: Add rust-atspi-0.19.
gnu: Add rust-enumn-0.1.
gnu: Add rust-accesskit-0.12.
gnu: Add rust-accesskit-consumer-0.16.
gnu: Add rust-accesskit-unix-0.6.
gnu: Add rust-accesskit-winit-0.16.
gnu: rust-nix-0.26: Update to 0.26.4.
gnu: Add rust-wl-clipboard-rs-0.8.
gnu: Add rust-arboard-3.
gnu: Add rust-x11rb-0.9.
gnu: Add rust-arboard-2.
gnu: Add rust-litrs-0.4.
gnu: rust-document-features-0.2: Update to 0.2.8.
gnu: Add rust-nohash-hasher-0.2.
gnu: Add rust-puffin-0.19.
gnu: Add rust-emath-0.26.
gnu: Add rust-color-hex-0.2.
gnu: Add rust-ecolor-0.26.
gnu: Add rust-epaint-0.26.
gnu: Add rust-egui-0.26.
gnu: Add rust-egui-winit-0.26.
gnu: Add rust-glow-0.13.
gnu: Add rust-egui-glow-0.26.
gnu: Add rust-glutin-winit-0.4.
gnu: Add rust-eframe-0.26.
gnu: Add rust-egui-plot-0.26.
gnu: Add rust-libudev-sys-0.1.
gnu: Add rust-gilrs-core-0.5.
gnu: Add rust-gilrs-0.10.

gnu/local.mk | 5 +
gnu/packages/crates-graphics.scm | 73 +-
gnu/packages/crates-io.scm | 913 +++++++++++++++++-
gnu/packages/crates-web.scm | 127 ++-
.../rust-accesskit-winit-unix-only.patch | 22 +
.../patches/rust-arboard-2-unix-only.patch | 53 +
.../patches/rust-arboard-3-unix-only.patch | 54 ++
.../patches/rust-eframe-unix-only.patch | 152 +++
.../patches/rust-gilrs-core-unix-only.patch | 57 ++
9 files changed, 1401 insertions(+), 55 deletions(-)
create mode 100644 gnu/packages/patches/rust-accesskit-winit-unix-only.patch
create mode 100644 gnu/packages/patches/rust-arboard-2-unix-only.patch
create mode 100644 gnu/packages/patches/rust-arboard-3-unix-only.patch
create mode 100644 gnu/packages/patches/rust-eframe-unix-only.patch
create mode 100644 gnu/packages/patches/rust-gilrs-core-unix-only.patch

--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 02/37] gnu: Add rust-serde-plain-1.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-2-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-serde-plain-1): Add variable.
---
gnu/packages/crates-io.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)

Toggle diff (35 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7797660988..9cc0d61f1e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -60874,6 +60874,28 @@ (define-public rust-serde-path-to-error-0.1
"This package provides a path to the element that failed to deserialize.")
(license (list license:expat license:asl2.0))))
+(define-public rust-serde-plain-1
+ (package
+ (name "rust-serde-plain")
+ (version "1.0.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "serde_plain" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0l4d4nbw00pz6n43icrc605bhgynfmlyq39sn8i10qasnrnzrqcw"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-serde" ,rust-serde-1))
+ #:cargo-development-inputs
+ (("rust-serde-derive" ,rust-serde-derive-1))))
+ (home-page "https://docs.rs/serde_plain")
+ (synopsis "Restricted plain text serializer for serde")
+ (description
+ "This package provides a restricted plain text serializer for serde")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-serde-qs-0.7
(package
(name "rust-serde-qs")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 03/37] gnu: Add rust-atspi-common-0.3.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-3-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-atspi-common-0.3): Add variable.

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

Toggle diff (49 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9cc0d61f1e..6d0617823d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -5192,6 +5192,42 @@ (define-public rust-atty-0.2
"This package provides a simple interface for querying atty.")
(license license:expat)))
+(define-public rust-atspi-common-0.3
+ (package
+ (name "rust-atspi-common")
+ (version "0.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "atspi-common" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1xfdn94r697l98669gsq04rpfxysivkc4cn65fb1yhyjcvwrbbwj"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-enumflags2" ,rust-enumflags2-0.7)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-static-assertions" ,rust-static-assertions-1)
+ ("rust-zbus" ,rust-zbus-3)
+ ("rust-zbus-names" ,rust-zbus-names-2)
+ ("rust-zvariant" ,rust-zvariant-3))
+ #:cargo-development-inputs
+ (("rust-byteorder" ,rust-byteorder-1)
+ ("rust-rename-item" ,rust-rename-item-0.1)
+ ("rust-serde-plain" ,rust-serde-plain-1)
+ ("rust-static-assertions" ,rust-static-assertions-1)
+ ("rust-tokio" ,rust-tokio-1)
+ ("rust-tokio-stream" ,rust-tokio-stream-0.1)
+ ("rust-tokio-test" ,rust-tokio-test-0.4)
+ ("rust-zbus" ,rust-zbus-3))))
+ (home-page "https://github.com/odilia-app/atspi")
+ (synopsis "Primitive types to transmit Linux accessibility events.")
+ (description
+ "This package provides primitive types used for sending and receiving
+Linux accessibility events.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-auto-impl-0.5
(package
(name "rust-auto-impl")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 04/37] gnu: Add rust-warp-0.3.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-4-herman@rimm.ee
* gnu/packages/crates-web.scm (rust-warp-0.3): Add variable.
(rust-warp-0.2): Inherit from rust-warp-0.3.

Change-Id: I5f3683ac83fd4d607b3095285f263eb889ece61e
---
gnu/packages/crates-web.scm | 53 ++++++++++++++++++++++++++++++++-----
1 file changed, 47 insertions(+), 6 deletions(-)

Toggle diff (82 lines)
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 60c735efa7..752364ddb7 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -5551,8 +5551,54 @@ (define-public rust-typed-headers-0.1
("rust-http" ,rust-http-0.1)
("rust-mime" ,rust-mime-0.3))))))
+(define-public rust-warp-0.3
+ (package
+ (name "rust-warp")
+ (version "0.3.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "warp" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0sfimrpxkyka1mavfhg5wa4x977qs8vyxa510c627w9zw0i2xsf1"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-async-compression" ,rust-async-compression-0.3)
+ ("rust-bytes" ,rust-bytes-1)
+ ("rust-futures-channel" ,rust-futures-channel-0.3)
+ ("rust-futures-util" ,rust-futures-util-0.3)
+ ("rust-headers" ,rust-headers-0.3)
+ ("rust-http" ,rust-http-0.2)
+ ("rust-hyper" ,rust-hyper-0.14)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-mime" ,rust-mime-0.3)
+ ("rust-mime-guess" ,rust-mime-guess-2)
+ ("rust-multer" ,rust-multer-2)
+ ("rust-percent-encoding" ,rust-percent-encoding-2)
+ ("rust-pin-project" ,rust-pin-project-1)
+ ("rust-rustls-pemfile" ,rust-rustls-pemfile-1)
+ ("rust-scoped-tls" ,rust-scoped-tls-1)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-serde-urlencoded" ,rust-serde-urlencoded-0.7)
+ ("rust-tokio" ,rust-tokio-1)
+ ("rust-tokio-rustls" ,rust-tokio-rustls-0.24)
+ ("rust-tokio-stream" ,rust-tokio-stream-0.1)
+ ("rust-tokio-tungstenite" ,rust-tokio-tungstenite-0.20)
+ ("rust-tokio-util" ,rust-tokio-util-0.7)
+ ("rust-tower-service" ,rust-tower-service-0.3)
+ ("rust-tracing" ,rust-tracing-0.1))))
+ (home-page "https://github.com/seanmonstar/warp")
+ (synopsis "Serve the web at warp speeds")
+ (description "Warp is a composable, web server framework.")
+ (license license:expat)))
+
(define-public rust-warp-0.2
(package
+ (inherit rust-warp-0.3)
(name "rust-warp")
(version "0.2.5")
(source
@@ -5562,7 +5608,6 @@ (define-public rust-warp-0.2
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "01wl8kv5hh1dd7gcwdrmn9xfs7jjsh9yc8xa06ph8yf9akgyc6zl"))))
- (build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
@@ -5587,11 +5632,7 @@ (define-public rust-warp-0.2
("rust-tower-service" ,rust-tower-service-0.3)
("rust-tracing" ,rust-tracing-0.1)
("rust-tracing-futures" ,rust-tracing-futures-0.2)
- ("rust-urlencoding" ,rust-urlencoding-1))))
- (home-page "https://github.com/seanmonstar/warp")
- (synopsis "Composable web server framework")
- (description "Warp is a composable, web server framework.")
- (license license:expat)))
+ ("rust-urlencoding" ,rust-urlencoding-1))))))
(define-public rust-web-view-0.7
(package
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 05/37] gnu: Add rust-webdriver-0.46.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-5-herman@rimm.ee
* gnu/packages/crates-web.scm (rust-webdriver-0.46): Add variable.

Change-Id: Iec56f3d4aeba97037bea0164fa27eb991f3b4016
---
gnu/packages/crates-web.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)

Toggle diff (50 lines)
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 752364ddb7..665e3747eb 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -5677,6 +5677,43 @@ (define-public rust-web-view-0.7
applications.")
(license license:expat)))
+(define-public rust-webdriver-0.46
+ (package
+ (name "rust-webdriver")
+ (version "0.46.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "webdriver" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0gy98p6b09n6hv590v2yf8vxqxv1sdiyd4fvxzamlzaqr1rcnwwr"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-base64" ,rust-base64-0.13)
+ ("rust-bytes" ,rust-bytes-1)
+ ("rust-cookie" ,rust-cookie-0.16)
+ ("rust-http" ,rust-http-0.2)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-derive" ,rust-serde-derive-1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-time" ,rust-time-0.3)
+ ("rust-tokio" ,rust-tokio-1)
+ ("rust-tokio-stream" ,rust-tokio-stream-0.1)
+ ("rust-unicode-segmentation" ,rust-unicode-segmentation-1)
+ ("rust-url" ,rust-url-2)
+ ("rust-warp" ,rust-warp-0.3))))
+ (home-page
+ "https://hg.mozilla.org/mozilla-central/file/tip/testing/webdriver")
+ (synopsis
+ "Wire protocol implementation for the W3C WebDriver specification")
+ (description
+ "This package provides a library implementing the wire protocol for
+the W3C @code{WebDriver} specification.")
+ (license license:mpl2.0)))
+
(define-public rust-webpki-0.22
(package
(name "rust-webpki")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 06/37] gnu: Add rust-fantoccini-0.19.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-6-herman@rimm.ee
* gnu/packages/crates-web.scm (rust-fantoccini-0.19): Add variable.

Change-Id: I72b2b8684b09f3cf022609a8983d008f47d34ac7
---
gnu/packages/crates-web.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)

Toggle diff (50 lines)
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 665e3747eb..12004a2f90 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -1855,6 +1855,43 @@ (define-public rust-chunked-transfer-0.3
(base32 "11yghnd24w0i9p8g368c3pg7qh9nfz7kgri6pywja9pnmakj13a9"))))
(arguments `())))
+(define-public rust-fantoccini-0.19
+ (package
+ (name "rust-fantoccini")
+ (version "0.19.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "fantoccini" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0r3g7i6v1hxmf2d2zwz0ra6ycp3zjdpv80jqpabba56p8pigpw35"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs (("rust-base64" ,rust-base64-0.13)
+ ("rust-cookie" ,rust-cookie-0.16)
+ ("rust-futures-core" ,rust-futures-core-0.3)
+ ("rust-futures-util" ,rust-futures-util-0.3)
+ ("rust-http" ,rust-http-0.2)
+ ("rust-hyper" ,rust-hyper-0.14)
+ ("rust-hyper-rustls" ,rust-hyper-rustls-0.23)
+ ("rust-hyper-tls" ,rust-hyper-tls-0.5)
+ ("rust-mime" ,rust-mime-0.3)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-time" ,rust-time-0.3)
+ ("rust-tokio" ,rust-tokio-1)
+ ("rust-url" ,rust-url-2)
+ ("rust-webdriver" ,rust-webdriver-0.46))))
+ (home-page "https://github.com/jonhoo/fantoccini")
+ (synopsis
+ "High-level API for interacting with web pages through WebDriver")
+ (description
+ "This package provides a high-level API for programmatically
+interacting with web pages through @code{WebDriver}.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-gemini-fetch-0.2
(package
(name "rust-gemini-fetch")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 07/37] gnu: Add rust-atspi-proxies-0.3.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-7-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-atspi-proxies-0.3): Add variable.

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

Toggle diff (55 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6d0617823d..c3bf254572 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -5228,6 +5228,48 @@ (define-public rust-atspi-common-0.3
Linux accessibility events.")
(license (list license:asl2.0 license:expat))))
+(define-public rust-atspi-proxies-0.3
+ (package
+ (name "rust-atspi-proxies")
+ (version "0.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "atspi-proxies" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0lmvfycsrach6phz1ymcg9lks8iqiy6bxp2njci7lgkhfc96d5b4"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-async-trait" ,rust-async-trait-0.1)
+ ("rust-atspi-common" ,rust-atspi-common-0.3)
+ ("rust-futures-lite" ,rust-futures-lite-1)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-zbus" ,rust-zbus-3))
+ #:cargo-development-inputs
+ (("rust-async-std" ,rust-async-std-1)
+ ("rust-atspi-common" ,rust-atspi-common-0.3)
+ ("rust-byteorder" ,rust-byteorder-1)
+ ("rust-fantoccini" ,rust-fantoccini-0.19)
+ ("rust-futures-lite" ,rust-futures-lite-1)
+ ("rust-lazy-static" ,rust-lazy-static-1)
+ ("rust-rename-item" ,rust-rename-item-0.1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-serde-plain" ,rust-serde-plain-1)
+ ("rust-serial-test" ,rust-serial-test-2)
+ ("rust-tokio" ,rust-tokio-1)
+ ("rust-tokio-stream" ,rust-tokio-stream-0.1)
+ ("rust-tokio-test" ,rust-tokio-test-0.4)
+ ("rust-tracing" ,rust-tracing-0.1))))
+ (native-inputs (list pkg-config))
+ (inputs (list openssl))
+ (home-page "https://github.com/odilia-app/atspi")
+ (synopsis "AT-SPI2 proxies to query or manipulate UI objects")
+ (description
+ "This package provides AT-SPI2 proxies to query or manipulate UI
+objects.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-auto-impl-0.5
(package
(name "rust-auto-impl")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 01/37] gnu: Add rust-rename-item-0.1.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-1-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-rename-item-0.1): Add variable.
---
gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)

Toggle diff (39 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e99f0f991b..7797660988 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -54876,6 +54876,32 @@ (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-rename-item-0.1
+ (package
+ (name "rust-rename-item")
+ (version "0.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "rename-item" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "18b6jrhfp2x9jpbvi5g4q66nwksr41pgnripi7lbnag554bja2zq"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-darling" ,rust-darling-0.20)
+ ("rust-heck" ,rust-heck-0.4)
+ ("rust-proc-macro2" ,rust-proc-macro2-1)
+ ("rust-quote" ,rust-quote-1)
+ ("rust-syn" ,rust-syn-2))))
+ (home-page "https://github.com/levitatinglion/rename-item/")
+ (synopsis
+ "Rename items on declaration in different case styles")
+ (description
+ "This package provides a procedural macro to rename items on declaration,
+ according to different case styles.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-rend-0.3
(package
(name "rust-rend")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 08/37] gnu: Add rust-atspi-connection-0.3.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-8-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-atspi-connection-0.3): Add variable.

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

Toggle diff (48 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c3bf254572..9719940ec2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -5228,6 +5228,41 @@ (define-public rust-atspi-common-0.3
Linux accessibility events.")
(license (list license:asl2.0 license:expat))))
+(define-public rust-atspi-connection-0.3
+ (package
+ (name "rust-atspi-connection")
+ (version "0.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "atspi-connection" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0fdrfsgjg3d84mkk6nk3knqz0ygryfdmsn1d7c74qvgqf1ymxim0"))
+ (modules '((guix build utils)))
+ ;; doctests: No such file or directory.
+ (snippet '(substitute* "src/lib.rs"
+ (("```rust\n")
+ "```rust,no_run\n")))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-atspi-common" ,rust-atspi-common-0.3)
+ ("rust-atspi-proxies" ,rust-atspi-proxies-0.3)
+ ("rust-futures-lite" ,rust-futures-lite-1)
+ ("rust-tracing" ,rust-tracing-0.1)
+ ("rust-zbus" ,rust-zbus-3))
+ #:cargo-development-inputs
+ (("rust-enumflags2" ,rust-enumflags2-0.7)
+ ("rust-tokio-test" ,rust-tokio-test-0.4))))
+ (home-page "https://github.com/odilia-app/atspi/")
+ (synopsis
+ "Connecting, querying, sending and receiving over AT-SPI.")
+ (description
+ "This package provides a method of connecting, querying, sending
+and receiving over AT-SPI.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-atspi-proxies-0.3
(package
(name "rust-atspi-proxies")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 10/37] gnu: Add rust-enumn-0.1.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-10-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-enumn-0.1): Add variable.

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

Toggle diff (34 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 477eafa902..37af29f88c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -21601,6 +21601,27 @@ (define-public rust-enumflags2-derive-0.6
("rust-quote" ,rust-quote-1)
("rust-syn" ,rust-syn-1))))))
+(define-public rust-enumn-0.1
+ (package
+ (name "rust-enumn")
+ (version "0.1.13")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "enumn" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0hnvrp440hwjfd4navbni2mhcjd63adxp8ryk6z3prw8d7yh1l3g"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
+ ("rust-quote" ,rust-quote-1)
+ ("rust-syn" ,rust-syn-2))))
+ (home-page "https://github.com/dtolnay/enumn")
+ (synopsis "Convert number to enum")
+ (description "This package provides number to enum conversion.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-enumset-1
(package
(name "rust-enumset")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 11/37] gnu: Add rust-accesskit-0.12.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-11-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-accesskit-0.12): Add variable.

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

Toggle diff (37 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 37af29f88c..db82561284 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -302,6 +302,30 @@ (define-public rust-abomonation-0.7
library in Rust.")
(license license:expat)))
+(define-public rust-accesskit-0.12
+ (package
+ (name "rust-accesskit")
+ (version "0.12.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "accesskit" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1slvc60y7rs9k158x347yzxl557v6272xx587577w9335k9hxcbc"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-enumn" ,rust-enumn-0.1)
+ ("rust-pyo3" ,rust-pyo3-0.20)
+ ("rust-schemars" ,rust-schemars-0.8)
+ ("rust-serde" ,rust-serde-1))))
+ (home-page "https://github.com/AccessKit/accesskit")
+ (synopsis "UI accessibility infrastructure across platforms")
+ (description
+ "This package provides UI accessibility infrastructure across
+platforms.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-adaptive-barrier-1
(package
(name "rust-adaptive-barrier")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 12/37] gnu: Add rust-accesskit-consumer-0.16.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-12-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-accesskit-consumer-0.16): Add
variable.

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

Toggle diff (33 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index db82561284..81a79d3d57 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -326,6 +326,26 @@ (define-public rust-accesskit-0.12
platforms.")
(license (list license:expat license:asl2.0))))
+(define-public rust-accesskit-consumer-0.16
+ (package
+ (name "rust-accesskit-consumer")
+ (version "0.16.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "accesskit_consumer" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1rj5vsaxn9m5aazr22vzlb5bxfbl28h2mck7hqldgyq97jjwq5wc"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-accesskit" ,rust-accesskit-0.12))))
+ (home-page "https://github.com/AccessKit/accesskit")
+ (synopsis "AccessKit consumer library")
+ (description
+ "This package provides a @code{AccessKit} consumer library.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-adaptive-barrier-1
(package
(name "rust-adaptive-barrier")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 13/37] gnu: Add rust-accesskit-unix-0.6.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-13-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-accesskit-unix-0.6): Add variable.

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

Toggle diff (44 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 81a79d3d57..0ea8d90b64 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -346,6 +346,37 @@ (define-public rust-accesskit-consumer-0.16
"This package provides a @code{AccessKit} consumer library.")
(license (list license:expat license:asl2.0))))
+(define-public rust-accesskit-unix-0.6
+ (package
+ (name "rust-accesskit-unix")
+ (version "0.6.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "accesskit_unix" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "022a77nm8461v0f6mpzidamkci0h1kmkxl9x2bbim9lvv4c6rx09"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-accesskit" ,rust-accesskit-0.12)
+ ("rust-accesskit-consumer" ,rust-accesskit-consumer-0.16)
+ ("rust-async-channel" ,rust-async-channel-2)
+ ("rust-async-once-cell" ,rust-async-once-cell-0.5)
+ ("rust-atspi" ,rust-atspi-0.19)
+ ("rust-futures-lite" ,rust-futures-lite-1)
+ ("rust-once-cell" ,rust-once-cell-1)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-tokio" ,rust-tokio-1)
+ ("rust-zbus" ,rust-zbus-3))))
+ (home-page "https://github.com/AccessKit/accesskit")
+ (synopsis "AccessKit UI accessibility infrastructure: Linux adapter")
+ (description
+ "This package provides a linux adapter for @code{AccessKit} UI
+accessibility infrastructure.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-adaptive-barrier-1
(package
(name "rust-adaptive-barrier")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 14/37] gnu: Add rust-accesskit-winit-0.16.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-14-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-accesskit-winit-0.16): Add variable.

Change-Id: I8f3638de3d6fdceff2fd9f95f9dfab826923bbf2
---
gnu/local.mk | 1 +
gnu/packages/crates-io.scm | 26 +++++++++++++++++++
.../rust-accesskit-winit-unix-only.patch | 22 ++++++++++++++++
3 files changed, 49 insertions(+)
create mode 100644 gnu/packages/patches/rust-accesskit-winit-unix-only.patch

Toggle diff (79 lines)
diff --git a/gnu/local.mk b/gnu/local.mk
index 4750cb290c..503122d2aa 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2005,6 +2005,7 @@ dist_patch_DATA = \
%D%/packages/patches/rustc-1.54.0-src.patch \
%D%/packages/patches/rust-1.64-fix-riscv64-bootstrap.patch \
%D%/packages/patches/rust-1.70-fix-rustix-build.patch \
+ %D%/packages/patches/rust-accesskit-winit-unix-only.patch \
%D%/packages/patches/rust-cargo-edit-remove-ureq.patch \
%D%/packages/patches/rust-ring-0.17-ring-core.patch \
%D%/packages/patches/rust-ndarray-remove-blas-src-dep.patch \
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0ea8d90b64..c37ca845a9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -377,6 +377,32 @@ (define-public rust-accesskit-unix-0.6
accessibility infrastructure.")
(license (list license:expat license:asl2.0))))
+(define-public rust-accesskit-winit-0.16
+ (package
+ (name "rust-accesskit-winit")
+ (version "0.16.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "accesskit_winit" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0rwaz6mkllcl131b8y4s787gfmdrqzms0a242r8f3n8pra52312j"))
+ (patches (search-patches "rust-accesskit-winit-unix-only.patch"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-accesskit" ,rust-accesskit-0.12)
+ ("rust-accesskit-unix" ,rust-accesskit-unix-0.6)
+ ("rust-winit" ,rust-winit-0.29))
+ #:cargo-development-inputs (("rust-winit" ,rust-winit-0.29))))
+ (home-page "https://github.com/AccessKit/accesskit")
+ (synopsis "AccessKit UI accessibility infrastructure: winit adapter")
+ (description
+ "This package provides a winit adapter for @code{AccessKit} UI
+accessibility infrastructure.")
+ (license license:asl2.0)))
+
(define-public rust-adaptive-barrier-1
(package
(name "rust-adaptive-barrier")
diff --git a/gnu/packages/patches/rust-accesskit-winit-unix-only.patch b/gnu/packages/patches/rust-accesskit-winit-unix-only.patch
new file mode 100644
index 0000000000..5be5caa562
--- /dev/null
+++ b/gnu/packages/patches/rust-accesskit-winit-unix-only.patch
@@ -0,0 +1,22 @@
+diff --git a/Cargo.toml b/Cargo.toml
+index c382831..76b065a 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -39,7 +39,6 @@ version = "0.12.1"
+ [dependencies.winit]
+ version = "0.29"
+ features = ["rwh_06"]
+-default-features = false
+
+ [dev-dependencies.winit]
+ version = "0.29"
+@@ -64,9 +63,3 @@ tokio = ["accesskit_unix/tokio"]
+ version = "0.6.1"
+ optional = true
+ default-features = false
+-
+-[target."cfg(target_os = \"macos\")".dependencies.accesskit_macos]
+-version = "0.10.1"
+-
+-[target."cfg(target_os = \"windows\")".dependencies.accesskit_windows]
+-version = "0.15.1"
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 15/37] gnu: rust-nix-0.26: Update to 0.26.4.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-15-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-nix-0.26): Update.
[version]: Bump from 0.26.2 to 0.26.4.
[origin]: Update hash, disable panicking test with snippet.
[arguments]: Build without tests, remove rust-static-assertions-1.

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

Toggle diff (53 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c37ca845a9..82727e5e74 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -41202,23 +41202,36 @@ (define-public rust-nix-0.26
(package
(inherit rust-nix-0.27)
(name "rust-nix")
- (version "0.26.2")
+ (version "0.26.4")
(source
(origin
(method url-fetch)
(uri (crate-uri "nix" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "06lfvjhsj5zlslsg2jhijrm69npprmsh7r1667qnl7c2jv8s7pdz"))))
+ (base32 "06xgl4ybb8pvjrbmc3xggbgk3kbs1j0c4c0nzdfrmpbgrkrym2sr"))
+ (modules '((guix build utils)))
+ (snippet '(substitute*
+ "src/sys/resource.rs" ; test panics
+ (("pub fn test_self_cpu_time()" all)
+ (string-append "#[ignore]\n" all))))))
+ (build-system cargo-build-system)
(arguments
- (list #:skip-build? #t
- #:cargo-inputs
- `(("rust-bitflags" ,rust-bitflags-1)
- ("rust-cfg-if" ,rust-cfg-if-1)
- ("rust-libc" ,rust-libc-0.2)
- ("rust-memoffset" ,rust-memoffset-0.7)
- ("rust-pin-utils" ,rust-pin-utils-0.1)
- ("rust-static-assertions" ,rust-static-assertions-1))))))
+ `(#:tests? #f ; some tests hang
+ #:cargo-inputs (("rust-bitflags" ,rust-bitflags-1)
+ ("rust-cfg-if" ,rust-cfg-if-1)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-memoffset" ,rust-memoffset-0.7)
+ ("rust-pin-utils" ,rust-pin-utils-0.1))
+ #:cargo-development-inputs
+ (("rust-assert-impl" ,rust-assert-impl-0.1)
+ ("rust-caps" ,rust-caps-0.5)
+ ("rust-lazy-static" ,rust-lazy-static-1)
+ ("rust-parking-lot" ,rust-parking-lot-0.12)
+ ("rust-rand" ,rust-rand-0.8)
+ ("rust-semver" ,rust-semver-1)
+ ("rust-sysctl" ,rust-sysctl-0.4)
+ ("rust-tempfile" ,rust-tempfile-3))))))
(define-public rust-nix-0.25
(package
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 16/37] gnu: Add rust-wl-clipboard-rs-0.8.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-16-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-wl-clipboard-rs-0.8): Add variable.
(rust-wl-clipboard-0.7): Inherit from rust-wl-clipboard-rs-0.8.

Change-Id: I72056854f1c9b0e1d0ca43ba5cbc12739128a8bb
---
gnu/packages/crates-io.scm | 43 +++++++++++++++++++++++++++++++-------
1 file changed, 36 insertions(+), 7 deletions(-)

Toggle diff (72 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 82727e5e74..2cca202f57 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -78571,8 +78571,43 @@ (define-public rust-watchexec-1
modifications.")
(license license:asl2.0)))
+(define-public rust-wl-clipboard-rs-0.8
+ (package
+ (name "rust-wl-clipboard-rs")
+ (version "0.8.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "wl-clipboard-rs" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1ynj4d5kaicjlm23i3mbarl7csrf753kiiqmf5i0ipzafglpkbsp"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-derive-new" ,rust-derive-new-0.5)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-nix" ,rust-nix-0.26)
+ ("rust-os-pipe" ,rust-os-pipe-1)
+ ("rust-tempfile" ,rust-tempfile-3)
+ ("rust-thiserror" ,rust-thiserror-1)
+ ("rust-tree-magic-mini" ,rust-tree-magic-mini-3)
+ ("rust-wayland-backend" ,rust-wayland-backend-0.3)
+ ("rust-wayland-client" ,rust-wayland-client-0.31)
+ ("rust-wayland-protocols" ,rust-wayland-protocols-0.31)
+ ("rust-wayland-protocols-wlr" ,rust-wayland-protocols-wlr-0.2))))
+ (home-page "https://github.com/YaLTeR/wl-clipboard-rs")
+ (synopsis "Access to the Wayland clipboard")
+ (description
+ "This package provides access to the Wayland clipboard for terminal
+and other window-less applications.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-wl-clipboard-rs-0.7
(package
+ (inherit rust-wl-clipboard-rs-0.8)
(name "rust-wl-clipboard-rs")
(version "0.7.0")
(source
@@ -78582,7 +78617,6 @@ (define-public rust-wl-clipboard-rs-0.7
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1n8sg981h3d08hnnlrsgs81w2qz3n8a5ml0jcsgnapdpzcyk06lq"))))
- (build-system cargo-build-system)
(arguments
`(#:tests? #f ; Failed to create a server socket.
#:cargo-inputs (("rust-derive-new" ,rust-derive-new-0.5)
@@ -78597,12 +78631,7 @@ (define-public rust-wl-clipboard-rs-0.7
("rust-wayland-protocols" ,rust-wayland-protocols-0.29))
#:cargo-development-inputs
(("rust-wayland-protocols" ,rust-wayland-protocols-0.29)
- ("rust-wayland-server" ,rust-wayland-server-0.29))))
- (home-page "https://github.com/YaLTeR/wl-clipboard-rs")
- (synopsis "Access to the Wayland clipboard")
- (description "This package provides access to the Wayland clipboard
-for terminal and other window-less applications.")
- (license (list license:expat license:asl2.0))))
+ ("rust-wayland-server" ,rust-wayland-server-0.29))))))
(define-public rust-wl-clipboard-rs-0.4
(package
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 18/37] gnu: Add rust-x11rb-0.9.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-18-herman@rimm.ee
* gnu/packages/crates-graphics.scm (rust-x11rb-0.9): Add variable.

Change-Id: I1a979fd105a145405157bf53ddf94ecdc1168a63
---
gnu/packages/crates-graphics.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)

Toggle diff (35 lines)
diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index f95a4a65cd..cb2d6eeeb9 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -5520,6 +5520,28 @@ (define-public rust-x11rb-0.10
("rust-winapi-wsapoll" ,rust-winapi-wsapoll-0.1)
("rust-x11rb-protocol" ,rust-x11rb-protocol-0.10))))))
+(define-public rust-x11rb-0.9
+ (package
+ (inherit rust-x11rb-0.10)
+ (name "rust-x11rb")
+ (version "0.9.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "x11rb" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "12kdvzjfdbv9nkliq9lk6jd70f71q1qaiya24fjy4flbciavx6bf"))))
+ (arguments
+ `(#:cargo-inputs
+ (("rust-gethostname" ,rust-gethostname-0.2)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-libloading" ,rust-libloading-0.7)
+ ("rust-nix" ,rust-nix-0.22)
+ ("rust-once-cell" ,rust-once-cell-1)
+ ("rust-winapi" ,rust-winapi-0.3)
+ ("rust-winapi-wsapoll" ,rust-winapi-wsapoll-0.1))))))
+
(define-public rust-x11rb-0.8
(package
(inherit rust-x11rb-0.10)
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 09/37] gnu: Add rust-atspi-0.19.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-9-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-atspi-0.19): Add variable.

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

Toggle diff (37 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9719940ec2..477eafa902 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -5228,6 +5228,30 @@ (define-public rust-atspi-common-0.3
Linux accessibility events.")
(license (list license:asl2.0 license:expat))))
+(define-public rust-atspi-0.19
+ (package
+ (name "rust-atspi")
+ (version "0.19.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "atspi" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1jl7iv3bvnabg5jd4cpf8ba7zz2dbhk39cr70yh3wnbgmd8g6nb0"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-atspi-common" ,rust-atspi-common-0.3)
+ ("rust-atspi-connection" ,rust-atspi-connection-0.3)
+ ("rust-atspi-proxies" ,rust-atspi-proxies-0.3))))
+ (home-page "https://github.com/odilia-app/atspi")
+ (synopsis "zbus-based AT-SPI2 protocol implementation in Rust")
+ (description
+ "This package provides a zbus-based AT-SPI2 protocol implementation
+in Rust.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-atspi-connection-0.3
(package
(name "rust-atspi-connection")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 17/37] gnu: Add rust-arboard-3.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-17-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-arboard-3): Add variable.
(rust-arboard-1): Inherit from rust-arboard-3.
* gnu/packages/patches/rust-arboard-3-unix-only.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register file.

Change-Id: Ic5081f9cd6b8d63e033ca2a2c8d2f779758f0694
---
gnu/local.mk | 1 +
gnu/packages/crates-io.scm | 38 ++++++++++---
.../patches/rust-arboard-3-unix-only.patch | 54 +++++++++++++++++++
3 files changed, 87 insertions(+), 6 deletions(-)
create mode 100644 gnu/packages/patches/rust-arboard-3-unix-only.patch

Toggle diff (132 lines)
diff --git a/gnu/local.mk b/gnu/local.mk
index 503122d2aa..731a4799b4 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2006,6 +2006,7 @@ dist_patch_DATA = \
%D%/packages/patches/rust-1.64-fix-riscv64-bootstrap.patch \
%D%/packages/patches/rust-1.70-fix-rustix-build.patch \
%D%/packages/patches/rust-accesskit-winit-unix-only.patch \
+ %D%/packages/patches/rust-arboard-3-unix-only.patch \
%D%/packages/patches/rust-cargo-edit-remove-ureq.patch \
%D%/packages/patches/rust-ring-0.17-ring-core.patch \
%D%/packages/patches/rust-ndarray-remove-blas-src-dep.patch \
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2cca202f57..90d7e17e3b 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -2132,8 +2132,39 @@ (define-public rust-arbitrary-0.4
#:cargo-inputs
(("rust-derive-arbitrary" ,rust-derive-arbitrary-0.4))))))
+(define-public rust-arboard-3
+ (package
+ (name "rust-arboard")
+ (version "3.3.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "arboard" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "02iqwp8zv41a1vmxr41s0ghb40rf58b5vnl5mzxxcgcs7mrkrahz"))
+ (patches (search-patches "rust-arboard-3-unix-only.patch"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:tests? #f ; $DISPLAY variable not set
+ #:cargo-inputs (("rust-image" ,rust-image-0.24)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-parking-lot" ,rust-parking-lot-0.12)
+ ("rust-thiserror" ,rust-thiserror-1)
+ ("rust-wl-clipboard-rs" ,rust-wl-clipboard-rs-0.8)
+ ("rust-x11rb" ,rust-x11rb-0.13))
+ #:cargo-development-inputs
+ (("rust-env-logger" ,rust-env-logger-0.9))))
+ (home-page "https://github.com/1Password/arboard")
+ (synopsis "Image and text handling for the OS clipboard")
+ (description
+ "This package provides image and text handling for the OS
+clipboard.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-arboard-1
(package
+ (inherit rust-arboard-3)
(name "rust-arboard")
(version "1.2.1")
(source
@@ -2165,12 +2196,7 @@ (define-public rust-arboard-1
("rust-x11rb" ,rust-x11rb-0.8))
#:cargo-development-inputs
(("rust-env-logger" ,rust-env-logger-0.8)
- ("rust-simple-logger" ,rust-simple-logger-1))))
- (home-page "https://github.com/ArturKovacs/arboard")
- (synopsis "Image and text handling for the OS clipboard")
- (description
- "This package provides image and text handling for the OS clipboard.")
- (license (list license:expat license:asl2.0))))
+ ("rust-simple-logger" ,rust-simple-logger-1))))))
(define-public rust-arc-swap-1
(package
diff --git a/gnu/packages/patches/rust-arboard-3-unix-only.patch b/gnu/packages/patches/rust-arboard-3-unix-only.patch
new file mode 100644
index 0000000000..02efc21928
--- /dev/null
+++ b/gnu/packages/patches/rust-arboard-3-unix-only.patch
@@ -0,0 +1,54 @@
+diff --git a/Cargo.toml b/Cargo.toml
+index 1921528..2f45618 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -45,9 +45,7 @@ version = "0.9.0"
+ [features]
+ default = ["image-data"]
+ image-data = [
+- "core-graphics",
+ "image",
+- "windows-sys",
+ ]
+ wayland-data-control = ["wl-clipboard-rs"]
+
+@@ -69,39 +67,3 @@ optional = true
+
+ [target."cfg(all(unix, not(any(target_os=\"macos\", target_os=\"android\", target_os=\"emscripten\"))))".dependencies.x11rb]
+ version = "0.13"
+-
+-[target."cfg(target_os = \"macos\")".dependencies.core-graphics]
+-version = "0.23"
+-optional = true
+-
+-[target."cfg(target_os = \"macos\")".dependencies.image]
+-version = "0.24"
+-features = ["tiff"]
+-optional = true
+-default-features = false
+-
+-[target."cfg(target_os = \"macos\")".dependencies.objc]
+-version = "0.2"
+-
+-[target."cfg(target_os = \"macos\")".dependencies.objc-foundation]
+-version = "0.1"
+-
+-[target."cfg(target_os = \"macos\")".dependencies.objc_id]
+-version = "0.1"
+-
+-[target."cfg(windows)".dependencies.clipboard-win]
+-version = "5.0.0"
+-
+-[target."cfg(windows)".dependencies.log]
+-version = "0.4"
+-
+-[target."cfg(windows)".dependencies.windows-sys]
+-version = "0.48.0"
+-features = [
+- "Win32_Foundation",
+- "Win32_Graphics_Gdi",
+- "Win32_System_DataExchange",
+- "Win32_System_Memory",
+- "Win32_System_Ole",
+-]
+-optional = true
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 19/37] gnu: Add rust-arboard-2.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-19-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-arboard-2): Add variable.
* gnu/packages/patches/rust-arboard-2-unix-only.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register file.

Change-Id: I0ed9d713e3bcc2c60032513e04cd9ae985b3c387
---
gnu/local.mk | 1 +
gnu/packages/crates-io.scm | 27 ++++++++++
.../patches/rust-arboard-2-unix-only.patch | 53 +++++++++++++++++++
3 files changed, 81 insertions(+)
create mode 100644 gnu/packages/patches/rust-arboard-2-unix-only.patch

Toggle diff (111 lines)
diff --git a/gnu/local.mk b/gnu/local.mk
index 731a4799b4..355889f1b7 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2006,6 +2006,7 @@ dist_patch_DATA = \
%D%/packages/patches/rust-1.64-fix-riscv64-bootstrap.patch \
%D%/packages/patches/rust-1.70-fix-rustix-build.patch \
%D%/packages/patches/rust-accesskit-winit-unix-only.patch \
+ %D%/packages/patches/rust-arboard-2-unix-only.patch \
%D%/packages/patches/rust-arboard-3-unix-only.patch \
%D%/packages/patches/rust-cargo-edit-remove-ureq.patch \
%D%/packages/patches/rust-ring-0.17-ring-core.patch \
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 90d7e17e3b..580209c281 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -2162,6 +2162,33 @@ (define-public rust-arboard-3
clipboard.")
(license (list license:expat license:asl2.0))))
+(define-public rust-arboard-2
+ (package
+ (inherit rust-arboard-3)
+ (name "rust-arboard")
+ (version "2.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "arboard" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1fq8gqbvajjmxdbd65aygf9ramgpvq1bcxj8mxx6vv5ms5a064nw"))
+ (patches (search-patches "rust-arboard-2-unix-only.patch"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:tests? #f ; error while interacting with clipboard
+ #:cargo-inputs
+ (("rust-image" ,rust-image-0.23)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-parking-lot" ,rust-parking-lot-0.12)
+ ("rust-thiserror" ,rust-thiserror-1)
+ ("rust-wl-clipboard-rs" ,rust-wl-clipboard-rs-0.4)
+ ("rust-x11rb" ,rust-x11rb-0.9))
+ #:cargo-development-inputs
+ (("rust-env-logger" ,rust-env-logger-0.9)
+ ("rust-simple-logger" ,rust-simple-logger-2))))))
+
(define-public rust-arboard-1
(package
(inherit rust-arboard-3)
diff --git a/gnu/packages/patches/rust-arboard-2-unix-only.patch b/gnu/packages/patches/rust-arboard-2-unix-only.patch
new file mode 100644
index 0000000000..59141cdce9
--- /dev/null
+++ b/gnu/packages/patches/rust-arboard-2-unix-only.patch
@@ -0,0 +1,53 @@
+diff --git a/Cargo.toml b/Cargo.toml
+index 1d3f38d..7661aad 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -47,11 +47,7 @@ version = "2.1"
+ [features]
+ default = ["image-data"]
+ image-data = [
+- "core-graphics",
+ "image",
+- "winapi/minwindef",
+- "winapi/wingdi",
+- "winapi/winnt",
+ ]
+ wayland-data-control = ["wl-clipboard-rs"]
+
+@@ -73,36 +69,3 @@ optional = true
+
+ [target."cfg(all(unix, not(any(target_os=\"macos\", target_os=\"android\", target_os=\"emscripten\"))))".dependencies.x11rb]
+ version = "0.9"
+-
+-[target."cfg(target_os = \"macos\")".dependencies.core-graphics]
+-version = "0.22"
+-optional = true
+-
+-[target."cfg(target_os = \"macos\")".dependencies.image]
+-version = "0.23"
+-features = ["tiff"]
+-optional = true
+-default-features = false
+-
+-[target."cfg(target_os = \"macos\")".dependencies.objc]
+-version = "0.2"
+-
+-[target."cfg(target_os = \"macos\")".dependencies.objc-foundation]
+-version = "0.1"
+-
+-[target."cfg(target_os = \"macos\")".dependencies.objc_id]
+-version = "0.1"
+-
+-[target."cfg(windows)".dependencies.clipboard-win]
+-version = "4.2"
+-
+-[target."cfg(windows)".dependencies.log]
+-version = "0.4"
+-
+-[target."cfg(windows)".dependencies.winapi]
+-version = "0.3.9"
+-features = [
+- "basetsd",
+- "winuser",
+- "winbase",
+-]
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 20/37] gnu: Add rust-litrs-0.4.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-20-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-litrs-0.4): Add variable.
(rust-litrs-0.2): Inherit from rust-litrs-0.4.

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

Toggle diff (57 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 580209c281..c6c87f13ad 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -35586,8 +35586,32 @@ (define-public rust-libtest-mimic-0.3
("rust-structopt" ,rust-structopt-0.3)
("rust-termcolor" ,rust-termcolor-1))))))
+(define-public rust-litrs-0.4
+ (package
+ (name "rust-litrs")
+ (version "0.4.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "litrs" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "19cssch9gc0x2snd9089nvwzz79zx6nzsi3icffpx25p4hck1kml"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
+ ("rust-unicode-xid" ,rust-unicode-xid-0.2))))
+ (home-page "https://github.com/LukasKalbertodt/litrs/")
+ (synopsis "Parse and inspect Rust literals")
+ (description
+ "Parse and inspect Rust literals (i.e. tokens in the Rust language
+representing fixed values). Particularly useful for proc macros, but
+can also be used outside of a proc-macro context.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-litrs-0.2
(package
+ (inherit rust-litrs-0.4)
(name "rust-litrs")
(version "0.2.3")
(source (origin
@@ -35596,16 +35620,8 @@ (define-public rust-litrs-0.2
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1akrxglqv6dz41jrjr409pjjysd00z5w0949007v52yg6c4mw9zr"))))
- (build-system cargo-build-system)
(arguments
- `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1))))
- (home-page "https://github.com/LukasKalbertodt/litrs/")
- (synopsis "Parse and inspect Rust literals")
- (description
- "Parse and inspect Rust literals (i.e. tokens in the Rust programming
-language representing fixed values). Particularly useful for proc macros, but
-can also be used outside of a proc-macro context.")
- (license (list license:expat license:asl2.0))))
+ `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1))))))
(define-public rust-llvm-bitcode-0.1
(package
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 21/37] gnu: rust-document-features-0.2: Update to 0.2.8.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-21-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-document-features-0.2): Update.
[version]: Bump from 0.2.7 to 0.2.8.
[origin]: Update hash.
[arguments]: Reenable tests, replace rust-litrs-0.2 with rust-litrs-0.4.
[description]: Wrap line after 72 columns.

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

Toggle diff (39 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c6c87f13ad..6e959977b1 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20156,22 +20156,26 @@ (define-public rust-docopt-0.6
(define-public rust-document-features-0.2
(package
(name "rust-document-features")
- (version "0.2.7")
+ (version "0.2.8")
(source
(origin
(method url-fetch)
(uri (crate-uri "document-features" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0mv1xg386as8zndw6kdgs4bwxwwlg42srdhkmgf00zz1zirwb4z4"))))
+ (base32 "15cvgxqngxslgllz15m8aban6wqfgsi6nlhr0g25yfsnd6nq4lpg"))))
(build-system cargo-build-system)
(arguments
- `(#:tests? #f ; Needs nightly features.
- #:cargo-inputs (("rust-litrs" ,rust-litrs-0.2))))
+ `(#:cargo-test-flags
+ '("--release" "--"
+ "--skip=self_doc"
+ "--skip=self_doc_with-custom_label")
+ #:cargo-inputs (("rust-litrs" ,rust-litrs-0.4))))
(home-page "https://slint-ui.com")
(synopsis "Extract documentation for feature flags from Cargo.toml")
- (description "Extract documentation for the feature flags from comments in
-@code{Cargo.toml}.")
+ (description
+ "This package provides documentation extraction for the feature
+flags from comments in Cargo.toml.")
(license (list license:expat license:asl2.0))))
(define-public rust-downcast-0.11
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 22/37] gnu: Add rust-nohash-hasher-0.2.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-22-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-nohash-hasher-0.2): Add variable.

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

Toggle diff (32 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6e959977b1..c8601c26e4 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -41733,6 +41733,25 @@ (define-public rust-nodrop-union-0.1
(license (list license:asl2.0
license:expat))))
+(define-public rust-nohash-hasher-0.2
+ (package
+ (name "rust-nohash-hasher")
+ (version "0.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "nohash-hasher" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0lf4p6k01w4wm7zn4grnihzj8s7zd5qczjmzng7wviwxawih5x9b"))))
+ (build-system cargo-build-system)
+ (home-page "https://github.com/paritytech/nohash-hasher")
+ (synopsis "`std::hash::Hasher` which does not hash at all")
+ (description
+ "This package provides an implementation of `std::hash::Hasher`
+which does not hash at all.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-nom-7
(package
(name "rust-nom")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 24/37] gnu: Add rust-emath-0.26.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-24-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-emath-0.26): Add variable.

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

Toggle diff (37 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b976e99085..c88e535fcc 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20938,6 +20938,30 @@ (define-public rust-email-0.0.20
"This crate provides an implementation of RFC 5322 email messages.")
(license license:expat)))
+(define-public rust-emath-0.26
+ (package
+ (name "rust-emath")
+ (version "0.26.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "emath" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "02dgx8946bcy254rs8ijhx9k3n5xklfvagnzdiw8yi40rwg305k9"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-bytemuck" ,rust-bytemuck-1)
+ ("rust-document-features" ,rust-document-features-0.2)
+ ("rust-mint" ,rust-mint-0.5)
+ ("rust-serde" ,rust-serde-1))))
+ (home-page "https://github.com/emilk/egui/tree/master/crates/emath")
+ (synopsis "Minimal 2D math library for GUI work")
+ (description
+ "This package provides a minimal 2D math library for GUI work.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-emojis-0.5
(package
(name "rust-emojis")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 23/37] gnu: Add rust-puffin-0.19.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-23-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-puffin-0.19): Add variable.
(rust-puffin-0.18): Inherit from rust-puffin-0.19.

Change-Id: Ib1d6721a06f4048d97aa1e282fa971e9b1f4ce70
---
gnu/packages/crates-io.scm | 31 ++++++++++++++++++++++++++-----
1 file changed, 26 insertions(+), 5 deletions(-)

Toggle diff (63 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c8601c26e4..b976e99085 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51188,17 +51188,22 @@ (define-public rust-publicsuffix-1
("rust-regex" ,rust-regex-1)
("rust-url" ,rust-url-2))))))
-(define-public rust-puffin-0.18
+(define-public rust-puffin-0.19
(package
(name "rust-puffin")
- (version "0.18.1")
+ (version "0.19.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "puffin" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0ip8dgmqc6sb6kzpfz09qfw17a0aq4j2cx0ga43j1z5abiwhycq2"))))
+ (base32 "0bx0hyifrr2n9fhc718zyk8za7rqnv5p5pvjwpadx7q4pga6mxxr"))
+ (modules '((guix build utils)))
+ (snippet '(substitute*
+ "src/lib.rs" ; test fails
+ (("fn profile_macros_test()" all)
+ (string-append "#[ignore]\n" all))))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
@@ -51213,12 +51218,28 @@ (define-public rust-puffin-0.18
("rust-serde" ,rust-serde-1)
("rust-web-time" ,rust-web-time-0.2)
("rust-zstd" ,rust-zstd-0.12))
- #:cargo-development-inputs (("rust-criterion" ,rust-criterion-0.5))))
+ #:cargo-development-inputs
+ (("rust-criterion" ,rust-criterion-0.5))))
(home-page "https://github.com/EmbarkStudios/puffin")
(synopsis "Simple instrumentation profiler for games")
- (description "Simple instrumentation profiler for games.")
+ (description
+ "This package provides an instrumentation profiler for games.")
(license (list license:expat license:asl2.0))))
+(define-public rust-puffin-0.18
+ (package
+ (inherit rust-puffin-0.19)
+ (name "rust-puffin")
+ (version "0.18.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "puffin" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0ip8dgmqc6sb6kzpfz09qfw17a0aq4j2cx0ga43j1z5abiwhycq2"))))))
+
(define-public rust-pulldown-cmark-to-cmark-10
(package
(name "rust-pulldown-cmark-to-cmark")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 26/37] gnu: Add rust-ecolor-0.26.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-26-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-ecolor-0.26): Add variable.

Change-Id: I7a44c038118f8d331ff9cc5405aa5744a8bcd49e
---
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 1cf23d1dd6..1211484f14 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20639,6 +20639,31 @@ (define-public rust-ecb-0.1
(description "Electronic Codebook (ECB) block cipher mode of operation")
(license license:expat)))
+(define-public rust-ecolor-0.26
+ (package
+ (name "rust-ecolor")
+ (version "0.26.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "ecolor" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0kpgqk2ybc1dbqm5m0qic2plm09fhzb48q7wpz6siqch305yikq3"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-bytemuck" ,rust-bytemuck-1)
+ ("rust-cint" ,rust-cint-0.3)
+ ("rust-color-hex" ,rust-color-hex-0.2)
+ ("rust-document-features" ,rust-document-features-0.2)
+ ("rust-serde" ,rust-serde-1))))
+ (home-page "https://github.com/emilk/egui")
+ (synopsis "Color structs and color conversion utilities")
+ (description
+ "This package provides color structs and color conversion utilities.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-edit-distance-2
(package
(name "rust-edit-distance")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 27/37] gnu: Add rust-epaint-0.26.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-27-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-epaint-0.26): Add variable.

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

Toggle diff (49 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1211484f14..3652a2428e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -22180,6 +22180,42 @@ (define-public rust-envy-0.4
deserialized from environment variables.")
(license license:expat)))
+(define-public rust-epaint-0.26
+ (package
+ (name "rust-epaint")
+ (version "0.26.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "epaint" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1bs7davjnss4v93hbm1i13g0qwqz52hy9sg6r2q5hzyx2zvgvfbp"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-ab-glyph" ,rust-ab-glyph-0.2)
+ ("rust-ahash" ,rust-ahash-0.8)
+ ("rust-backtrace" ,rust-backtrace-0.3)
+ ("rust-bytemuck" ,rust-bytemuck-1)
+ ("rust-document-features" ,rust-document-features-0.2)
+ ("rust-ecolor" ,rust-ecolor-0.26)
+ ("rust-emath" ,rust-emath-0.26)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-nohash-hasher" ,rust-nohash-hasher-0.2)
+ ("rust-parking-lot" ,rust-parking-lot-0.12)
+ ("rust-puffin" ,rust-puffin-0.19)
+ ("rust-rayon" ,rust-rayon-1)
+ ("rust-serde" ,rust-serde-1))
+ #:cargo-development-inputs
+ (("rust-criterion" ,rust-criterion-0.5))))
+ (home-page "https://github.com/emilk/egui/tree/master/crates/epaint")
+ (synopsis "Minimal 2D graphics library for GUI work")
+ (description
+ "This package provides a minimal 2D graphics library for GUI work.")
+ ;; Fonts are licensed under SIL OFL 1.1 and Ubuntu Font License 1.0.
+ (license (list license:expat license:asl2.0 license:silofl1.1))))
+
(define-public rust-erased-serde-0.4
(package
(name "rust-erased-serde")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 28/37] gnu: Add rust-egui-0.26.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-28-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-egui-0.26): Add variable.

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

Toggle diff (46 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3652a2428e..0100995071 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20729,6 +20729,39 @@ (define-public rust-ego-tree-0.6
(description "Ego Tree provides a vec-backed ID-tree.")
(license license:isc)))
+(define-public rust-egui-0.26
+ (package
+ (name "rust-egui")
+ (version "0.26.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "egui" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1l4pa86xck0afi07nq3jxb7qd6r4alwyzbvldgy1bdm569a5j3qq"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:tests? #f ; src/../assets/ferris.png: No such file or directory
+ #:cargo-inputs
+ (("rust-accesskit" ,rust-accesskit-0.12)
+ ("rust-ahash" ,rust-ahash-0.8)
+ ("rust-backtrace" ,rust-backtrace-0.3)
+ ("rust-document-features" ,rust-document-features-0.2)
+ ("rust-epaint" ,rust-epaint-0.26)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-nohash-hasher" ,rust-nohash-hasher-0.2)
+ ("rust-puffin" ,rust-puffin-0.19)
+ ("rust-ron" ,rust-ron-0.8)
+ ("rust-serde" ,rust-serde-1))))
+ (home-page "https://github.com/emilk/egui")
+ (synopsis
+ "Immediate mode GUI that runs on both web and native")
+ (description
+ "This package provides an easy-to-use immediate mode GUI that runs
+on both web and native.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-either-1
(package
(name "rust-either")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 31/37] gnu: Add rust-egui-glow-0.26.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-31-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-egui-glow-0.26): Add variable.

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

Toggle diff (49 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d51b9a8795..489cde6da2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20762,6 +20762,42 @@ (define-public rust-egui-0.26
on both web and native.")
(license (list license:expat license:asl2.0))))
+(define-public rust-egui-glow-0.26
+ (package
+ (name "rust-egui-glow")
+ (version "0.26.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "egui_glow" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "00gsa7jvknziyfp4kggxxayjarvyclf09v5z7m4mjk4bfbl3p3m0"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-bytemuck" ,rust-bytemuck-1)
+ ("rust-document-features" ,rust-document-features-0.2)
+ ("rust-egui" ,rust-egui-0.26)
+ ("rust-egui-winit" ,rust-egui-winit-0.26)
+ ("rust-glow" ,rust-glow-0.13)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-memoffset" ,rust-memoffset-0.9)
+ ("rust-puffin" ,rust-puffin-0.19)
+ ("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2)
+ ("rust-web-sys" ,rust-web-sys-0.3)
+ ("rust-winit" ,rust-winit-0.29))
+ #:cargo-development-inputs
+ (("rust-glutin" ,rust-glutin-0.31)
+ ("rust-glutin-winit" ,rust-glutin-winit-0.4)
+ ("rust-raw-window-handle" ,rust-raw-window-handle-0.5))))
+ (home-page "https://github.com/emilk/egui/tree/master/crates/egui_glow")
+ (synopsis "Bindings for using egui natively using the glow library")
+ (description
+ "This package provides bindings for using egui natively with the
+glow library.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-egui-winit-0.26
(package
(name "rust-egui-winit")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 30/37] gnu: Add rust-glow-0.13.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-30-herman@rimm.ee
* gnu/packages/crates-graphics.scm (rust-glow-0.13): Add variable.
(rust-glow-0.12): Inherit from rust-glow-0.13.

Change-Id: I7292a081947c76fd37939158eb6790c0dc747b02
---
gnu/packages/crates-graphics.scm | 27 +++++++++++++++++++++------
1 file changed, 21 insertions(+), 6 deletions(-)

Toggle diff (58 lines)
diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index cb2d6eeeb9..ac1c74b516 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -1521,17 +1521,17 @@ (define-public rust-gleam-0.6
"Generated OpenGL bindings and wrapper for Servo.")
(license (list license:asl2.0 license:expat))))
-(define-public rust-glow-0.12
+(define-public rust-glow-0.13
(package
(name "rust-glow")
- (version "0.12.3")
+ (version "0.13.1")
(source
(origin
(method url-fetch)
(uri (crate-uri "glow" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0a1p6c9nff09m4gn0xnnschcpjq35y7c12w69ar8l2mnwj0fa3ya"))))
+ (base32 "1c91n554dp4bdp5d86rpl77ryv6rjyrqn7735m7mfcivqh28wd5x"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-js-sys" ,rust-js-sys-0.3)
@@ -1540,12 +1540,27 @@ (define-public rust-glow-0.12
("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2)
("rust-web-sys" ,rust-web-sys-0.3))))
(home-page "https://github.com/grovesNL/glow.git")
- (synopsis "Bindings to run GL anywhere")
+ (synopsis "GL on Whatever: bindings to run Open GL (ES) and WebGL")
(description
- "GL on Whatever: a set of bindings to run GL (Open GL, @code{OpenGL} ES, and
-@code{WebGL}) anywhere, and avoid target-specific code.")
+ "GL on Whatever: this package provides a set of bindings to run GL
+(Open GL, @code{OpenGL} ES, and @code{WebGL}) anywhere, and avoid target-
+specific code.")
(license (list license:expat license:asl2.0 license:zlib))))
+(define-public rust-glow-0.12
+ (package
+ (inherit rust-glow-0.13)
+ (name "rust-glow")
+ (version "0.12.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "glow" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0a1p6c9nff09m4gn0xnnschcpjq35y7c12w69ar8l2mnwj0fa3ya"))))))
+
(define-public rust-glutin-0.31
(package
(name "rust-glutin")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 32/37] gnu: Add rust-glutin-winit-0.4.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-32-herman@rimm.ee
* gnu/packages/crates-graphics.scm (rust-glutin-winit-0.4): Add
variable.

Change-Id: I3bcf7b108ca852994830748cc3d4d137f1489a36
---
gnu/packages/crates-graphics.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)

Toggle diff (37 lines)
diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index ac1c74b516..a087945dea 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -1931,6 +1931,30 @@ (define-public rust-glutin-wgl-sys-0.1
#:cargo-inputs
(("rust-gl-generator" ,rust-gl-generator-0.14))))))
+(define-public rust-glutin-winit-0.4
+ (package
+ (name "rust-glutin-winit")
+ (version "0.4.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "glutin-winit" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0dbppmj0m2i5df4ww565f5kg3vxmjbq5c7hqql988fzp4jxdzg0y"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-cfg-aliases" ,rust-cfg-aliases-0.1)
+ ("rust-glutin" ,rust-glutin-0.31)
+ ("rust-raw-window-handle" ,rust-raw-window-handle-0.5)
+ ("rust-winit" ,rust-winit-0.29))))
+ (home-page "https://github.com/rust-windowing/glutin")
+ (synopsis "Glutin bootstrapping helpers with winit")
+ (description
+ "This package provides glutin bootstrapping helpers with winit.")
+ (license license:expat)))
+
(define-public rust-gpu-alloc-0.6
(package
(name "rust-gpu-alloc")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 34/37] gnu: Add rust-egui-plot-0.26.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-34-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-egui-plot-0.26): Add variable.

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

Toggle diff (37 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 5ef4f76fe5..92a525000e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20848,6 +20848,30 @@ (define-public rust-egui-glow-0.26
glow library.")
(license (list license:expat license:asl2.0))))
+(define-public rust-egui-plot-0.26
+ (package
+ (name "rust-egui-plot")
+ (version "0.26.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "egui_plot" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0n6z8gmjjrfv1yqndnvd958n1l9hjwcwjsp20vqxfk99mnqzqfw0"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-document-features" ,rust-document-features-0.2)
+ ("rust-egui" ,rust-egui-0.26)
+ ("rust-serde" ,rust-serde-1))))
+ (home-page "https://github.com/emilk/egui")
+ (synopsis "Immediate mode plotting for the egui GUI library")
+ (description
+ "This package provides immediate mode plotting for the egui GUI
+library.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-egui-winit-0.26
(package
(name "rust-egui-winit")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 35/37] gnu: Add rust-libudev-sys-0.1.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-35-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-libudev-sys-0.1): Add variable.

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

Toggle diff (35 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 92a525000e..bfbc5f63e6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -35303,6 +35303,28 @@ (define-public rust-libsqlite3-sys-0.20
("rust-pkg-config" ,rust-pkg-config-0.3)
("rust-vcpkg" ,rust-vcpkg-0.2))))))
+(define-public rust-libudev-sys-0.1
+ (package
+ (name "rust-libudev-sys")
+ (version "0.1.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "libudev-sys" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "09236fdzlx9l0dlrsc6xx21v5x8flpfm3d5rjq9jr5ivlas6k11w"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+ ("rust-pkg-config" ,rust-pkg-config-0.3))))
+ (native-inputs (list pkg-config))
+ (inputs (list eudev))
+ (home-page "https://github.com/dcuddeback/libudev-sys")
+ (synopsis "FFI bindings to libudev")
+ (description "This package provides FFI bindings to libudev.")
+ (license license:expat)))
+
(define-public rust-libxml-0.3
(package
(name "rust-libxml")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 33/37] gnu: Add rust-eframe-0.26.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-33-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-eframe-0.26): Add variable.
* gnu/packages/patches/rust-eframe-unix-only.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register file.

Change-Id: I02104386c91baa2a1a563212af7ccf1507553077
---
gnu/local.mk | 1 +
gnu/packages/crates-io.scm | 50 ++++++
.../patches/rust-eframe-unix-only.patch | 152 ++++++++++++++++++
3 files changed, 203 insertions(+)
create mode 100644 gnu/packages/patches/rust-eframe-unix-only.patch

Toggle diff (233 lines)
diff --git a/gnu/local.mk b/gnu/local.mk
index 355889f1b7..2f9fdb675c 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2009,6 +2009,7 @@ dist_patch_DATA = \
%D%/packages/patches/rust-arboard-2-unix-only.patch \
%D%/packages/patches/rust-arboard-3-unix-only.patch \
%D%/packages/patches/rust-cargo-edit-remove-ureq.patch \
+ %D%/packages/patches/rust-eframe-unix-only.patch \
%D%/packages/patches/rust-ring-0.17-ring-core.patch \
%D%/packages/patches/rust-ndarray-remove-blas-src-dep.patch \
%D%/packages/patches/rust-ndarray-0.13-remove-blas-src.patch \
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 489cde6da2..5ef4f76fe5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20711,6 +20711,56 @@ (define-public rust-editdistancek-1
"This crate provides fast algorithm for computing edit distance.")
(license license:expat)))
+(define-public rust-eframe-0.26
+ (package
+ (name "rust-eframe")
+ (version "0.26.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "eframe" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0vzjpm6kmqnnyhsvm4gq7yi7033m7mq88x15h2vnigqkdnxw2mn4"))
+ (patches (search-patches "rust-eframe-unix-only.patch"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-bytemuck" ,rust-bytemuck-1)
+ ("rust-directories-next" ,rust-directories-next-2)
+ ("rust-document-features" ,rust-document-features-0.2)
+ ("rust-egui" ,rust-egui-0.26)
+ ("rust-egui-winit" ,rust-egui-winit-0.26)
+ ("rust-egui-glow" ,rust-egui-glow-0.26)
+ ("rust-glow" ,rust-glow-0.13)
+ ("rust-glutin" ,rust-glutin-0.31)
+ ("rust-glutin-winit" ,rust-glutin-winit-0.4)
+ ("rust-image" ,rust-image-0.24)
+ ("rust-js-sys" ,rust-js-sys-0.3)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-parking-lot" ,rust-parking-lot-0.12)
+ ("rust-percent-encoding" ,rust-percent-encoding-2)
+ ("rust-pollster" ,rust-pollster-0.3)
+ ("rust-puffin" ,rust-puffin-0.19)
+ ("rust-raw-window-handle" ,rust-raw-window-handle-0.6)
+ ("rust-raw-window-handle" ,rust-raw-window-handle-0.5)
+ ("rust-ron" ,rust-ron-0.8)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-static-assertions" ,rust-static-assertions-1)
+ ("rust-thiserror" ,rust-thiserror-1)
+ ("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2)
+ ("rust-wasm-bindgen-futures" ,rust-wasm-bindgen-futures-0.4)
+ ("rust-web-sys" ,rust-web-sys-0.3)
+ ("rust-web-time" ,rust-web-time-0.2)
+ ("rust-winapi" ,rust-winapi-0.3)
+ ("rust-winit" ,rust-winit-0.29))))
+ (home-page "https://github.com/emilk/egui/tree/master/crates/eframe")
+ (synopsis "Write GUI apps that compile natively and for web")
+ (description
+ "This package provides the egui framework: write GUI apps that
+compile to web and/or natively.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-ego-tree-0.6
(package
(name "rust-ego-tree")
diff --git a/gnu/packages/patches/rust-eframe-unix-only.patch b/gnu/packages/patches/rust-eframe-unix-only.patch
new file mode 100644
index 0000000000..656cbdd0a5
--- /dev/null
+++ b/gnu/packages/patches/rust-eframe-unix-only.patch
@@ -0,0 +1,152 @@
+diff --git a/Cargo.toml b/Cargo.toml
+index 0065f39..c0b3c13 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -115,7 +115,6 @@ default = [
+ "default_fonts",
+ "glow",
+ "wayland",
+- "web_screen_reader",
+ "winit/default",
+ "x11",
+ ]
+@@ -139,49 +138,21 @@ puffin = [
+ "dep:puffin",
+ "egui/puffin",
+ "egui_glow?/puffin",
+- "egui-wgpu?/puffin",
+ "egui-winit/puffin",
+ ]
+ wayland = [
+ "egui-winit/wayland",
+- "egui-wgpu?/wayland",
+ "egui_glow?/wayland",
+ ]
+-web_screen_reader = [
+- "web-sys/SpeechSynthesis",
+- "web-sys/SpeechSynthesisUtterance",
+-]
+-wgpu = [
+- "dep:wgpu",
+- "dep:egui-wgpu",
+- "dep:pollster",
+-]
+ x11 = [
+ "egui-winit/x11",
+- "egui-wgpu?/x11",
+ "egui_glow?/x11",
+ ]
+
+-[target."cfg(any(target_os = \"macos\"))".dependencies.cocoa]
+-version = "0.25.0"
+-
+-[target."cfg(any(target_os = \"macos\"))".dependencies.objc]
+-version = "0.2.7"
+-
+-[target."cfg(any(target_os = \"windows\"))".dependencies.winapi]
+-version = "0.3.9"
+-features = ["winuser"]
+-
+ [target."cfg(not(target_arch = \"wasm32\"))".dependencies.directories-next]
+ version = "2"
+ optional = true
+
+-[target."cfg(not(target_arch = \"wasm32\"))".dependencies.egui-wgpu]
+-version = "0.26.2"
+-features = ["winit"]
+-optional = true
+-default-features = false
+-
+ [target."cfg(not(target_arch = \"wasm32\"))".dependencies.egui-winit]
+ version = "0.26.2"
+ features = [
+@@ -211,89 +182,7 @@ optional = true
+ version = "0.19"
+ optional = true
+
+-[target."cfg(not(target_arch = \"wasm32\"))".dependencies.wgpu]
+-version = "0.19.1"
+-features = [
+- "fragile-send-sync-non-atomic-wasm",
+- "metal",
+- "webgpu",
+-]
+-optional = true
+-default-features = false
+-
+ [target."cfg(not(target_arch = \"wasm32\"))".dependencies.winit]
+ version = "0.29.4"
+ features = ["rwh_06"]
+ default-features = false
+-
+-[target."cfg(target_arch = \"wasm32\")".dependencies.bytemuck]
+-version = "1.7"
+-
+-[target."cfg(target_arch = \"wasm32\")".dependencies.egui-wgpu]
+-version = "0.26.2"
+-optional = true
+-default-features = false
+-
+-[target."cfg(target_arch = \"wasm32\")".dependencies.js-sys]
+-version = "0.3"
+-
+-[target."cfg(target_arch = \"wasm32\")".dependencies.percent-encoding]
+-version = "2.1"
+-
+-[target."cfg(target_arch = \"wasm32\")".dependencies.wasm-bindgen]
+-version = "0.2"
+-
+-[target."cfg(target_arch = \"wasm32\")".dependencies.wasm-bindgen-futures]
+-version = "0.4"
+-
+-[target."cfg(target_arch = \"wasm32\")".dependencies.web-sys]
+-version = "0.3.58"
+-features = [
+- "BinaryType",
+- "Blob",
+- "Clipboard",
+- "ClipboardEvent",
+- "CompositionEvent",
+- "console",
+- "CssStyleDeclaration",
+- "DataTransfer",
+- "DataTransferItem",
+- "DataTransferItemList",
+- "Document",
+- "DomRect",
+- "DragEvent",
+- "Element",
+- "Event",
+- "EventListener",
+- "EventTarget",
+- "ExtSRgb",
+- "File",
+- "FileList",
+- "FocusEvent",
+- "HtmlCanvasElement",
+- "HtmlElement",
+- "HtmlInputElement",
+- "InputEvent",
+- "KeyboardEvent",
+- "Location",
+- "MediaQueryList",
+- "MediaQueryListEvent",
+- "MouseEvent",
+- "Navigator",
+- "Performance",
+- "Storage",
+- "Touch",
+- "TouchEvent",
+- "TouchList",
+- "WebGl2RenderingContext",
+- "WebglDebugRendererInfo",
+- "WebGlRenderingContext",
+- "WheelEvent",
+- "Window",
+-]
+-
+-[target."cfg(target_arch = \"wasm32\")".dependencies.wgpu]
+-version = "0.19.1"
+-features = ["fragile-send-sync-non-atomic-wasm"]
+-optional = true
+-default-features = false
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 36/37] gnu: Add rust-gilrs-core-0.5.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-36-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-gilrs-core-0.5): Add variable.
* gnu/packages/patches/rust-gilrs-core-unix-only.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register file.

Change-Id: I791d20d9d83f0d7ff6569b3d82314a72e4656a30
---
gnu/local.mk | 1 +
gnu/packages/crates-io.scm | 37 ++++++++++++
.../patches/rust-gilrs-core-unix-only.patch | 57 +++++++++++++++++++
3 files changed, 95 insertions(+)
create mode 100644 gnu/packages/patches/rust-gilrs-core-unix-only.patch

Toggle diff (125 lines)
diff --git a/gnu/local.mk b/gnu/local.mk
index 2f9fdb675c..78d104ff08 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2010,6 +2010,7 @@ dist_patch_DATA = \
%D%/packages/patches/rust-arboard-3-unix-only.patch \
%D%/packages/patches/rust-cargo-edit-remove-ureq.patch \
%D%/packages/patches/rust-eframe-unix-only.patch \
+ %D%/packages/patches/rust-gilrs-core-unix-only.patch \
%D%/packages/patches/rust-ring-0.17-ring-core.patch \
%D%/packages/patches/rust-ndarray-remove-blas-src-dep.patch \
%D%/packages/patches/rust-ndarray-0.13-remove-blas-src.patch \
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index bfbc5f63e6..930b61a4a8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -27208,6 +27208,43 @@ (define-public rust-ghost-0.1
;; Either license can be chosen at the users option.
(license (list license:expat license:asl2.0))))
+(define-public rust-gilrs-core-0.5
+ (package
+ (name "rust-gilrs-core")
+ (version "0.5.10")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "gilrs-core" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0nlc1qx1819hi28zyqgv6cjw2r0dxarw217819s6vwyjgmxq5w8a"))
+ (patches (search-patches "rust-gilrs-core-unix-only.patch"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-inotify" ,rust-inotify-0.10)
+ ("rust-js-sys" ,rust-js-sys-0.3)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-libudev-sys" ,rust-libudev-sys-0.1)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-nix" ,rust-nix-0.27)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-uuid" ,rust-uuid-1)
+ ("rust-vec-map" ,rust-vec-map-0.8)
+ ("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2)
+ ("rust-web-sys" ,rust-web-sys-0.3)
+ ("rust-windows" ,rust-windows-0.44))
+ #:cargo-development-inputs
+ (("rust-env-logger" ,rust-env-logger-0.10))))
+ (native-inputs (list pkg-config))
+ (inputs (list eudev))
+ (home-page "https://gitlab.com/gilrs-project/gilrs")
+ (synopsis "Event based abstraction for working with gamepads")
+ (description
+ "This package provides a minimal event based abstraction for
+working with gamepads.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-gimli-0.27
(package
(name "rust-gimli")
diff --git a/gnu/packages/patches/rust-gilrs-core-unix-only.patch b/gnu/packages/patches/rust-gilrs-core-unix-only.patch
new file mode 100644
index 0000000000..767693f4e3
--- /dev/null
+++ b/gnu/packages/patches/rust-gilrs-core-unix-only.patch
@@ -0,0 +1,57 @@
+diff --git a/Cargo.toml b/Cargo.toml
+index 4065497..d5ac0cf 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -48,10 +48,6 @@ version = "0.10.0"
+ default = ["wgi"]
+ serde-serialize = ["serde"]
+ wgi = ["windows"]
+-xinput = [
+- "rusty-xinput",
+- "winapi",
+-]
+
+ [target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\"))".dependencies.inotify]
+ version = "0.10.2"
+@@ -74,41 +70,6 @@ default-features = false
+ [target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\"))".dependencies.vec_map]
+ version = "0.8"
+
+-[target."cfg(target_arch = \"wasm32\")".dependencies.js-sys]
+-version = "0.3"
+-
+-[target."cfg(target_arch = \"wasm32\")".dependencies.wasm-bindgen]
+-version = "0.2"
+-
+-[target."cfg(target_arch = \"wasm32\")".dependencies.web-sys]
+-version = "0.3"
+-features = [
+- "Gamepad",
+- "GamepadButton",
+- "GamepadMappingType",
+- "Window",
+- "Navigator",
+- "DomException",
+-]
+-
+-[target."cfg(target_os = \"macos\")".dependencies.core-foundation]
+-version = "0.9.3"
+-
+-[target."cfg(target_os = \"macos\")".dependencies.io-kit-sys]
+-version = "0.4.0"
+-
+-[target."cfg(target_os = \"macos\")".dependencies.vec_map]
+-version = "0.8"
+-
+-[target."cfg(target_os = \"windows\")".dependencies.rusty-xinput]
+-version = "1.2.0"
+-optional = true
+-
+-[target."cfg(target_os = \"windows\")".dependencies.winapi]
+-version = "0.3.4"
+-features = ["xinput"]
+-optional = true
+-
+ [target."cfg(target_os = \"windows\")".dependencies.windows]
+ version = ">=0.44, <=0.52"
+ features = [
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 37/37] gnu: Add rust-gilrs-0.10.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-37-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-gilrs-0.10): Add variable.

Change-Id: I607eb1e06aaad5e73872a7104d2c0f75894d0173
---
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 930b61a4a8..0351c06f15 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -27208,6 +27208,31 @@ (define-public rust-ghost-0.1
;; Either license can be chosen at the users option.
(license (list license:expat license:asl2.0))))
+(define-public rust-gilrs-0.10
+ (package
+ (name "rust-gilrs")
+ (version "0.10.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "gilrs" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1ywjjl8nvvhzbgym1jf4hagmmfsaamgqqqz89b8baimrkixfbcnq"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs (("rust-fnv" ,rust-fnv-1)
+ ("rust-gilrs-core" ,rust-gilrs-core-0.5)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-uuid" ,rust-uuid-1)
+ ("rust-vec-map" ,rust-vec-map-0.8))))
+ (home-page "https://gitlab.com/gilrs-project/gilrs")
+ (synopsis "Game Input Library for Rust")
+ (description "This package provides a game input library for rust.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-gilrs-core-0.5
(package
(name "rust-gilrs-core")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 29/37] gnu: Add rust-egui-winit-0.26.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-29-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-egui-winit-0.26): Add variable.

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

Toggle diff (46 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0100995071..d51b9a8795 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20762,6 +20762,39 @@ (define-public rust-egui-0.26
on both web and native.")
(license (list license:expat license:asl2.0))))
+(define-public rust-egui-winit-0.26
+ (package
+ (name "rust-egui-winit")
+ (version "0.26.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "egui-winit" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "18h4n3ldp6f7xdn71x7948q8ra3fnx327ss50m4d8w4zv3w48kda"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-accesskit-winit" ,rust-accesskit-winit-0.16)
+ ("rust-arboard" ,rust-arboard-3)
+ ("rust-document-features" ,rust-document-features-0.2)
+ ("rust-egui" ,rust-egui-0.26)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-puffin" ,rust-puffin-0.19)
+ ("rust-raw-window-handle" ,rust-raw-window-handle-0.6)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-smithay-clipboard" ,rust-smithay-clipboard-0.7)
+ ("rust-web-time" ,rust-web-time-0.2)
+ ("rust-webbrowser" ,rust-webbrowser-0.8)
+ ("rust-winit" ,rust-winit-0.29))))
+ (home-page
+ "https://github.com/emilk/egui/tree/master/crates/egui-winit")
+ (synopsis "Bindings for using egui with winit")
+ (description
+ "This package provides bindings for using egui with winit.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-either-1
(package
(name "rust-either")
--
2.41.0
H
H
Herman Rimm wrote on 14 Mar 22:16 +0100
[PATCH rust-team 25/37] gnu: Add rust-color-hex-0.2.
(address . 69803@debbugs.gnu.org)(name . Herman Rimm)(address . herman@rimm.ee)
20240314211638.6190-25-herman@rimm.ee
* gnu/packages/crates-io.scm (rust-color-hex-0.2): Add variable.

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

Toggle diff (33 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c88e535fcc..1cf23d1dd6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -12561,6 +12561,26 @@ (define-public rust-color-eyre-0.6
and well formatted error reports for all kinds of errors.")
(license (list license:expat license:asl2.0))))
+(define-public rust-color-hex-0.2
+ (package
+ (name "rust-color-hex")
+ (version "0.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "color-hex" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1yacshskcjybr727rh6d38lrfrcdivnd184h49j6qsrj7a8zppzc"))))
+ (build-system cargo-build-system)
+ (home-page "https://github.com/newcomb-luke/color-hex")
+ (synopsis
+ "Convert hexadecimal strings to an RGBA byte array at compile time")
+ (description
+ "This package provides a procedural macro for converting hexadecimal
+strings to an RGB or RGBA byte array at compile time.")
+ (license license:expat)))
+
(define-public rust-color-print-0.3
(package
(name "rust-color-print")
--
2.41.0
?
Your comment

Commenting via the web interface is currently disabled.

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

To respond to this issue using the mumi CLI, first switch to it
mumi current 69803
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