-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
98 lines (77 loc) · 2.18 KB
/
Cargo.toml
File metadata and controls
98 lines (77 loc) · 2.18 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
90
91
92
93
94
95
96
97
98
[package]
name = "phoscat"
version = "0.5.1"
edition = "2021"
authors = ["DROO <droo@axol.io>"]
description = "High-performance universal log colorizer"
license = "MIT OR Apache-2.0"
repository = "https://github.com/Hydepwns/phos"
keywords = ["ethereum", "logs", "colorizer", "terminal", "web3"]
categories = ["command-line-utilities", "development-tools"]
[lib]
name = "phos"
path = "src/lib.rs"
[dependencies]
# CLI
clap = { version = "4.4", features = ["derive", "env"] }
clap_complete = "4.4"
clap_mangen = "0.2"
is-terminal = "0.4"
# Colors
nu-ansi-term = "0.50"
# Regex
regex = "1.10"
# Performance
smallvec = "1.13"
# Config
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9"
serde_json = "1.0"
# Directories
dirs = "5.0"
# Error handling
thiserror = "1.0"
anyhow = "1.0"
# Async HTTP for webhooks
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
tokio = { version = "1", features = ["rt-multi-thread", "sync", "time", "macros", "io-util"] }
# Aggregator dependencies (for phos-aggregator binary)
bollard = "0.18"
axum = { version = "0.8", features = ["ws"] }
tower-http = { version = "0.6", features = ["fs", "cors"] }
ansi-to-html = "0.2"
futures = "0.3"
# WAMP/WebSocket for DAppNode integration
tokio-tungstenite = { version = "0.26", features = ["rustls-tls-webpki-roots"] }
tokio-stream = "0.1"
async-trait = "0.1"
# Socket.IO for modern DAppNode integration
rust_socketio = { version = "0.6", features = ["async"] }
# Vendored OpenSSL for musl/static builds (required by rust_socketio)
openssl = { version = "0.10", features = ["vendored"] }
# PTY support (Unix only)
[target.'cfg(unix)'.dependencies]
nix = { version = "0.29", features = ["term", "process", "poll", "fs"] }
signal-hook = "0.3"
[dev-dependencies]
criterion = "0.5"
proptest = "1.4"
[[bin]]
name = "phos"
path = "src/main.rs"
[[bin]]
name = "phoscat"
path = "src/bin/phoscat.rs"
[[bin]]
name = "phos-aggregator"
path = "src/bin/phos-aggregator.rs"
[[bench]]
name = "colorize"
harness = false
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true
[package.metadata.cargo-machete]
ignored = ["openssl"] # Required for vendored builds (musl/static)