Subject: [PATCH 121/156] gnu: Add rust-sqlx-0.7.

From: Wilko Meyer <[email-masked]>
Date: Mon, 8 Jan 2024 02:53:38 +0100

* gnu/packages/crates-io.scm (rust-sqlx-0.7): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 877f5c08e6e..a10781f38d7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -70514,6 +70514,34 @@ (define-public rust-sqlx-core-0.7
     (description
      "Core of SQLx, the rust SQL toolkit.  Not intended to be used directly.")
     (license (list license:expat license:asl2.0))))
+
+(define-public rust-sqlx-0.7
+  (package
+    (name "rust-sqlx")
+    (version "0.7.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "sqlx" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1kv3hyx7izmmsjqh3l47zrfhjlcblpg20cvnk7pr8dm7klkkr86v"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-sqlx-core" ,rust-sqlx-core-0.7)
+                       ("rust-sqlx-macros" ,rust-sqlx-macros-0.7)
+                       ("rust-sqlx-mysql" ,rust-sqlx-mysql-0.7)
+                       ("rust-sqlx-postgres" ,rust-sqlx-postgres-0.7)
+                       ("rust-sqlx-sqlite" ,rust-sqlx-sqlite-0.7))))
+    (home-page "https://github.com/launchbadge/sqlx")
+    (synopsis
+     "ð§° The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.")
+    (description
+     "ð§° The Rust SQL Toolkit.  An async, pure Rust SQL crate featuring compile-time
+checked queries without a DSL. Supports @code{PostgreSQL}, @code{MySQL}, and
+SQLite.")
+    (license (list license:expat license:asl2.0))))
 (define-public rust-sqlite-0.30
   (package
     (name "rust-sqlite")
-- 
2.41.0