[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#74234] [PATCH rust-team v3 02/23] gnu: Add rust-migrations-macros-2
From: |
Aaron Covrig |
Subject: |
[bug#74234] [PATCH rust-team v3 02/23] gnu: Add rust-migrations-macros-2. |
Date: |
Sun, 8 Dec 2024 20:11:26 -0500 |
From: Giacomo Leidi <goodoldpaul@autistici.org>
* gnu/packages/crates-io.scm (rust-migrations-macros-2): New variable;
(rust-migrations-macros-1): inherit from rust-migrations-macros-2.
---
gnu/packages/crates-io.scm | 52 +++++++++++++++++++++++++-------------
1 file changed, 35 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1b9175d852..89d81f7191 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -45260,38 +45260,56 @@ (define-public rust-migrations-internals-1
("rust-diesel" ,rust-diesel-1))
#:cargo-development-inputs (("rust-tempdir" ,rust-tempdir-0.3))))))
-(define-public rust-migrations-macros-1
+(define-public rust-migrations-macros-2
(package
(name "rust-migrations-macros")
- (version "1.4.2")
+ (version "2.1.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "migrations_macros" version))
- (file-name
- (string-append name "-" version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "173qgwans6n2jf6b7qajq273rvg1r9c34p5fflzr53gx14lz2lwp"))))
+ (base32 "027gd4s58fmh7jil9rz0ckdsdw81mqfa6dyqbfmvnrqfqxd35qyc"))))
(build-system cargo-build-system)
(arguments
- `(#:cargo-inputs
- (("rust-migrations-internals"
- ,rust-migrations-internals-1)
- ("rust-proc-macro2" ,rust-proc-macro2-1)
- ("rust-quote" ,rust-quote-1)
- ("rust-syn" ,rust-syn-1))
- #:cargo-development-inputs
- (("rust-tempdir" ,rust-tempdir-0.3))))
- (native-inputs
- (list pkg-config))
- (inputs
- (list sqlite))
+ `(#:cargo-test-flags '("--"
+ ;; Missing files
+ "--skip=src/lib.rs - embed_migrations (line 44)")
+ #:cargo-inputs (("rust-migrations-internals"
,rust-migrations-internals-2)
+ ("rust-proc-macro2" ,rust-proc-macro2-1)
+ ("rust-quote" ,rust-quote-1))
+ #:cargo-development-inputs (("rust-cfg-if" ,rust-cfg-if-1)
+ ("rust-diesel" ,rust-diesel-2)
+ ("rust-dotenvy" ,rust-dotenvy-0.15)
+ ("rust-tempdir" ,rust-tempdir-0.3))))
+ (native-inputs (list pkg-config))
+ (inputs (list sqlite))
(home-page "https://diesel.rs")
(synopsis "Code generation macros for Diesel's embedded migrations")
(description "This package provides code generation macros for Diesel's
embedded migrations.")
(license (list license:expat license:asl2.0))))
+(define-public rust-migrations-macros-1
+ (package
+ (inherit rust-migrations-macros-2)
+ (name "rust-migrations-macros")
+ (version "1.4.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "migrations_macros" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "173qgwans6n2jf6b7qajq273rvg1r9c34p5fflzr53gx14lz2lwp"))))
+ (arguments
+ `(#:cargo-inputs (("rust-migrations-internals"
,rust-migrations-internals-1)
+ ("rust-proc-macro2" ,rust-proc-macro2-1)
+ ("rust-quote" ,rust-quote-1)
+ ("rust-syn" ,rust-syn-1))
+ #:cargo-development-inputs (("rust-tempdir" ,rust-tempdir-0.3))))))
+
(define-public rust-mimalloc-0.1
(package
(name "rust-mimalloc")
--
2.47.0
- [bug#74234] [PATCH rust-team v3 00/23] WIP add gnome-authenticator, Aaron Covrig, 2024/12/08
- [bug#74234] [PATCH rust-team v3 02/23] gnu: Add rust-migrations-macros-2.,
Aaron Covrig <=
- [bug#74234] [PATCH rust-team v3 01/23] gnu: Add rust-migrations-internals-2., Aaron Covrig, 2024/12/08
- [bug#74234] [PATCH rust-team v3 03/23] gnu: Add rust-diesel-migrations-2., Aaron Covrig, 2024/12/08
- [bug#74234] [PATCH rust-team v3 05/23] gnu: Add rust-manifest-dir-macros-0.1., Aaron Covrig, 2024/12/08
- [bug#74234] [PATCH rust-team v3 04/23] gnu: Add rust-search-provider-0.6., Aaron Covrig, 2024/12/08
- [bug#74234] [PATCH rust-team v3 06/23] gnu: rust-xmlparser-0.13: Upgrade to v0.13.6, Aaron Covrig, 2024/12/08
- [bug#74234] [PATCH rust-team v3 07/23] gnu: Add rust-roxmltree-0.18., Aaron Covrig, 2024/12/08
- [bug#74234] [PATCH rust-team v3 08/23] gnu: Add rust-roxmltree-0.14: Upgrade to v0.14.1., Aaron Covrig, 2024/12/08
- [bug#74234] [PATCH rust-team v3 10/23] gnu: Add rust-svg-metadata-0.4., Aaron Covrig, 2024/12/08
- [bug#74234] [PATCH rust-team v3 09/23] gnu: Add rust-roxmltree-0.20., Aaron Covrig, 2024/12/08
- [bug#74234] [PATCH rust-team v3 11/23] gnu: Add rust-svg-metadata-0.5., Aaron Covrig, 2024/12/08