-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCargo.toml
104 lines (93 loc) · 3.17 KB
/
Cargo.toml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[package]
name = "mhost"
version = "0.3.1"
authors = ["Lukas Pustina <lukas@pustina.de>"]
edition = "2018"
description = "More than host - A modern take on the classic host DNS lookup utility including an easy to use and very fast Rust lookup library"
repository = "https://github.com/lukaspustina/mhost.git"
homepage = "https://mhost.pustina.de"
readme = "README.md"
license = "MIT/Apache-2.0"
categories = ["command-line-utilities"]
keywords = ["network", "dns", "host", "dig", "cli"]
include = [
"README.md",
"LICENSE-APACHE",
"LICENSE-MIT",
"CHANGELOG.md",
"**/*.rs",
"Cargo.toml",
]
build = "build.rs"
[[bin]]
name = "mhost"
path = "src/bin/mhost.rs"
doc = false
required-features = ["app"]
[lib]
name = "mhost"
path = "src/lib.rs"
[dependencies]
anyhow = { version = "1", optional = true }
clap = { version = "2", optional = true }
chrono = { version = "0.4", features = ["serde"] }
futures = { version = "0.3.*"}
hostname = { version = "0.3", optional = true }
humantime = { version = "2", optional = true }
indexmap = "1"
ipnetwork = "0.17"
lazy_static = "1.4"
lru_time_cache = "0.11"
nom = "5"
rand = "0.8"
# Sync with trust-dns-resolver and tokio if possible, to reduce dependencies to build and link
reqwest = { version = "0.11", default-features = false, features = ["rustls-tls", "json", "trust-dns"] }
pin-project = "1"
resolv-conf = "0.7"
tokio = { version = "1", features = ["full"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
smallvec = "1"
tabwriter = { version = "1", optional = true }
thiserror = "1"
tracing = "0.1"
tracing-futures = "0.2"
tracing-log = { version = "0.1", optional = true }
tracing-subscriber = { version = "0.3", features = ["registry", "env-filter"], optional = true }
trust-dns-resolver = { version = "0.20", features = ["tokio-runtime", "dns-over-rustls", "dns-over-https-rustls", "dnssec-ring", "system-config", "serde-config"] }
yansi = "0.5"
[build-dependencies]
clap = { version = "2", default-features = false, features = ["suggestions"] }
[dev-dependencies]
tracing-log = "0.1"
tracing-subscriber = { version = "0.3", features = ["registry", "env-filter"] }
lit = "1"
spectral = "0.6"
[features]
default = ["app"]
app = ["anyhow", "clap", "hostname", "humantime", "tabwriter", "tracing-log", "tracing-subscriber"]
[profile.release]
lto = true
overflow-checks = true
panic = "abort"
[package.metadata.deb]
extended-description = """mhost
- is very fast and uses multiple DNS servers concurrently and aggregates all results for more reliable lookups.
- supports classic DNS over UDP and TCP as well as modern DNS over TLS (DoT) and HTTP (DoH).
- presents results in an easy, human readable format or as JSON for post-processing.
- discovers host names, subdomains of any domain, as well as IP subnets in CIDR notation.
- uses lints to validate the DNS configurations of any domain.
"""
section = "Network"
features = ["app"]
priority = "optional"
assets = [
["target/release/mhost", "usr/bin/", "755"],
["README.md", "usr/share/doc/mhost/README", "644"],
]
[package.metadata.rpm]
package = "mhost"
[package.metadata.rpm.cargo]
buildflags = ["--release", "--features", "app"]
[package.metadata.rpm.targets]
mhost = { path = "/usr/bin/mhost" }