diff options
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r-- | gnu/packages/crates-io.scm | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 82fdda4bfe..a582b8f2bc 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -23946,6 +23946,63 @@ console applications.") (description "This prackage provides a wrapper for SQLite.") (license license:expat))) +(define-public rust-rusqlite-0.23 + (package + (inherit rust-rusqlite-0.24) + (name "rust-rusqlite") + (version "0.23.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "rusqlite" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "12z5584sylfqg7v2fyiycahyg0hf186v8v2ff5ad4qyzw5igvl25")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Enable unstable features + (substitute* "src/lib.rs" + (("#!\\[allow\\(unknown_lints\\)\\]" all) + (string-append + "#![feature(cfg_doctest)]\n" + "#![feature(non_exhaustive)]\n" + all))))))) + (arguments + `(#:cargo-inputs + (("rust-bitflags" ,rust-bitflags-1) + ("rust-byteorder" ,rust-byteorder-1) + ("rust-chrono" ,rust-chrono-0.4) + ("rust-csv" ,rust-csv-1.1) + ("rust-fallible-iterator" ,rust-fallible-iterator-0.2) + ("rust-fallible-streaming-iterator" + ,rust-fallible-streaming-iterator-0.1) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-libsqlite3-sys" ,rust-libsqlite3-sys-0.18) + ("rust-lru-cache" ,rust-lru-cache-0.1) + ("rust-memchr" ,rust-memchr-2) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-smallvec" ,rust-smallvec-1) + ("rust-time" ,rust-time-0.1) + ("rust-url" ,rust-url-2) + ("rust-uuid" ,rust-uuid-0.8)) + #:cargo-development-inputs + (("rust-bencher" ,rust-bencher-0.1) + ("rust-doc-comment" ,rust-doc-comment-0.3) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-regex" ,rust-regex-1) + ("rust-tempfile" ,rust-tempfile-3) + ("rust-unicase" ,rust-unicase-2) + ("rust-uuid" ,rust-uuid-0.8)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'enable-unstable-features + (lambda _ + (setenv "RUSTC_BOOTSTRAP" "1") + #t))))) + (native-inputs + `(("pkg-config" ,pkg-config))))) + (define-public rust-rust-argon2-0.7 (package (name "rust-rust-argon2") |