summaryrefslogtreecommitdiffhomepage
path: root/Cargo.toml
blob: 2ade2e2bfea570aad0a95cd9049cd1fc8c526ab8 (plain)
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
# Copyright 2025-2026 Dillution <[email protected]>.
#
# This file is part of DPIBreak.
#
# DPIBreak is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.
#
# DPIBreak is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with DPIBreak. If not, see <https://www.gnu.org/licenses/>.

[package]
name = "dpibreak"
version = "0.6.1"
authors = ["Dilluti0n <[email protected]>"]
edition = "2024"
rust-version = "1.88"
build = "build.rs"
license = "GPL-3.0-or-later"
description = "fast and easy-to-use DPI circumvention tool in Rust."
repository = "https://github.com/dilluti0n/dpibreak.git"
homepage = "https://github.com/dilluti0n/dpibreak"
readme = "README.md"

[workspace]
members = ["crates/windivert/"]

[dependencies]
anyhow = "1"
etherparse = "0.18"

[target.'cfg(target_os = "linux")'.dependencies]
nfq = { package = "nfq-updated", version = "0.2.6" } # nfq-updated: to use as_raw_fd
socket2 = { version = "0.6", features = ["all"] }
daemonize = "0.5.0"
libc = "0.2"
thiserror = "2.0.18"

[target.'cfg(windows)'.dependencies]
windivert = { path = "crates/windivert" }
windows-services = "0.26"
windows = { version = "0.62", features = ["Win32", "Win32_System", "Win32_System_Services"] }

[build-dependencies]
winres = "0.1"

# preprocess dpibreak.1.in
# chrono = { version = "0.4", features = ["clock"] }

[profile.release]
lto = true
panic = "abort"

[dev-dependencies]
criterion = { version = "0.8", features = ["html_reports"] }

[features]
bench = []

[[bench]]
name = "hoptab_bench"
harness = false
required-features = ["bench"]