From 71c7c8023735c0e2f35de299c2a7d156227f2002 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sat, 16 Mar 2024 21:34:39 +0200 Subject: [PATCH] gnu: Add rust-odbc-api-0.36. * gnu/packages/crates-io.scm (rust-odbc-api-0.36): New variable. Change-Id: I4ca307be689a391ab15e9a7dea87e8f2f2c0a45f --- gnu/packages/crates-io.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 80a0cb0444..80e15f762e 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -44537,6 +44537,38 @@ file formats.") "Unsafe bindings for oboe an android library for low latency audio IO.") (license license:asl2.0))) +(define-public rust-odbc-api-0.36 + (package + (name "rust-odbc-api") + (version "0.36.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "odbc-api" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "04xcqqhm7w24b1gj6v4b24z9j65r1zzyxjadlv3xf73fm92cmnd3")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; Tests expect a running odbc server. + #:cargo-inputs (("rust-force-send-sync" ,rust-force-send-sync-1) + ("rust-log" ,rust-log-0.4) + ("rust-odbc-sys" ,rust-odbc-sys-0.21) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-widestring" ,rust-widestring-0.5) + ("rust-winit" ,rust-winit-0.26)) + #:cargo-development-inputs (("rust-anyhow" ,rust-anyhow-1) + ("rust-csv" ,rust-csv-1) + ("rust-env-logger" ,rust-env-logger-0.9) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-tempfile" ,rust-tempfile-3) + ("rust-test-case" ,rust-test-case-2)))) + (inputs (list unixodbc)) + (home-page "https://github.com/pacman82/odbc-api") + (synopsis "Write ODBC Applications in (mostly) safe Rust") + (description "Write ODBC Applications in (mostly) safe Rust.") + (license license:expat))) + (define-public rust-odbc-sys-0.21 (package (name "rust-odbc-sys")