-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
65 lines (57 loc) · 1.7 KB
/
Cargo.toml
File metadata and controls
65 lines (57 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[package]
name = "ipgrep"
description = "ipgrep searches for IP addresses in CIDRs"
version = "0.2.0"
edition = "2024"
license = "GPL-3.0-or-later"
readme = "README.rst"
repository = "https://github.com/ossobv/ipgrep"
[features]
version-from-env = [] # supply version through env instead of git
bench = [] # when running benchmarks
[dependencies]
clap = { version = "4", features = ["derive", "wrap_help"] }
git-version = "0"
memchr = "2"
ipnet = "2"
[dev-dependencies]
criterion = "0"
regex = "1"
zerocopy = "0"
[build-dependencies]
#cargo-auditable = "0"
#cargo-deb = "3"
[[bench]]
name = "netlike"
harness = false
[[bench]]
name = "scanner"
harness = false
[profile.release]
# Non-scientific test said that the following options made things worse:
# opt-level="s"/"z"; lto=true; codegen-units=1
# A static musl build was also less performant that the glibc-linked version:
# - glibc: user 0m3.240s
# - musl: user 0m3.564s
# - glibc: sys 0m0.396s
# - musl: sys 0m0.576s
# But the advantage of the static build (works "everywhere") is overwhelming.
strip = true # Automatically strip symbols from the binary
[package.metadata.deb]
maintainer = "Walter Doekes <wjdoekes+ipgrep@osso.nl>"
suggests = "ipcalc"
extended-description = """
'ipgrep' is a utility to search for IP addresses or networks in text files.
It has various match modes to find bigger networks by IPs, or to find IPs
by supplied networks.
"""
changelog = "CHANGES.rst"
depends = ""
license-file = "LICENSE"
section = "utils"
priority = "optional"
assets = [
["target/release/ipgrep", "usr/bin/", "755"],
["README.rst", "usr/share/doc/ipgrep/", "644"],
#USED_BY_DOCKER#["target/docker/build-info.json", "usr/share/doc/ipgrep/", "644"],
]