[PATCH rust-team 0/2] Upgrading rust-rocket and rust-pear

  • Open
  • quality assurance status badge
Details
One participant
  • Aaron Covrig
Owner
unassigned
Submitted by
Aaron Covrig
Severity
normal
A
A
Aaron Covrig wrote on 8 Mar 03:08 +0100
(address . guix-patches@gnu.org)(name . Aaron Covrig)(address . aaron.covrig.us@ieee.org)
20240308020859.166362-1-aaron.covrig.us@ieee.org
Upgraded rust-rocket and added pear-0.2 along with their
dependencies, and enabled building and testing them. This does
require setting RUSTC_BOOTSTRAP=1 and modifying a few build.rs
files to enable building with #![feature] support required by
pear-0.1. Additionally, this does add a few missing crates to a
few of the Cargo.toml files to allow for running some of the test
cases.

Aaron Covrig (2):
gnu: rust-pear: Added version 0.2.8 with deps
gnu: rust-rocket: Upgraded and enabled full build

gnu/packages/crates-io.scm | 107 +++++++++++++++++-----
gnu/packages/crates-web.scm | 171 ++++++++++++++++++++++++------------
2 files changed, 198 insertions(+), 80 deletions(-)


base-commit: d29e5a83e887cd2f4f459a12cbbfc40c77e55ce2
--
2.41.0
A
A
Aaron Covrig wrote on 8 Mar 03:14 +0100
[PATCH rust-team 1/2] gnu: rust-pear: Added version 0.2.8 with deps
(address . 69620@debbugs.gnu.org)(name . Aaron Covrig)(address . aarcov@gmail.com)
20240308021422.166484-1-aaron.covrig.us@ieee.org
From: Aaron Covrig <aarcov@gmail.com>

* gnu/packages/crates-io.scm (rust-inlinable-string-0.1) : Added inlinable-string version 0.1.15.
* gnu/packages/crates-io.scm (rust-pear-0.2) : Added version 0.2.8.
* gnu/packages/crates-io.scm (rust-pear-codengen-0.2) : Changed to full build with tests
* gnu/packages/crates-io.scm (rust-pear-0.1) : Changed to full build
with tests
* gnu/packages/crates-io.scm (rust-pear-codegen-0.1) : Changed to full build
with tests
---
gnu/packages/crates-io.scm | 107 +++++++++++++++++++++++++++++--------
1 file changed, 84 insertions(+), 23 deletions(-)

