[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
193/330: gnu: Add rust-pcap-1.
From: |
guix-commits |
Subject: |
193/330: gnu: Add rust-pcap-1. |
Date: |
Mon, 18 Mar 2024 07:16:06 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit c94123adace1ff09b5949044c5c1d0d24fd25229
Author: Herman Rimm <herman@rimm.ee>
AuthorDate: Sun Feb 18 22:02:47 2024 +0100
gnu: Add rust-pcap-1.
* gnu/packages/crates-io.scm (rust-pcap-1): Add variable.
(rust-pcap-0.7): Inherit rust-pcap-1.
Change-Id: I00cfe081f4414616c7524af5093ebd639c8cd37f
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
gnu/packages/crates-io.scm | 44 ++++++++++++++++++++++++++++++++++++++------
1 file changed, 38 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1cb824af38..e5b32616f0 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -48029,8 +48029,45 @@ relative path from a provided base directory path to
the provided
path.")
(license (list license:asl2.0 license:expat))))
+(define-public rust-pcap-1
+ (package
+ (name "rust-pcap")
+ (version "1.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "pcap" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0ygzsi7v2x9ld5cb61dfg8jgifs2rln6qlknypzqjjnmfgy3bscr"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-1)
+ ("rust-errno" ,rust-errno-0.2)
+ ("rust-etherparse" ,rust-etherparse-0.13)
+ ("rust-futures" ,rust-futures-0.3)
+ ("rust-gat-std" ,rust-gat-std-0.1)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-libloading" ,rust-libloading-0.6)
+ ("rust-pkg-config" ,rust-pkg-config-0.3)
+ ("rust-regex" ,rust-regex-1)
+ ("rust-tokio" ,rust-tokio-1)
+ ("rust-tun-tap" ,rust-tun-tap-0.1)
+ ("rust-windows-sys" ,rust-windows-sys-0.36))
+ #:cargo-development-inputs (("rust-eui48" ,rust-eui48-1)
+ ("rust-mockall" ,rust-mockall-0.11)
+ ("rust-once-cell" ,rust-once-cell-1)
+ ("rust-tempdir" ,rust-tempdir-0.3))))
+ (inputs (list libpcap))
+ (home-page "https://github.com/rust-pcap/pcap")
+ (synopsis "Packet capture API around (w)pcap")
+ (description
+ "This package provides a packet capture API around pcap/wpcap.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-pcap-0.7
(package
+ (inherit rust-pcap-1)
(name "rust-pcap")
(version "0.7.0")
(source
@@ -48041,7 +48078,6 @@ path.")
(sha256
(base32 "14blflnbj87z3ajlj1hszsl6k7rwa338y4aw2yjm2j0xdpjvj4pr"))))
(native-inputs (list libpcap))
- (build-system cargo-build-system)
(arguments
`(#:tests? #f ; can't find crate for `futures`
#:cargo-inputs
@@ -48051,11 +48087,7 @@ path.")
("rust-mio" ,rust-mio-0.6)
("rust-tokio-core" ,rust-tokio-core-0.1))
#:cargo-development-inputs
- (("rust-tempdir" ,rust-tempdir-0.3))))
- (home-page "https://github.com/rust-pcap/pcap")
- (synopsis "Packet capture API around pcap/wpcap")
- (description "This package provides a packet capture API around
pcap/wpcap.")
- (license (list license:expat license:asl2.0))))
+ (("rust-tempdir" ,rust-tempdir-0.3))))))
(define-public rust-pcap-sys-0.1
(package
- 180/330: gnu: Add rust-argminmax-0.6., (continued)
- 180/330: gnu: Add rust-argminmax-0.6., guix-commits, 2024/03/18
- 176/330: gnu: Add rust-arrow-data-43., guix-commits, 2024/03/18
- 188/330: gnu: Add rust-gat-std-proc-0.1., guix-commits, 2024/03/18
- 189/330: gnu: Add rust-gat-std-0.1., guix-commits, 2024/03/18
- 183/330: gnu: Add rust-http-body-util-0.1., guix-commits, 2024/03/18
- 181/330: gnu: Add rust-pwd-1., guix-commits, 2024/03/18
- 186/330: gnu: Add rust-hyper-util-0.1., guix-commits, 2024/03/18
- 187/330: gnu: Add rust-http-range-header-0.4., guix-commits, 2024/03/18
- 198/330: gnu: Add rust-tower-http-0.5., guix-commits, 2024/03/18
- 195/330: gnu: Add rust-pnet-base-0.34., guix-commits, 2024/03/18
- 193/330: gnu: Add rust-pcap-1.,
guix-commits <=
- 196/330: gnu: Add rust-pnet-sys-0.34., guix-commits, 2024/03/18
- 201/330: gnu: rust-sluice-0.5: Update to 0.5.5., guix-commits, 2024/03/18
- 209/330: gnu: Add rust-trycmd-0.15., guix-commits, 2024/03/18
- 203/330: gnu: Add rust-opentelemetry-http-0.10., guix-commits, 2024/03/18
- 216/330: gnu: rust-toml-test-data: Update to 1.8.0., guix-commits, 2024/03/18
- 223/330: gnu: Add rust-ansi-width-0.1., guix-commits, 2024/03/18
- 219/330: gnu: Add rust-winnow-0.6., guix-commits, 2024/03/18
- 230/330: gnu: treefmt: Update to 0.6.1., guix-commits, 2024/03/18
- 233/330: gnu: rust-rust-embed-5: Don't skip the build., guix-commits, 2024/03/18
- 236/330: gnu: rust-include-flate-codegen-exports-0.1: Update to 0.1.4., guix-commits, 2024/03/18