-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
89 lines (74 loc) · 2.23 KB
/
Copy pathCargo.toml
File metadata and controls
89 lines (74 loc) · 2.23 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[package]
name = "skypier-blackhole"
version = "0.3.0"
edition = "2021"
authors = ["Skypier Team"]
description = "High-performance DNS-based domain blocking tool for Skypier VPN nodes"
license = "MIT"
repository = "https://github.com/SkyPierIO/skypier-blackhole"
readme = "README.md"
keywords = ["dns", "blocklist", "vpn", "adblock", "privacy"]
categories = ["network-programming", "command-line-utilities"]
[[bin]]
name = "skypier-blackhole"
path = "src/main.rs"
[package.metadata.deb]
maintainer = "Skypier Team"
copyright = "Skypier Team"
extended-description = "DNS resolver that blocks unwanted domains for Skypier VPN nodes."
section = "net"
priority = "optional"
depends = "$auto"
assets = [
["target/release/skypier-blackhole", "usr/bin/", "755"],
["config/blackhole.toml.example", "etc/skypier/blackhole.toml", "644"],
]
conf-files = ["/etc/skypier/blackhole.toml"]
maintainer-scripts = "debian/"
systemd-units = { unit-name = "skypier-blackhole", unit-scripts = "systemd/", enable = true, start = true }
[dependencies]
# Async runtime
tokio = { version = "1.35", features = ["full"] }
futures = "0.3"
# Randomized upstream selection
rand = "0.8"
# DNS server
hickory-server = "0.24"
hickory-client = { version = "0.24", features = ["dns-over-https-rustls"] }
hickory-proto = "0.24"
rustls = "0.21"
webpki-roots = "0.25"
# CLI
clap = { version = "4.4", features = ["derive", "cargo"] }
colored = "2.1"
# Configuration
serde = { version = "1.0", features = ["derive"] }
toml = "0.8"
# HTTP client for downloading blocklists
reqwest = { version = "0.11", default-features = false, features = ["json", "rustls-tls"] }
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
# Data structures
radix_trie = "0.3"
bloomfilter = "1.0"
# Error handling
anyhow = "1.0"
thiserror = "1.0"
# Time handling
chrono = "0.4"
tokio-cron-scheduler = "0.10"
# Signal handling
signal-hook = "0.4"
signal-hook-tokio = { version = "0.4", features = ["futures-v0_3"] }
nix = { version = "0.31", features = ["signal"] }
ratatui = "0.29"
crossterm = { version = "0.28", features = ["event-stream"] }
[dev-dependencies]
tempfile = "3.8"
mockito = "1.2"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true