From abfef465b2b2353610cbff2caefee679566978f7 Mon Sep 17 00:00:00 2001 From: Picnoir Date: Sun, 19 May 2024 14:46:23 +0200 Subject: gnu: Add rust-dns-lookup-2. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/crates-io.scm (rust-dns-lookup-2): New variable. Required by Nsncd. Change-Id: I66a8488c93cc0c119417270db93733424a791069 Co-authored-by: Ludovic Courtès --- gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index ecae320792..6b4d8dfac3 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -19942,6 +19942,31 @@ a vector.") not support network, only raw protocol parser.") (license (list license:expat license:asl2.0)))) +(define-public rust-dns-lookup-2 + (package + (name "rust-dns-lookup") + (version "2.0.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "dns-lookup" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1z74n2zij2gahycabm0gkmkyx574h76gwk7sz93yqpr3qa3n0xp5")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-socket2" ,rust-socket2-0.5) + ("rust-windows-sys" ,rust-windows-sys-0.48)))) + (home-page "https://github.com/keeperofdakeys/dns-lookup/") + (synopsis "DNS resolution interface") + (description + "This package provides a simple DNS resolving interface, much like Rust's +unstable API. It includes @code{getaddrinfo} and @code{getnameinfo} wrappers +for libc variants.") + (license (list license:expat license:asl2.0)))) + (define-public rust-dns-sd-0.1 (package (name "rust-dns-sd") -- cgit v1.2.3