-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathCargo.toml
More file actions
60 lines (50 loc) · 1.44 KB
/
Cargo.toml
File metadata and controls
60 lines (50 loc) · 1.44 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
[package]
name = "vpn-kill-switch"
version = "0.8.1"
authors = ["Nicolas Embriz <nbari@tequila.io>"]
description = "VPN kill switch for macOS"
documentation = "https://killswitch.network"
homepage = "https://killswitch.network"
repository = "https://github.com/vpn-kill-switch/killswitch"
readme = "README.md"
keywords = ["killswitch", "vpn", "firewall", "network", "macos"]
categories = ["command-line-utilities", "network-programming", "os::macos-apis"]
license = "BSD-3-Clause"
edition = "2024"
[lib]
name = "killswitch"
[lints.rust]
warnings = "deny"
[lints.clippy]
# Allow unstable/opinionated lints (lower priority so individual lints can override)
nursery = { level = "allow", priority = -1 }
# Enforce pedantic lints
pedantic = "deny"
# Core lint groups
all = "deny"
correctness = "deny"
suspicious = "deny"
perf = "deny"
complexity = "deny"
# Safety-critical lints
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
indexing_slicing = "deny"
await_holding_lock = "deny"
# Performance + memory reliability
needless_borrow = "deny"
needless_collect = "deny"
large_stack_arrays = "deny"
[dependencies]
anyhow = "1"
chrono = { version = "0.4.44", default-features = false, features = ["clock"] }
clap = { version = "4", features = ["string", "env"] }
libc = "0.2"
nix = { version = "0.31", features = ["net"] }
[build-dependencies]
built = { version = "0.8.0", features = ["git2"] }
[profile.release]
lto = "fat"
codegen-units = 1
strip = "symbols"