Skip to main content

max / makenotwork

2.6 KB · 73 lines History Blame Raw
1 [package]
2 name = "ops-exec"
3 version = "0.1.0"
4 edition = "2024"
5 license = "MIT"
6 description = "The trusted executor: run a typed, capability-gated step on a host and observe a host, over local exec, SSH, or an in-session agent. Trust root is SSH keys + Tailscale/Headscale only. Used by sando and bento."
7
8 [features]
9 default = []
10 # AgentRpc transport (the client half) — used by drivers that talk to ops-agent.
11 rpc = ["dep:reqwest", "dep:serde_json", "dep:futures-util"]
12 # The ops-agent binary (the on-host half). Pulls in the HTTP server + rpc.
13 agent = ["rpc", "dep:axum", "dep:tokio-stream", "dep:tracing-subscriber", "dep:toml"]
14
15 [dependencies]
16 tokio = { version = "1.50.0", features = ["macros", "rt-multi-thread", "io-util", "fs", "process", "sync"] }
17 async-trait = "0.1.83"
18 serde = { version = "1.0.228", features = ["derive"] }
19 anyhow = "1.0.102"
20 thiserror = "2.0.18"
21 tracing = "0.1.44"
22
23 # rpc / agent only
24 reqwest = { version = "0.13", default-features = false, features = ["rustls", "stream", "json", "query"], optional = true }
25 serde_json = { version = "1", optional = true }
26 futures-util = { version = "0.3", optional = true }
27 axum = { version = "0.8.8", optional = true }
28 tokio-stream = { version = "0.1", optional = true }
29 tracing-subscriber = { version = "0.3.22", features = ["env-filter"], optional = true }
30 toml = { version = "1.1", optional = true }
31 glob = "0.3.3"
32
33 [[bin]]
34 name = "ops-agent"
35 path = "src/bin/ops-agent.rs"
36 required-features = ["agent"]
37
38 [dev-dependencies]
39 tempfile = "3.20"
40 tokio = { version = "1.50.0", features = ["macros", "rt-multi-thread", "time"] }
41
42 [lints.rust]
43 unused = "warn"
44 unreachable_pub = "warn"
45
46 [lints.clippy]
47 pedantic = { level = "warn", priority = -1 }
48 # Allow-list tuned from a measured breakdown across server/multithreaded/pter
49 # (2026-07-22). These are the high-churn / low-signal pedantic lints; everything
50 # else in `pedantic` stays a warning. Keep this block identical across repos.
51 module_name_repetitions = "allow"
52 # Doc lints. No docs-completeness push is underway.
53 missing_errors_doc = "allow"
54 missing_panics_doc = "allow"
55 doc_markdown = "allow"
56 # Numeric casts. Endemic and mostly intentional in size and byte math.
57 cast_possible_truncation = "allow"
58 cast_sign_loss = "allow"
59 cast_precision_loss = "allow"
60 cast_possible_wrap = "allow"
61 cast_lossless = "allow"
62 # Subjective structure and style nags. High churn, low signal.
63 must_use_candidate = "allow"
64 too_many_lines = "allow"
65 struct_excessive_bools = "allow"
66 similar_names = "allow"
67 items_after_statements = "allow"
68 single_match_else = "allow"
69 # Frequent false-positives in TUI and router-heavy code.
70 match_same_arms = "allow"
71 unnecessary_wraps = "allow"
72 type_complexity = "allow"
73