-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
38 lines (32 loc) · 1.41 KB
/
Cargo.toml
File metadata and controls
38 lines (32 loc) · 1.41 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
[package]
name = "plainapp-cli"
version = "0.1.0"
edition = "2021"
description = "CLI for querying and managing PlainApp data via its GraphQL API"
license = "MIT"
[[bin]]
name = "plainapp-cli"
path = "src/main.rs"
[dependencies]
# XChaCha20-Poly1305 — matches the encryption used by the PlainApp server
chacha20poly1305 = "0.10"
# macOS + Windows: delegate TLS to the OS (SecureTransport / Schannel).
# This removes the entire rustls/ring/webpki dependency chain from the binary,
# eliminating the embedded Mozilla CA root store (including Chinese CA strings
# that trigger APT-detection heuristics) and the TLS cipher suite string table.
# Linux musl: keep rustls for fully static portable binaries (already 0/72 clean).
[target.'cfg(not(target_os = "linux"))'.dependencies]
reqwest = { version = "0.12", default-features = false, features = ["blocking", "native-tls"] }
[target.'cfg(target_os = "linux")'.dependencies]
reqwest = { version = "0.12", default-features = false, features = ["blocking", "rustls-tls"] }
# socket2: safe Rust API for SO_REUSEADDR/REUSEPORT before binding.
# Replaces the raw extern "C" { fn socket/setsockopt/bind/close } block in
# mdns.rs, which is a textbook rootkit pattern and a major AV heuristic trigger.
[target.'cfg(unix)'.dependencies]
socket2 = { version = "0.5", features = ["all"] }
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
panic = "abort"