Toggle diff (161 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1a08748392..8a81a75e30 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -30496,6 +30496,31 @@ (define-public rust-inline-c-macro-0.1
writing and executing C code inside Rust.")
(license license:bsd-3)))
+(define-public rust-inlinable-string-0.1
+ (package
+ (name "rust-inlinable-string")
+ (version "0.1.15")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "inlinable_string" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1ysjci8yfvxgf51z0ny2nnwhxrclhmb3vbngin8v4bznhr3ybyn8"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-serde" ,rust-serde-1))
+ #:cargo-development-inputs (("rust-serde-test" ,rust-serde-test-1))))
+ (home-page "https://github.com/fitzgen/inlinable_string")
+ (synopsis "Provides inline strings that avoid heap-allocation")
+ (description
+ "The @code{inlinable_string} crate provides the @code{InlinableString} type
+-- an owned, grow-able UTF-8 string that stores small strings inline and avoids
+heap-allocation -- and the @code{StringExt} trait which abstracts string
+operations over both @code{std::string::String} and @code{InlinableString} (or
+even your own custom string type)")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-inotify-0.10
(package
(name "rust-inotify")
@@ -46264,27 +46289,47 @@ (define-public rust-pdqselect-0.1
pdqsort.")
(license (list license:asl2.0 license:expat))))
-(define-public rust-pear-0.1
+(define-public rust-pear-0.2
(package
(name "rust-pear")
- (version "0.1.5")
+ (version "0.2.8")
(source
(origin
(method url-fetch)
(uri (crate-uri "pear" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "02lnp8c414z5ds0lskd4zxlalrjljzpkg8g6kizszij4h52sgprj"))))
+ (base32 "1j03s6m80iqldnm6jzh3k1fbyk0lxirx8bi4ivgq3k3sq7va1k2c"))))
(build-system cargo-build-system)
(arguments
- `(#:skip-build? #t
- #:cargo-inputs
- (("rust-pear-codegen" ,rust-pear-codegen-0.1))))
+ `(#:cargo-inputs (("rust-inlinable-string" ,rust-inlinable-string-0.1)
+ ("rust-pear-codegen" ,rust-pear-codegen-0.2)
+ ("rust-yansi" ,rust-yansi-1))))
(home-page "https://crates.io/crates/pear")
(synopsis "Pear is a fruit")
(description "This package provides a pear is a fruit.")
(license (list license:expat license:asl2.0))))
+(define-public rust-pear-0.1
+ (package
+ (inherit rust-pear-0.2)
+ (name "rust-pear")
+ (version "0.1.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "pear" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "02lnp8c414z5ds0lskd4zxlalrjljzpkg8g6kizszij4h52sgprj"))))
+ (arguments
+ `(#:cargo-inputs (("rust-pear-codegen" ,rust-pear-codegen-0.1))
+ #:phases (modify-phases %standard-phases
+ ;; Enable using nightly/dev features
+ (add-after 'unpack 'enable-unstable-features
+ (lambda _
+ (setenv "RUSTC_BOOTSTRAP" "1"))))))))
+
(define-public rust-pear-codegen-0.2
(package
(name "rust-pear-codegen")
@@ -46295,19 +46340,25 @@ (define-public rust-pear-codegen-0.2
(uri (crate-uri "pear_codegen" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0xrwnlncg7l64gfy82vf6kq55ww7p6krq6bc3pqwymxpiq76f8if"))))
+ (base32 "0xrwnlncg7l64gfy82vf6kq55ww7p6krq6bc3pqwymxpiq76f8if"))
+ (modules '((guix build utils)))
+ (snippet '(begin
+ ;; Add missing development dependency (for tests)
+ (substitute* "Cargo.toml"
+ (("\\[dev-dependencies\\]" all)
+ (string-append "[dev-dependencies.pear]" "\n"
+ "version = \"0.2.8\""))) #t))))
(build-system cargo-build-system)
(arguments
- `(#:tests? #f ; use of undeclared crate or module `pear`
- #:cargo-inputs
- (("rust-proc-macro2" ,rust-proc-macro2-1)
- ("rust-proc-macro2-diagnostics" ,rust-proc-macro2-diagnostics-0.10)
- ("rust-quote" ,rust-quote-1)
- ("rust-syn" ,rust-syn-2))))
+ `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
+ ("rust-proc-macro2-diagnostics" ,rust-proc-macro2-diagnostics-0.10)
+ ("rust-quote" ,rust-quote-1)
+ ("rust-syn" ,rust-syn-2))
+ ;; Add missing dev crate
+ #:cargo-development-inputs (("rust-pear" ,rust-pear-0.2))))
(home-page "https://crates.io/crates/pear_codegen")
(synopsis "Codegen for pear")
- (description
- "This package provides a (codegen) pear is a fruit.")
+ (description "This package provides a (codegen) pear is a fruit.")
(license (list license:expat license:asl2.0))))
(define-public rust-pear-codegen-0.1
@@ -46321,15 +46372,25 @@ (define-public rust-pear-codegen-0.1
(uri (crate-uri "pear_codegen" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "19lcpkfspizd4ywwvca6rxgc311m070k3ndvwa9vrbw1snjqna60"))))
+ (base32 "19lcpkfspizd4ywwvca6rxgc311m070k3ndvwa9vrbw1snjqna60"))
+ (modules '((guix build utils)))
+ (snippet '(begin
+ (delete-file "build.rs")))))
+ (build-system cargo-build-system)
(arguments
- `(#:skip-build? #t
- #:cargo-inputs
- (("rust-proc-macro2" ,rust-proc-macro2-0.4)
- ("rust-quote" ,rust-quote-0.6)
- ("rust-syn" ,rust-syn-0.15)
- ("rust-version-check" ,rust-version-check-0.9)
- ("rust-yansi" ,rust-yansi-0.5))))))
+ `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-0.4)
+ ("rust-quote" ,rust-quote-0.6)
+ ("rust-syn" ,rust-syn-0.15)
+ ;; development inputs here to address build issues
+ ("rust-version-check" ,rust-version-check-0.9)
+ ("rust-yansi" ,rust-yansi-0.5))
+ #:cargo-development-inputs (("rust-version-check" ,rust-version-check-0.9)
+ ("rust-yansi" ,rust-yansi-0.5))
+ #:phases (modify-phases %standard-phases
+ ;; Enable using nightly/dev features
+ (add-after 'unpack 'enable-unstable-features
+ (lambda _
+ (setenv "RUSTC_BOOTSTRAP" "1"))))))))
(define-public rust-peeking-take-while-0.1
(package
--
2.41.0
A
A
Aaron Covrig wrote on 8 Mar 03:14 +0100
[PATCH rust-team 2/2] gnu: rust-rocket: Upgraded and enabled full build
(address . 69620@debbugs.gnu.org)(name . Aaron Covrig)(address . aarcov@gmail.com)
20240308021422.166484-2-aaron.covrig.us@ieee.org
From: Aaron Covrig <aarcov@gmail.com>

* gnu/packages/crates-web.scm (rust-hyper-sync-rustls-0.3) : Upgraded to version 0.3.0-rc17 (and maintained v0.3.0-rc4 as latest has breaking changes)
* gnu/packages/crates-web.scm (rust-rocket) : Upgraded to v0.4.11 and changed to full build
* gnu/packages/crates-web.scm (rust-rocket-codegen) : Upgraded to v0.4.11 and changed to build
* gnu/packages/crates-web.scm (rust-rocket-http) : Upgraded to v0.4.11 and changed to build with tests
---
gnu/packages/crates-web.scm | 171 ++++++++++++++++++++++++------------
1 file changed, 114 insertions(+), 57 deletions(-)

Toggle diff (250 lines)
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 60c735efa7..58436084ed 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -42,6 +42,7 @@ (define-module (gnu packages crates-web)
#:use-module (gnu packages crates-windows)
#:use-module (gnu packages curl)
#:use-module (gnu packages gtk)
+ #:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages tls)
#:use-module (gnu packages webkit))
@@ -3178,33 +3179,53 @@ (define-public rust-hyper-rustls-0.21
(define-public rust-hyper-sync-rustls-0.3
(package
(name "rust-hyper-sync-rustls")
- (version "0.3.0-rc.4")
+ (version "0.3.0-rc.17")
(source
(origin
(method url-fetch)
(uri (crate-uri "hyper-sync-rustls" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "16zirxhsk26kz5jxxxs37wxsm02id97h57kkqs512fj1j0x486kd"))))
+ (base32 "1az37mc4dgxgpqc745r495nm2dwx48amw2w6c8mnwj00xb219c2c"))))
(build-system cargo-build-system)
(arguments
- `(#:cargo-test-flags
- '("--release" "--"
- ;; not all files included
- "--skip=client"
- "--skip=server")
- #:cargo-inputs
- (("rust-hyper" ,rust-hyper-0.10)
- ("rust-rustls" ,rust-rustls-0.14)
- ("rust-webpki" ,rust-webpki-0.18)
- ("rust-webpki-roots" ,rust-webpki-roots-0.15))
- #:cargo-development-inputs (("rust-env-logger" ,rust-env-logger-0.5))))
+ `(#:cargo-test-flags '("--release" "--"
+ ;; skip tests client/server tests
+ "--skip=client" "--skip=server")
+ #:cargo-inputs (("rust-hyper" ,rust-hyper-0.10)
+ ("rust-rustls" ,rust-rustls-0.17)
+ ("rust-webpki" ,rust-webpki-0.21)
+ ("rust-webpki-roots" ,rust-webpki-roots-0.19))
+ #:cargo-development-inputs (("rust-env-logger" ,rust-env-logger-0.7))))
+ (native-inputs (list perl))
(home-page "https://github.com/SergioBenitez/hyper-sync-rustls")
(synopsis "Glue code for Rustls and synchronous Hyper")
(description
"This package provides glue code for Rustls and synchronous Hyper.")
(license (list license:expat license:asl2.0))))
+(define-public rust-hyper-sync-rustls-0.3-rc4
+ (package
+ (inherit rust-hyper-sync-rustls-0.3)
+ (name "rust-hyper-sync-rustls")
+ (version "0.3.0-rc.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "hyper-sync-rustls" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "16zirxhsk26kz5jxxxs37wxsm02id97h57kkqs512fj1j0x486kd"))))
+ (arguments
+ `(#:cargo-test-flags '("--release" "--"
+ ;; not all files included
+ "--skip=client" "--skip=server")
+ #:cargo-inputs (("rust-hyper" ,rust-hyper-0.10)
+ ("rust-rustls" ,rust-rustls-0.14)
+ ("rust-webpki" ,rust-webpki-0.18)
+ ("rust-webpki-roots" ,rust-webpki-roots-0.15))
+ #:cargo-development-inputs (("rust-env-logger" ,rust-env-logger-0.5))))))
+
(define-public rust-hyper-timeout-0.4
(package
(name "rust-hyper-timeout")
@@ -3659,32 +3680,50 @@ (define-public rust-reqwest-0.10
(define-public rust-rocket-0.4
(package
(name "rust-rocket")
- (version "0.4.7")
+ (version "0.4.11")
(source
(origin
(method url-fetch)
(uri (crate-uri "rocket" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "04ybnhjw92zaan92lsmx6mkhqc9cpsg3885svb3wzyj39pyzvsvz"))))
+ (base32 "0pimz9v0737dvz487j0kij7kasjyahaxd7ba2bcc3p6513fdkfc3"))
+ (modules '((guix build utils)))
+ (snippet '(begin
+ ;; enable nightly/dev in build.rs for RUSTC_BOOTSTRAP build
+ (substitute* "build.rs"
+ (("if !channel.supports_features")
+ "/* if !channel.supports_features")
+ (("if !version.at_least")
+ "*/ \nif !version.at_least"))
+ ;; Add missing development dependency (for tests)
+ (substitute* "Cargo.toml"
+ (("\\[features\\]" all)
+ (string-append "[dev-dependencies.lazy_static]" "\n"
+ "version = \"1\"" "\n" all))) #t))))
(build-system cargo-build-system)
(arguments
- `(#:skip-build? #t
- #:cargo-inputs
- (("rust-atty" ,rust-atty-0.2)
- ("rust-base64" ,rust-base64-0.12)
- ("rust-log" ,rust-log-0.4)
- ("rust-memchr" ,rust-memchr-2)
- ("rust-num-cpus" ,rust-num-cpus-1)
- ("rust-pear" ,rust-pear-0.1)
- ("rust-rocket-codegen" ,rust-rocket-codegen-0.4)
- ("rust-rocket-http" ,rust-rocket-http-0.4)
- ("rust-state" ,rust-state-0.4)
- ("rust-time" ,rust-time-0.1)
- ("rust-toml" ,rust-toml-0.4)
- ("rust-version-check" ,rust-version-check-0.9)
- ("rust-yansi" ,rust-yansi-0.5)
- ("rust-yansi" ,rust-yansi-0.5))))
+ `(#:cargo-inputs (("rust-atty" ,rust-atty-0.2)
+ ("rust-base64" ,rust-base64-0.12)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-memchr" ,rust-memchr-2)
+ ("rust-num-cpus" ,rust-num-cpus-1)
+ ("rust-pear" ,rust-pear-0.1)
+ ("rust-rocket-codegen" ,rust-rocket-codegen-0.4)
+ ("rust-rocket-http" ,rust-rocket-http-0.4)
+ ("rust-state" ,rust-state-0.4)
+ ("rust-time" ,rust-time-0.1)
+ ("rust-toml" ,rust-toml-0.4)
+ ("rust-version-check" ,rust-version-check-0.9)
+ ("rust-yansi" ,rust-yansi-0.5)
+ ("rust-yansi" ,rust-yansi-0.5))
+ ;; Adding in missing dev dependency
+ #:cargo-development-inputs (("rust-lazy-static" ,rust-lazy-static-1))
+ #:phases (modify-phases %standard-phases
+ ;; Enable using nightly/dev features
+ (add-after 'unpack 'enable-unstable-features
+ (lambda _
+ (setenv "RUSTC_BOOTSTRAP" "1"))))))
(home-page "https://rocket.rs")
(synopsis
"Web framework with focus on ease-of-use, expressibility, and speed")
@@ -3696,25 +3735,38 @@ (define-public rust-rocket-0.4
(define-public rust-rocket-codegen-0.4
(package
(name "rust-rocket-codegen")
- (version "0.4.7")
+ (version "0.4.11")
(source
(origin
(method url-fetch)
(uri (crate-uri "rocket_codegen" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "18s2dll8c4sd26s8cfr6cizj5z55xwnk6r6x7b2wvcf8n9ajrb6f"))))
+ (base32 "1zl4f99s4df8fpkps53qn77030baww4x7zflggwql290b1xh6418"))
+ (modules '((guix build utils)))
+ (snippet '(begin
+ (substitute* "build.rs"
+ ;; enable nightly/dev in build.rs for RUSTC_BOOTSTRAP build
+ (("if !channel.supports_features")
+ "/* if !channel.supports_features")
+ (("if !version.at_least")
+ "*/ \nif !version.at_least"))))))
(build-system cargo-build-system)
(arguments
- `(#:skip-build? #t
- #:cargo-inputs
- (("rust-devise" ,rust-devise-0.2)
- ("rust-glob" ,rust-glob-0.3)
- ("rust-indexmap" ,rust-indexmap-1)
- ("rust-quote" ,rust-quote-0.6)
- ("rust-rocket-http" ,rust-rocket-http-0.4)
- ("rust-version-check" ,rust-version-check-0.9)
- ("rust-yansi" ,rust-yansi-0.5))))
+ `(#:tests? #f ;Tests depend on multiple undeclared crates
+ #:cargo-inputs (("rust-devise" ,rust-devise-0.2)
+ ("rust-glob" ,rust-glob-0.3)
+ ("rust-indexmap" ,rust-indexmap-1)
+ ("rust-quote" ,rust-quote-0.6)
+ ("rust-rocket-http" ,rust-rocket-http-0.4))
+ #:cargo-development-inputs (("rust-version-check" ,rust-version-check-0.9)
+ ("rust-yansi" ,rust-yansi-0.5)
+ ("rust-rocket" ,rust-rocket-0.4)) ;For tests
+ #:phases (modify-phases %standard-phases
+ ;; Enable using nightly/dev features
+ (add-after 'unpack 'enable-unstable-features
+ (lambda _
+ (setenv "RUSTC_BOOTSTRAP" "1"))))))
(home-page "https://rocket.rs")
(synopsis "Procedural macros for the Rocket web framework")
(description
@@ -3724,29 +3776,34 @@ (define-public rust-rocket-codegen-0.4
(define-public rust-rocket-http-0.4
(package
(name "rust-rocket-http")
- (version "0.4.7")
+ (version "0.4.11")
(source
(origin
(method url-fetch)
(uri (crate-uri "rocket_http" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0ga98nbcga8amg4xhrfkn1wljnqx9h0vv7mnay9g66vsxl042dnf"))))
+ (base32 "17xiivj4cp3anm4rxxpd8g58kzday1y2pgdys2i23wz1538wpy9b"))))
(build-system cargo-build-system)
(arguments
- `(#:skip-build? #t
- #:cargo-inputs
- (("rust-cookie" ,rust-cookie-0.11)
- ("rust-hyper" ,rust-hyper-0.10)
- ("rust-hyper-sync-rustls" ,rust-hyper-sync-rustls-0.3)
- ("rust-indexmap" ,rust-indexmap-1)
- ("rust-pear" ,rust-pear-0.1)
- ("rust-percent-encoding" ,rust-percent-encoding-1)
- ("rust-rustls" ,rust-rustls-0.14)
- ("rust-smallvec" ,rust-smallvec-1)
- ("rust-state" ,rust-state-0.4)
- ("rust-time" ,rust-time-0.1)
- ("rust-unicode-xid" ,rust-unicode-xid-0.1))))
+ `(#:cargo-test-flags ;doctests depend on undeclared crates
+ '("--lib" "--bins" "--tests" "--release")
+ #:cargo-inputs (("rust-cookie" ,rust-cookie-0.11)
+ ("rust-hyper" ,rust-hyper-0.10)
+ ("rust-hyper-sync-rustls" ,rust-hyper-sync-rustls-0.3-rc4)
+ ("rust-indexmap" ,rust-indexmap-1)
+ ("rust-pear" ,rust-pear-0.1)
+ ("rust-percent-encoding" ,rust-percent-encoding-1)
+ ("rust-rustls" ,rust-rustls-0.14)
+ ("rust-smallvec" ,rust-smallvec-1)
+ ("rust-state" ,rust-state-0.4)
+ ("rust-time" ,rust-time-0.1)
+ ("rust-unicode-xid" ,rust-unicode-xid-0.1))
+ #:phases (modify-phases %standard-phases
+ ;; Enable using nightly/dev features
+ (add-after 'unpack 'enable-unstable-features
+ (lambda _
+ (setenv "RUSTC_BOOTSTRAP" "1"))))))
(home-page "https://rocket.rs")
(synopsis "HTTP requests, responses and headers tooling for Rocket")
(description
--
2.41.0
A
A
Aaron Covrig wrote on 8 Mar 03:37 +0100
[PATCH rust-team v2 0/2] Update
(address . 69620@debbugs.gnu.org)(name . Aaron Covrig)(address . aaron.covrig.us@ieee.org)
20240308023728.166810-1-aaron.covrig.us@ieee.org
Resending with prefered email

Aaron Covrig (2):
gnu: rust-pear: Added version 0.2.8 with deps
gnu: rust-rocket: Upgraded and enabled full build

gnu/packages/crates-io.scm | 107 +++++++++++++++++-----
gnu/packages/crates-web.scm | 171 ++++++++++++++++++++++++------------
2 files changed, 198 insertions(+), 80 deletions(-)


base-commit: d29e5a83e887cd2f4f459a12cbbfc40c77e55ce2
--
2.41.0
A
A
Aaron Covrig wrote on 8 Mar 03:37 +0100
[PATCH rust-team v2 1/2] gnu: rust-pear: Added version 0.2.8 with deps
(address . 69620@debbugs.gnu.org)(name . Aaron Covrig)(address . aaron.covrig.us@ieee.org)
20240308023728.166810-2-aaron.covrig.us@ieee.org
* gnu/packages/crates-io.scm (rust-inlinable-string-0.1) : Added inlinable-string version 0.1.15.
* gnu/packages/crates-io.scm (rust-pear-0.2) : Added version 0.2.8.
* gnu/packages/crates-io.scm (rust-pear-codengen-0.2) : Changed to full build with tests
* gnu/packages/crates-io.scm (rust-pear-0.1) : Changed to full build
with tests
* gnu/packages/crates-io.scm (rust-pear-codegen-0.1) : Changed to full build
with tests
---
gnu/packages/crates-io.scm | 107 +++++++++++++++++++++++++++++--------
1 file changed, 84 insertions(+), 23 deletions(-)

Toggle diff (161 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1a08748392..8a81a75e30 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -30496,6 +30496,31 @@ (define-public rust-inline-c-macro-0.1
writing and executing C code inside Rust.")
(license license:bsd-3)))
+(define-public rust-inlinable-string-0.1
+ (package
+ (name "rust-inlinable-string")
+ (version "0.1.15")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "inlinable_string" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1ysjci8yfvxgf51z0ny2nnwhxrclhmb3vbngin8v4bznhr3ybyn8"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-serde" ,rust-serde-1))
+ #:cargo-development-inputs (("rust-serde-test" ,rust-serde-test-1))))
+ (home-page "https://github.com/fitzgen/inlinable_string")
+ (synopsis "Provides inline strings that avoid heap-allocation")
+ (description
+ "The @code{inlinable_string} crate provides the @code{InlinableString} type
+-- an owned, grow-able UTF-8 string that stores small strings inline and avoids
+heap-allocation -- and the @code{StringExt} trait which abstracts string
+operations over both @code{std::string::String} and @code{InlinableString} (or
+even your own custom string type)")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-inotify-0.10
(package
(name "rust-inotify")
@@ -46264,27 +46289,47 @@ (define-public rust-pdqselect-0.1
pdqsort.")
(license (list license:asl2.0 license:expat))))
-(define-public rust-pear-0.1
+(define-public rust-pear-0.2
(package
(name "rust-pear")
- (version "0.1.5")
+ (version "0.2.8")
(source
(origin
(method url-fetch)
(uri (crate-uri "pear" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "02lnp8c414z5ds0lskd4zxlalrjljzpkg8g6kizszij4h52sgprj"))))
+ (base32 "1j03s6m80iqldnm6jzh3k1fbyk0lxirx8bi4ivgq3k3sq7va1k2c"))))
(build-system cargo-build-system)
(arguments
- `(#:skip-build? #t
- #:cargo-inputs
- (("rust-pear-codegen" ,rust-pear-codegen-0.1))))
+ `(#:cargo-inputs (("rust-inlinable-string" ,rust-inlinable-string-0.1)
+ ("rust-pear-codegen" ,rust-pear-codegen-0.2)
+ ("rust-yansi" ,rust-yansi-1))))
(home-page "https://crates.io/crates/pear")
(synopsis "Pear is a fruit")
(description "This package provides a pear is a fruit.")
(license (list license:expat license:asl2.0))))
+(define-public rust-pear-0.1
+ (package
+ (inherit rust-pear-0.2)
+ (name "rust-pear")
+ (version "0.1.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "pear" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "02lnp8c414z5ds0lskd4zxlalrjljzpkg8g6kizszij4h52sgprj"))))
+ (arguments
+ `(#:cargo-inputs (("rust-pear-codegen" ,rust-pear-codegen-0.1))
+ #:phases (modify-phases %standard-phases
+ ;; Enable using nightly/dev features
+ (add-after 'unpack 'enable-unstable-features
+ (lambda _
+ (setenv "RUSTC_BOOTSTRAP" "1"))))))))
+
(define-public rust-pear-codegen-0.2
(package
(name "rust-pear-codegen")
@@ -46295,19 +46340,25 @@ (define-public rust-pear-codegen-0.2
(uri (crate-uri "pear_codegen" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0xrwnlncg7l64gfy82vf6kq55ww7p6krq6bc3pqwymxpiq76f8if"))))
+ (base32 "0xrwnlncg7l64gfy82vf6kq55ww7p6krq6bc3pqwymxpiq76f8if"))
+ (modules '((guix build utils)))
+ (snippet '(begin
+ ;; Add missing development dependency (for tests)
+ (substitute* "Cargo.toml"
+ (("\\[dev-dependencies\\]" all)
+ (string-append "[dev-dependencies.pear]" "\n"
+ "version = \"0.2.8\""))) #t))))
(build-system cargo-build-system)
(arguments
- `(#:tests? #f ; use of undeclared crate or module `pear`
- #:cargo-inputs
- (("rust-proc-macro2" ,rust-proc-macro2-1)
- ("rust-proc-macro2-diagnostics" ,rust-proc-macro2-diagnostics-0.10)
- ("rust-quote" ,rust-quote-1)
- ("rust-syn" ,rust-syn-2))))
+ `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
+ ("rust-proc-macro2-diagnostics" ,rust-proc-macro2-diagnostics-0.10)
+ ("rust-quote" ,rust-quote-1)
+ ("rust-syn" ,rust-syn-2))
+ ;; Add missing dev crate
+ #:cargo-development-inputs (("rust-pear" ,rust-pear-0.2))))
(home-page "https://crates.io/crates/pear_codegen")
(synopsis "Codegen for pear")
- (description
- "This package provides a (codegen) pear is a fruit.")
+ (description "This package provides a (codegen) pear is a fruit.")
(license (list license:expat license:asl2.0))))
(define-public rust-pear-codegen-0.1
@@ -46321,15 +46372,25 @@ (define-public rust-pear-codegen-0.1
(uri (crate-uri "pear_codegen" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "19lcpkfspizd4ywwvca6rxgc311m070k3ndvwa9vrbw1snjqna60"))))
+ (base32 "19lcpkfspizd4ywwvca6rxgc311m070k3ndvwa9vrbw1snjqna60"))
+ (modules '((guix build utils)))
+ (snippet '(begin
+ (delete-file "build.rs")))))
+ (build-system cargo-build-system)
(arguments
- `(#:skip-build? #t
- #:cargo-inputs
- (("rust-proc-macro2" ,rust-proc-macro2-0.4)
- ("rust-quote" ,rust-quote-0.6)
- ("rust-syn" ,rust-syn-0.15)
- ("rust-version-check" ,rust-version-check-0.9)
- ("rust-yansi" ,rust-yansi-0.5))))))
+ `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-0.4)
+ ("rust-quote" ,rust-quote-0.6)
+ ("rust-syn" ,rust-syn-0.15)
+ ;; development inputs here to address build issues
+ ("rust-version-check" ,rust-version-check-0.9)
+ ("rust-yansi" ,rust-yansi-0.5))
+ #:cargo-development-inputs (("rust-version-check" ,rust-version-check-0.9)
+ ("rust-yansi" ,rust-yansi-0.5))
+ #:phases (modify-phases %standard-phases
+ ;; Enable using nightly/dev features
+ (add-after 'unpack 'enable-unstable-features
+ (lambda _
+ (setenv "RUSTC_BOOTSTRAP" "1"))))))))
(define-public rust-peeking-take-while-0.1
(package
--
2.41.0
A
A
Aaron Covrig wrote on 8 Mar 03:37 +0100
[PATCH rust-team v2 2/2] gnu: rust-rocket: Upgraded and enabled full build
(address . 69620@debbugs.gnu.org)(name . Aaron Covrig)(address . aaron.covrig.us@ieee.org)
20240308023728.166810-3-aaron.covrig.us@ieee.org
* gnu/packages/crates-web.scm (rust-hyper-sync-rustls-0.3) : Upgraded to version 0.3.0-rc17 (and maintained v0.3.0-rc4 as latest has breaking changes)
* gnu/packages/crates-web.scm (rust-rocket) : Upgraded to v0.4.11 and changed to full build
* gnu/packages/crates-web.scm (rust-rocket-codegen) : Upgraded to v0.4.11 and changed to build
* gnu/packages/crates-web.scm (rust-rocket-http) : Upgraded to v0.4.11 and changed to build with tests
---
gnu/packages/crates-web.scm | 171 ++++++++++++++++++++++++------------
1 file changed, 114 insertions(+), 57 deletions(-)

Toggle diff (250 lines)
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 60c735efa7..58436084ed 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -42,6 +42,7 @@ (define-module (gnu packages crates-web)
#:use-module (gnu packages crates-windows)
#:use-module (gnu packages curl)
#:use-module (gnu packages gtk)
+ #:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages tls)
#:use-module (gnu packages webkit))
@@ -3178,33 +3179,53 @@ (define-public rust-hyper-rustls-0.21
(define-public rust-hyper-sync-rustls-0.3
(package
(name "rust-hyper-sync-rustls")
- (version "0.3.0-rc.4")
+ (version "0.3.0-rc.17")
(source
(origin
(method url-fetch)
(uri (crate-uri "hyper-sync-rustls" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "16zirxhsk26kz5jxxxs37wxsm02id97h57kkqs512fj1j0x486kd"))))
+ (base32 "1az37mc4dgxgpqc745r495nm2dwx48amw2w6c8mnwj00xb219c2c"))))
(build-system cargo-build-system)
(arguments
- `(#:cargo-test-flags
- '("--release" "--"
- ;; not all files included
- "--skip=client"
- "--skip=server")
- #:cargo-inputs
- (("rust-hyper" ,rust-hyper-0.10)
- ("rust-rustls" ,rust-rustls-0.14)
- ("rust-webpki" ,rust-webpki-0.18)
- ("rust-webpki-roots" ,rust-webpki-roots-0.15))
- #:cargo-development-inputs (("rust-env-logger" ,rust-env-logger-0.5))))
+ `(#:cargo-test-flags '("--release" "--"
+ ;; skip tests client/server tests
+ "--skip=client" "--skip=server")
+ #:cargo-inputs (("rust-hyper" ,rust-hyper-0.10)
+ ("rust-rustls" ,rust-rustls-0.17)
+ ("rust-webpki" ,rust-webpki-0.21)
+ ("rust-webpki-roots" ,rust-webpki-roots-0.19))
+ #:cargo-development-inputs (("rust-env-logger" ,rust-env-logger-0.7))))
+ (native-inputs (list perl))
(home-page "https://github.com/SergioBenitez/hyper-sync-rustls")
(synopsis "Glue code for Rustls and synchronous Hyper")
(description
"This package provides glue code for Rustls and synchronous Hyper.")
(license (list license:expat license:asl2.0))))
+(define-public rust-hyper-sync-rustls-0.3-rc4
+ (package
+ (inherit rust-hyper-sync-rustls-0.3)
+ (name "rust-hyper-sync-rustls")
+ (version "0.3.0-rc.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "hyper-sync-rustls" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "16zirxhsk26kz5jxxxs37wxsm02id97h57kkqs512fj1j0x486kd"))))
+ (arguments
+ `(#:cargo-test-flags '("--release" "--"
+ ;; not all files included
+ "--skip=client" "--skip=server")
+ #:cargo-inputs (("rust-hyper" ,rust-hyper-0.10)
+ ("rust-rustls" ,rust-rustls-0.14)
+ ("rust-webpki" ,rust-webpki-0.18)
+ ("rust-webpki-roots" ,rust-webpki-roots-0.15))
+ #:cargo-development-inputs (("rust-env-logger" ,rust-env-logger-0.5))))))
+
(define-public rust-hyper-timeout-0.4
(package
(name "rust-hyper-timeout")
@@ -3659,32 +3680,50 @@ (define-public rust-reqwest-0.10
(define-public rust-rocket-0.4
(package
(name "rust-rocket")
- (version "0.4.7")
+ (version "0.4.11")
(source
(origin
(method url-fetch)
(uri (crate-uri "rocket" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "04ybnhjw92zaan92lsmx6mkhqc9cpsg3885svb3wzyj39pyzvsvz"))))
+ (base32 "0pimz9v0737dvz487j0kij7kasjyahaxd7ba2bcc3p6513fdkfc3"))
+ (modules '((guix build utils)))
+ (snippet '(begin
+ ;; enable nightly/dev in build.rs for RUSTC_BOOTSTRAP build
+ (substitute* "build.rs"
+ (("if !channel.supports_features")
+ "/* if !channel.supports_features")
+ (("if !version.at_least")
+ "*/ \nif !version.at_least"))
+ ;; Add missing development dependency (for tests)
+ (substitute* "Cargo.toml"
+ (("\\[features\\]" all)
+ (string-append "[dev-dependencies.lazy_static]" "\n"
+ "version = \"1\"" "\n" all))) #t))))
(build-system cargo-build-system)
(arguments
- `(#:skip-build? #t
- #:cargo-inputs
- (("rust-atty" ,rust-atty-0.2)
- ("rust-base64" ,rust-base64-0.12)
- ("rust-log" ,rust-log-0.4)
- ("rust-memchr" ,rust-memchr-2)
- ("rust-num-cpus" ,rust-num-cpus-1)
- ("rust-pear" ,rust-pear-0.1)
- ("rust-rocket-codegen" ,rust-rocket-codegen-0.4)
- ("rust-rocket-http" ,rust-rocket-http-0.4)
- ("rust-state" ,rust-state-0.4)
- ("rust-time" ,rust-time-0.1)
- ("rust-toml" ,rust-toml-0.4)
- ("rust-version-check" ,rust-version-check-0.9)
- ("rust-yansi" ,rust-yansi-0.5)
- ("rust-yansi" ,rust-yansi-0.5))))
+ `(#:cargo-inputs (("rust-atty" ,rust-atty-0.2)
+ ("rust-base64" ,rust-base64-0.12)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-memchr" ,rust-memchr-2)
+ ("rust-num-cpus" ,rust-num-cpus-1)
+ ("rust-pear" ,rust-pear-0.1)
+ ("rust-rocket-codegen" ,rust-rocket-codegen-0.4)
+ ("rust-rocket-http" ,rust-rocket-http-0.4)
+ ("rust-state" ,rust-state-0.4)
+ ("rust-time" ,rust-time-0.1)
+ ("rust-toml" ,rust-toml-0.4)
+ ("rust-version-check" ,rust-version-check-0.9)
+ ("rust-yansi" ,rust-yansi-0.5)
+ ("rust-yansi" ,rust-yansi-0.5))
+ ;; Adding in missing dev dependency
+ #:cargo-development-inputs (("rust-lazy-static" ,rust-lazy-static-1))
+ #:phases (modify-phases %standard-phases
+ ;; Enable using nightly/dev features
+ (add-after 'unpack 'enable-unstable-features
+ (lambda _
+ (setenv "RUSTC_BOOTSTRAP" "1"))))))
(home-page "https://rocket.rs")
(synopsis
"Web framework with focus on ease-of-use, expressibility, and speed")
@@ -3696,25 +3735,38 @@ (define-public rust-rocket-0.4
(define-public rust-rocket-codegen-0.4
(package
(name "rust-rocket-codegen")
- (version "0.4.7")
+ (version "0.4.11")
(source
(origin
(method url-fetch)
(uri (crate-uri "rocket_codegen" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "18s2dll8c4sd26s8cfr6cizj5z55xwnk6r6x7b2wvcf8n9ajrb6f"))))
+ (base32 "1zl4f99s4df8fpkps53qn77030baww4x7zflggwql290b1xh6418"))
+ (modules '((guix build utils)))
+ (snippet '(begin
+ (substitute* "build.rs"
+ ;; enable nightly/dev in build.rs for RUSTC_BOOTSTRAP build
+ (("if !channel.supports_features")
+ "/* if !channel.supports_features")
+ (("if !version.at_least")
+ "*/ \nif !version.at_least"))))))
(build-system cargo-build-system)
(arguments
- `(#:skip-build? #t
- #:cargo-inputs
- (("rust-devise" ,rust-devise-0.2)
- ("rust-glob" ,rust-glob-0.3)
- ("rust-indexmap" ,rust-indexmap-1)
- ("rust-quote" ,rust-quote-0.6)
- ("rust-rocket-http" ,rust-rocket-http-0.4)
- ("rust-version-check" ,rust-version-check-0.9)
- ("rust-yansi" ,rust-yansi-0.5))))
+ `(#:tests? #f ;Tests depend on multiple undeclared crates
+ #:cargo-inputs (("rust-devise" ,rust-devise-0.2)
+ ("rust-glob" ,rust-glob-0.3)
+ ("rust-indexmap" ,rust-indexmap-1)
+ ("rust-quote" ,rust-quote-0.6)
+ ("rust-rocket-http" ,rust-rocket-http-0.4))
+ #:cargo-development-inputs (("rust-version-check" ,rust-version-check-0.9)
+ ("rust-yansi" ,rust-yansi-0.5)
+ ("rust-rocket" ,rust-rocket-0.4)) ;For tests
+ #:phases (modify-phases %standard-phases
+ ;; Enable using nightly/dev features
+ (add-after 'unpack 'enable-unstable-features
+ (lambda _
+ (setenv "RUSTC_BOOTSTRAP" "1"))))))
(home-page "https://rocket.rs")
(synopsis "Procedural macros for the Rocket web framework")
(description
@@ -3724,29 +3776,34 @@ (define-public rust-rocket-codegen-0.4
(define-public rust-rocket-http-0.4
(package
(name "rust-rocket-http")
- (version "0.4.7")
+ (version "0.4.11")
(source
(origin
(method url-fetch)
(uri (crate-uri "rocket_http" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0ga98nbcga8amg4xhrfkn1wljnqx9h0vv7mnay9g66vsxl042dnf"))))
+ (base32 "17xiivj4cp3anm4rxxpd8g58kzday1y2pgdys2i23wz1538wpy9b"))))
(build-system cargo-build-system)
(arguments
- `(#:skip-build? #t
- #:cargo-inputs
- (("rust-cookie" ,rust-cookie-0.11)
- ("rust-hyper" ,rust-hyper-0.10)
- ("rust-hyper-sync-rustls" ,rust-hyper-sync-rustls-0.3)
- ("rust-indexmap" ,rust-indexmap-1)
- ("rust-pear" ,rust-pear-0.1)
- ("rust-percent-encoding" ,rust-percent-encoding-1)
- ("rust-rustls" ,rust-rustls-0.14)
- ("rust-smallvec" ,rust-smallvec-1)
- ("rust-state" ,rust-state-0.4)
- ("rust-time" ,rust-time-0.1)
- ("rust-unicode-xid" ,rust-unicode-xid-0.1))))
+ `(#:cargo-test-flags ;doctests depend on undeclared crates
+ '("--lib" "--bins" "--tests" "--release")
+ #:cargo-inputs (("rust-cookie" ,rust-cookie-0.11)
+ ("rust-hyper" ,rust-hyper-0.10)
+ ("rust-hyper-sync-rustls" ,rust-hyper-sync-rustls-0.3-rc4)
+ ("rust-indexmap" ,rust-indexmap-1)
+ ("rust-pear" ,rust-pear-0.1)
+ ("rust-percent-encoding" ,rust-percent-encoding-1)
+ ("rust-rustls" ,rust-rustls-0.14)
+ ("rust-smallvec" ,rust-smallvec-1)
+ ("rust-state" ,rust-state-0.4)
+ ("rust-time" ,rust-time-0.1)
+ ("rust-unicode-xid" ,rust-unicode-xid-0.1))
+ #:phases (modify-phases %standard-phases
+ ;; Enable using nightly/dev features
+ (add-after 'unpack 'enable-unstable-features
+ (lambda _
+ (setenv "RUSTC_BOOTSTRAP" "1"))))))
(home-page "https://rocket.rs")
(synopsis "HTTP requests, responses and headers tooling for Rocket")
(description
--
2.41.0
A
A
Aaron Covrig wrote on 24 Mar 16:19 +0100
[rust-team v3 1/9] gnu: Add rust-inlinable-string-0.1
(address . 69620@debbugs.gnu.org)(name . Aaron Covrig)(address . aaron.covrig.us@ieee.org)
20240324152001.148236-3-aaron.covrig.us@ieee.org
* gnu/packages/crates-io.scm (rust-inlinable-string-0.1): Add variable
---
gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)

Toggle diff (46 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4eee577e59..ea8dcb5cec 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -42,6 +42,7 @@
;;; Copyright © 2024 Herman Rimm <herman@rimm.ee>
;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz>
;;; Copyright © 2024 Suhail Singh <suhail@bayesians.ca>
+;;; Copyright © 2024 Aaron Covrig <aaron.covrig.us@ieee.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -32398,6 +32399,31 @@ (define-public rust-inline-c-macro-0.1
writing and executing C code inside Rust.")
(license license:bsd-3)))
+(define-public rust-inlinable-string-0.1
+ (package
+ (name "rust-inlinable-string")
+ (version "0.1.15")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "inlinable_string" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1ysjci8yfvxgf51z0ny2nnwhxrclhmb3vbngin8v4bznhr3ybyn8"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-serde" ,rust-serde-1))
+ #:cargo-development-inputs (("rust-serde-test" ,rust-serde-test-1))))
+ (home-page "https://github.com/fitzgen/inlinable_string")
+ (synopsis "Provides inline strings that avoid heap-allocation")
+ (description
+ "The @code{inlinable_string} crate provides the @code{InlinableString} type
+-- an owned, grow-able UTF-8 string that stores small strings inline and avoids
+heap-allocation -- and the @code{StringExt} trait which abstracts string
+operations over both @code{std::string::String} and @code{InlinableString} (or
+even your own custom string type)")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-inotify-0.10
(package
(name "rust-inotify")
--
2.41.0
A
A
Aaron Covrig wrote on 24 Mar 16:19 +0100
[rust-team v3 5/9] gnu: Bumps rust-hyper-sync-rustls to 0.3.0-rc.17
(address . 69620@debbugs.gnu.org)(name . Aaron Covrig)(address . aaron.covrig.us@ieee.org)
20240324152001.148236-7-aaron.covrig.us@ieee.org
* gnu/packages/crates-web.scm (rust-hyper-sync-rustls-0.3): Bumps to
0.3.0-rc.17
* gnu/packages/crates-web.scm (rust-hyper-sync-rustls-0.3-rc.4): New
variable (rc.17 is not backwards compatible with rc.4)
---
gnu/packages/crates-web.scm | 47 +++++++++++++++++++++++++++----------
1 file changed, 34 insertions(+), 13 deletions(-)

Toggle diff (81 lines)
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 9b2d27dc69..d1cc9768de 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -42,6 +42,7 @@ (define-module (gnu packages crates-web)
#:use-module (gnu packages crates-windows)
#:use-module (gnu packages curl)
#:use-module (gnu packages gtk)
+ #:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages tls)
#:use-module (gnu packages webkit))
@@ -3776,33 +3777,53 @@ (define-public rust-hyper-rustls-0.21
(define-public rust-hyper-sync-rustls-0.3
(package
(name "rust-hyper-sync-rustls")
- (version "0.3.0-rc.4")
+ (version "0.3.0-rc.17")
(source
(origin
(method url-fetch)
(uri (crate-uri "hyper-sync-rustls" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "16zirxhsk26kz5jxxxs37wxsm02id97h57kkqs512fj1j0x486kd"))))
+ (base32 "1az37mc4dgxgpqc745r495nm2dwx48amw2w6c8mnwj00xb219c2c"))))
(build-system cargo-build-system)
(arguments
- `(#:cargo-test-flags
- '("--release" "--"
- ;; not all files included
- "--skip=client"
- "--skip=server")
- #:cargo-inputs
- (("rust-hyper" ,rust-hyper-0.10)
- ("rust-rustls" ,rust-rustls-0.14)
- ("rust-webpki" ,rust-webpki-0.18)
- ("rust-webpki-roots" ,rust-webpki-roots-0.15))
- #:cargo-development-inputs (("rust-env-logger" ,rust-env-logger-0.5))))
+ `(#:cargo-test-flags '("--release" "--"
+ ;; skip tests client/server tests
+ "--skip=client" "--skip=server")
+ #:cargo-inputs (("rust-hyper" ,rust-hyper-0.10)
+ ("rust-rustls" ,rust-rustls-0.17)
+ ("rust-webpki" ,rust-webpki-0.21)
+ ("rust-webpki-roots" ,rust-webpki-roots-0.19))
+ #:cargo-development-inputs (("rust-env-logger" ,rust-env-logger-0.7))))
+ (native-inputs (list perl))
(home-page "https://github.com/SergioBenitez/hyper-sync-rustls")
(synopsis "Glue code for Rustls and synchronous Hyper")
(description
"This package provides glue code for Rustls and synchronous Hyper.")
(license (list license:expat license:asl2.0))))
+(define-public rust-hyper-sync-rustls-0.3-rc4
+ (package
+ (inherit rust-hyper-sync-rustls-0.3)
+ (name "rust-hyper-sync-rustls")
+ (version "0.3.0-rc.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "hyper-sync-rustls" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "16zirxhsk26kz5jxxxs37wxsm02id97h57kkqs512fj1j0x486kd"))))
+ (arguments
+ `(#:cargo-test-flags '("--release" "--"
+ ;; not all files included
+ "--skip=client" "--skip=server")
+ #:cargo-inputs (("rust-hyper" ,rust-hyper-0.10)
+ ("rust-rustls" ,rust-rustls-0.14)
+ ("rust-webpki" ,rust-webpki-0.18)
+ ("rust-webpki-roots" ,rust-webpki-roots-0.15))
+ #:cargo-development-inputs (("rust-env-logger" ,rust-env-logger-0.5))))))
+
(define-public rust-hyper-timeout-0.4
(package
(name "rust-hyper-timeout")
--
2.41.0
A
A
Aaron Covrig wrote on 24 Mar 16:19 +0100
[rust-team v3 7/9] gnu: Bumps rust-rocket-http-0.4 to 0.4.11
(address . 69620@debbugs.gnu.org)(name . Aaron Covrig)(address . aaron.covrig.us@ieee.org)
20240324152001.148236-9-aaron.covrig.us@ieee.org
* gnu/packages/crates-web.scm (rust-rocket-http-0.4): Bumps to 0.4.11
and enables building
---
gnu/packages/crates-web.scm | 35 ++++++++++++++++++++---------------
1 file changed, 20 insertions(+), 15 deletions(-)

Toggle diff (55 lines)
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index e105ddae66..fbdce9e9f6 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -4779,28 +4779,33 @@ (define-public rust-rocket-http-0.4
(package
(inherit rust-rocket-http-0.5)
(name "rust-rocket-http")
- (version "0.4.7")
+ (version "0.4.11")
(source
(origin
(method url-fetch)
(uri (crate-uri "rocket_http" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0ga98nbcga8amg4xhrfkn1wljnqx9h0vv7mnay9g66vsxl042dnf"))))
+ (base32 "17xiivj4cp3anm4rxxpd8g58kzday1y2pgdys2i23wz1538wpy9b"))))
(arguments
- `(#:skip-build? #t
- #:cargo-inputs
- (("rust-cookie" ,rust-cookie-0.11)
- ("rust-hyper" ,rust-hyper-0.10)
- ("rust-hyper-sync-rustls" ,rust-hyper-sync-rustls-0.3)
- ("rust-indexmap" ,rust-indexmap-1)
- ("rust-pear" ,rust-pear-0.1)
- ("rust-percent-encoding" ,rust-percent-encoding-1)
- ("rust-rustls" ,rust-rustls-0.14)
- ("rust-smallvec" ,rust-smallvec-1)
- ("rust-state" ,rust-state-0.4)
- ("rust-time" ,rust-time-0.1)
- ("rust-unicode-xid" ,rust-unicode-xid-0.1))))))
+ `(#:cargo-test-flags ;doctests depend on undeclared crates
+ '("--lib" "--bins" "--tests" "--release")
+ #:cargo-inputs (("rust-cookie" ,rust-cookie-0.11)
+ ("rust-hyper" ,rust-hyper-0.10)
+ ("rust-hyper-sync-rustls" ,rust-hyper-sync-rustls-0.3-rc4)
+ ("rust-indexmap" ,rust-indexmap-1)
+ ("rust-pear" ,rust-pear-0.1)
+ ("rust-percent-encoding" ,rust-percent-encoding-1)
+ ("rust-rustls" ,rust-rustls-0.14)
+ ("rust-smallvec" ,rust-smallvec-1)
+ ("rust-state" ,rust-state-0.4)
+ ("rust-time" ,rust-time-0.1)
+ ("rust-unicode-xid" ,rust-unicode-xid-0.1))
+ #:phases (modify-phases %standard-phases
+ ;; Enable using nightly/dev features
+ (add-after 'unpack 'enable-unstable-features
+ (lambda _
+ (setenv "RUSTC_BOOTSTRAP" "1"))))))))
(define-public rust-salvo-0.16
(package
--
2.41.0
A
A
Aaron Covrig wrote on 24 Mar 16:20 +0100
[rust-team v3 9/9] gnu: Bumps rust-pear to v0.2.9
(address . 69620@debbugs.gnu.org)(name . Aaron Covrig)(address . aaron.covrig.us@ieee.org)
20240324152001.148236-11-aaron.covrig.us@ieee.org
* gnu/packages/crates-web.scm (rust-pear-0.2): Bumps to 0.2.9
* gnu/packages/crates-web.scm (rust-pear-codegen-0.2): Bumps to 0.2.9
---
gnu/packages/crates-io.scm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

Toggle diff (48 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4edb11f3b9..d0dbadd230 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -49271,14 +49271,14 @@ (define-public rust-pdqselect-0.1
(define-public rust-pear-0.2
(package
(name "rust-pear")
- (version "0.2.8")
+ (version "0.2.9")
(source
(origin
(method url-fetch)
(uri (crate-uri "pear" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "1j03s6m80iqldnm6jzh3k1fbyk0lxirx8bi4ivgq3k3sq7va1k2c"))))
+ (base32 "0rxlyizzaqq6lswgyfdxjxd3dyb1jfml9gwfpbx5g1j8rq0amvmx"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-inlinable-string" ,rust-inlinable-string-0.1)
@@ -49312,21 +49312,21 @@ (define-public rust-pear-0.1
(define-public rust-pear-codegen-0.2
(package
(name "rust-pear-codegen")
- (version "0.2.8")
+ (version "0.2.9")
(source
(origin
(method url-fetch)
(uri (crate-uri "pear_codegen" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0xrwnlncg7l64gfy82vf6kq55ww7p6krq6bc3pqwymxpiq76f8if"))
+ (base32 "0izijffdd2xs762497mk0xr7xwmyw62dzdqjz12v70n0bnc5pasb"))
(modules '((guix build utils)))
(snippet '(begin
;; Add missing development dependency (for tests)
(substitute* "Cargo.toml"
(("\\[dev-dependencies\\]" all)
(string-append "[dev-dependencies.pear]" "\n"
- "version = \"0.2.8\""))) #t))))
+ "version = \"0.2.9\""))) #t))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
--
2.41.0
A
A
Aaron Covrig wrote on 24 Mar 16:19 +0100
[rust-team v3 0/9] Enables building of rust-rocket
(address . 69620@debbugs.gnu.org)(name . Aaron Covrig)(address . aaron.covrig.us@ieee.org)
20240324152001.148236-2-aaron.covrig.us@ieee.org
The following updates (in issue https://issues.guix.gnu.org/69620)
enable building rust-rocket and rust-pear along with updating their
versions. To enable building these packages nightly/bootstrap features
are turned on as required and several development dependencies that have
been stripped out (of the published crates.io packages) have been added
back (as found on the appropriate git hosting sites). Furthermore,
rust-hyper-sync-rustls-0.3 is now split into two versions, rc.17 and
rc.4 as rc.17 is not 100% backwards compatible with rc.4.

Aaron Covrig (9):
gnu: Add rust-inlinable-string-0.1
gnu: Enables rust-pear-codegen-0.2 tests
gnu: Enables building rust-pear-codegen-0.1
gnu: Enables building rust-pear-0.1
gnu: Bumps rust-hyper-sync-rustls to 0.3.0-rc.17
gnu: Bumps rust-rocket-codegen-0.4 to 0.4.11
gnu: Bumps rust-rocket-http-0.4 to 0.4.11
gnu: Bumps rust-rocket-0.4 to 0.4.11
gnu: Bumps rust-pear to v0.2.9

gnu/packages/crates-io.scm | 90 ++++++++++++++-----
gnu/packages/crates-web.scm | 175 ++++++++++++++++++++++++------------
2 files changed, 184 insertions(+), 81 deletions(-)


base-commit: edcc8778feb07be4086a6e557be6ac2175c31fcf
--
2.41.0
A
A
Aaron Covrig wrote on 24 Mar 16:19 +0100
[rust-team v3 2/9] gnu: Enables rust-pear-codegen-0.2 tests
(address . 69620@debbugs.gnu.org)(name . Aaron Covrig)(address . aaron.covrig.us@ieee.org)
20240324152001.148236-4-aaron.covrig.us@ieee.org
* gnu/packages/crates-io.scm (rust-pear-codegen-0.2): Enables building
test cases by adding stripped out development input (rust-pear-0.2)
---
gnu/packages/crates-io.scm | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)

Toggle diff (41 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ea8dcb5cec..492c077eae 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -49315,19 +49315,25 @@ (define-public rust-pear-codegen-0.2
(uri (crate-uri "pear_codegen" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0xrwnlncg7l64gfy82vf6kq55ww7p6krq6bc3pqwymxpiq76f8if"))))
+ (base32 "0xrwnlncg7l64gfy82vf6kq55ww7p6krq6bc3pqwymxpiq76f8if"))
+ (modules '((guix build utils)))
+ (snippet '(begin
+ ;; Add missing development dependency (for tests)
+ (substitute* "Cargo.toml"
+ (("\\[dev-dependencies\\]" all)
+ (string-append "[dev-dependencies.pear]" "\n"
+ "version = \"0.2.8\""))) #t))))
(build-system cargo-build-system)
(arguments
- `(#:tests? #f ; use of undeclared crate or module `pear`
- #:cargo-inputs
- (("rust-proc-macro2" ,rust-proc-macro2-1)
- ("rust-proc-macro2-diagnostics" ,rust-proc-macro2-diagnostics-0.10)
- ("rust-quote" ,rust-quote-1)
- ("rust-syn" ,rust-syn-2))))
+ `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
+ ("rust-proc-macro2-diagnostics" ,rust-proc-macro2-diagnostics-0.10)
+ ("rust-quote" ,rust-quote-1)
+ ("rust-syn" ,rust-syn-2))
+ ;; Add missing dev crate
+ #:cargo-development-inputs (("rust-pear" ,rust-pear-0.2))))
(home-page "https://crates.io/crates/pear_codegen")
(synopsis "Codegen for pear")
- (description
- "This package provides a (codegen) pear is a fruit.")
+ (description "This package provides a (codegen) pear is a fruit.")
(license (list license:expat license:asl2.0))))
(define-public rust-pear-codegen-0.1
--
2.41.0
A
A
Aaron Covrig wrote on 24 Mar 16:20 +0100
[rust-team v3 8/9] gnu: Bumps rust-rocket-0.4 to 0.4.11
(address . 69620@debbugs.gnu.org)(name . Aaron Covrig)(address . aaron.covrig.us@ieee.org)
20240324152001.148236-10-aaron.covrig.us@ieee.org
* gnu/packages/crates-web.scm (rust-rocket-0.4): Bumps to 0.4.11 and
enables building
---
gnu/packages/crates-web.scm | 56 ++++++++++++++++++++++++-------------
1 file changed, 37 insertions(+), 19 deletions(-)

Toggle diff (75 lines)
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index fbdce9e9f6..bf848a9f54 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -4634,31 +4634,49 @@ (define-public rust-rocket-0.4
(package
(inherit rust-rocket-0.5)
(name "rust-rocket")
- (version "0.4.7")
+ (version "0.4.11")
(source
(origin
(method url-fetch)
(uri (crate-uri "rocket" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "04ybnhjw92zaan92lsmx6mkhqc9cpsg3885svb3wzyj39pyzvsvz"))))
- (arguments
- `(#:skip-build? #t
- #:cargo-inputs
- (("rust-atty" ,rust-atty-0.2)
- ("rust-base64" ,rust-base64-0.12)
- ("rust-log" ,rust-log-0.4)
- ("rust-memchr" ,rust-memchr-2)
- ("rust-num-cpus" ,rust-num-cpus-1)
- ("rust-pear" ,rust-pear-0.1)
- ("rust-rocket-codegen" ,rust-rocket-codegen-0.4)
- ("rust-rocket-http" ,rust-rocket-http-0.4)
- ("rust-state" ,rust-state-0.4)
- ("rust-time" ,rust-time-0.1)
- ("rust-toml" ,rust-toml-0.4)
- ("rust-version-check" ,rust-version-check-0.9)
- ("rust-yansi" ,rust-yansi-0.5)
- ("rust-yansi" ,rust-yansi-0.5))))))
+ (base32 "0pimz9v0737dvz487j0kij7kasjyahaxd7ba2bcc3p6513fdkfc3"))
+ (modules '((guix build utils)))
+ (snippet '(begin
+ ;; enable nightly/dev in build.rs for RUSTC_BOOTSTRAP build
+ (substitute* "build.rs"
+ (("if !channel.supports_features")
+ "/* if !channel.supports_features")
+ (("if !version.at_least")
+ "*/ \nif !version.at_least"))
+ ;; Add missing development dependency (for tests)
+ (substitute* "Cargo.toml"
+ (("\\[features\\]" all)
+ (string-append "[dev-dependencies.lazy_static]" "\n"
+ "version = \"1\"" "\n" all))) #t))))
+ (arguments
+ `(#:cargo-inputs (("rust-atty" ,rust-atty-0.2)
+ ("rust-base64" ,rust-base64-0.12)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-memchr" ,rust-memchr-2)
+ ("rust-num-cpus" ,rust-num-cpus-1)
+ ("rust-pear" ,rust-pear-0.1)
+ ("rust-rocket-codegen" ,rust-rocket-codegen-0.4)
+ ("rust-rocket-http" ,rust-rocket-http-0.4)
+ ("rust-state" ,rust-state-0.4)
+ ("rust-time" ,rust-time-0.1)
+ ("rust-toml" ,rust-toml-0.4)
+ ("rust-version-check" ,rust-version-check-0.9)
+ ("rust-yansi" ,rust-yansi-0.5)
+ ("rust-yansi" ,rust-yansi-0.5))
+ ;; Adding in missing dev dependency
+ #:cargo-development-inputs (("rust-lazy-static" ,rust-lazy-static-1))
+ #:phases (modify-phases %standard-phases
+ ;; Enable using nightly/dev features
+ (add-after 'unpack 'enable-unstable-features
+ (lambda _
+ (setenv "RUSTC_BOOTSTRAP" "1"))))))))
(define-public rust-rocket-codegen-0.5
(package
--
2.41.0
A
A
Aaron Covrig wrote on 24 Mar 16:19 +0100
[rust-team v3 3/9] gnu: Enables building rust-pear-codegen-0.1
(address . 69620@debbugs.gnu.org)(name . Aaron Covrig)(address . aaron.covrig.us@ieee.org)
20240324152001.148236-5-aaron.covrig.us@ieee.org
* gnu/packages/crates-io.scm (rust-pear-codegen-0.1): Enables full build
with tests
---
gnu/packages/crates-io.scm | 26 ++++++++++++++++++--------
1 file changed, 18 insertions(+), 8 deletions(-)

Toggle diff (40 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 492c077eae..ada42a1b92 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -49347,15 +49347,25 @@ (define-public rust-pear-codegen-0.1
(uri (crate-uri "pear_codegen" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "19lcpkfspizd4ywwvca6rxgc311m070k3ndvwa9vrbw1snjqna60"))))
+ (base32 "19lcpkfspizd4ywwvca6rxgc311m070k3ndvwa9vrbw1snjqna60"))
+ (modules '((guix build utils)))
+ (snippet '(begin
+ (delete-file "build.rs")))))
+ (build-system cargo-build-system)
(arguments
- `(#:skip-build? #t
- #:cargo-inputs
- (("rust-proc-macro2" ,rust-proc-macro2-0.4)
- ("rust-quote" ,rust-quote-0.6)
- ("rust-syn" ,rust-syn-0.15)
- ("rust-version-check" ,rust-version-check-0.9)
- ("rust-yansi" ,rust-yansi-0.5))))))
+ `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-0.4)
+ ("rust-quote" ,rust-quote-0.6)
+ ("rust-syn" ,rust-syn-0.15)
+ ;; development inputs here to address build issues
+ ("rust-version-check" ,rust-version-check-0.9)
+ ("rust-yansi" ,rust-yansi-0.5))
+ #:cargo-development-inputs (("rust-version-check" ,rust-version-check-0.9)
+ ("rust-yansi" ,rust-yansi-0.5))
+ #:phases (modify-phases %standard-phases
+ ;; Enable using nightly/dev features
+ (add-after 'unpack 'enable-unstable-features
+ (lambda _
+ (setenv "RUSTC_BOOTSTRAP" "1"))))))))
(define-public rust-peeking-take-while-0.1
(package
--
2.41.0
A
A
Aaron Covrig wrote on 24 Mar 16:19 +0100
[rust-team v3 4/9] gnu: Enables building rust-pear-0.1
(address . 69620@debbugs.gnu.org)(name . Aaron Covrig)(address . aaron.covrig.us@ieee.org)
20240324152001.148236-6-aaron.covrig.us@ieee.org
* gnu/packages/crates-io.scm (rust-pear-0.1): Enables full build with
tests
---
gnu/packages/crates-io.scm | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

Toggle diff (21 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ada42a1b92..4edb11f3b9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -49302,8 +49302,12 @@ (define-public rust-pear-0.1
(sha256
(base32 "02lnp8c414z5ds0lskd4zxlalrjljzpkg8g6kizszij4h52sgprj"))))
(arguments
- `(#:skip-build? #t
- #:cargo-inputs (("rust-pear-codegen" ,rust-pear-codegen-0.1))))))
+ `(#:cargo-inputs (("rust-pear-codegen" ,rust-pear-codegen-0.1))
+ #:phases (modify-phases %standard-phases
+ ;; Enable using nightly/dev features
+ (add-after 'unpack 'enable-unstable-features
+ (lambda _
+ (setenv "RUSTC_BOOTSTRAP" "1"))))))))
(define-public rust-pear-codegen-0.2
(package
--
2.41.0
A
A
Aaron Covrig wrote on 24 Mar 16:19 +0100
[rust-team v3 6/9] gnu: Bumps rust-rocket-codegen-0.4 to 0.4.11
(address . 69620@debbugs.gnu.org)(name . Aaron Covrig)(address . aaron.covrig.us@ieee.org)
20240324152001.148236-8-aaron.covrig.us@ieee.org
* gnu/packages/crates-web.scm (rust-rocket-codegen-0.4): Bumps to 0.4.11
and enables building
---
gnu/packages/crates-web.scm | 37 +++++++++++++++++++++++++------------
1 file changed, 25 insertions(+), 12 deletions(-)

Toggle diff (56 lines)
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index d1cc9768de..e105ddae66 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -4698,24 +4698,37 @@ (define-public rust-rocket-codegen-0.4
(package
(inherit rust-rocket-codegen-0.5)
(name "rust-rocket-codegen")
- (version "0.4.7")
+ (version "0.4.11")
(source
(origin
(method url-fetch)
(uri (crate-uri "rocket_codegen" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "18s2dll8c4sd26s8cfr6cizj5z55xwnk6r6x7b2wvcf8n9ajrb6f"))))
- (arguments
- `(#:skip-build? #t
- #:cargo-inputs
- (("rust-devise" ,rust-devise-0.2)
- ("rust-glob" ,rust-glob-0.3)
- ("rust-indexmap" ,rust-indexmap-1)
- ("rust-quote" ,rust-quote-0.6)
- ("rust-rocket-http" ,rust-rocket-http-0.4)
- ("rust-version-check" ,rust-version-check-0.9)
- ("rust-yansi" ,rust-yansi-0.5))))))
+ (base32 "1zl4f99s4df8fpkps53qn77030baww4x7zflggwql290b1xh6418"))
+ (modules '((guix build utils)))
+ (snippet '(begin
+ (substitute* "build.rs"
+ ;; enable nightly/dev in build.rs for RUSTC_BOOTSTRAP build
+ (("if !channel.supports_features")
+ "/* if !channel.supports_features")
+ (("if !version.at_least")
+ "*/ \nif !version.at_least"))))))
+ (arguments
+ `(#:tests? #f ;Tests depend on multiple undeclared crates
+ #:cargo-inputs (("rust-devise" ,rust-devise-0.2)
+ ("rust-glob" ,rust-glob-0.3)
+ ("rust-indexmap" ,rust-indexmap-1)
+ ("rust-quote" ,rust-quote-0.6)
+ ("rust-rocket-http" ,rust-rocket-http-0.4))
+ #:cargo-development-inputs (("rust-version-check" ,rust-version-check-0.9)
+ ("rust-yansi" ,rust-yansi-0.5)
+ ("rust-rocket" ,rust-rocket-0.4)) ;For tests
+ #:phases (modify-phases %standard-phases
+ ;; Enable using nightly/dev features
+ (add-after 'unpack 'enable-unstable-features
+ (lambda _
+ (setenv "RUSTC_BOOTSTRAP" "1"))))))))
(define-public rust-rocket-http-0.5
(package
--
2.41.0
?
Your comment

Commenting via the web interface is currently disabled.

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

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