-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
59 lines (50 loc) · 1.88 KB
/
Cargo.toml
File metadata and controls
59 lines (50 loc) · 1.88 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
[package]
name = "ruster_revm"
version = "0.1.0"
edition = "2021"
description = "High-performance REVM-based token risk analyzer with Pre-Execution Risk Scoring (PERS)"
[[bin]]
name = "ruster_revm"
path = "src/main.rs"
[[bin]]
name = "ruster_api"
path = "src/bin/ruster_api.rs"
[dependencies]
# Alloy - Modern Ethereum library
alloy = { version = "0.8", features = ["full"] }
alloy-provider = "0.8"
alloy-rpc-types = "0.8"
alloy-transport-ws = "0.8"
alloy-primitives = "0.8"
alloy-sol-types = "0.8"
# Async runtime
tokio = { version = "1.43", features = ["full", "rt-multi-thread", "macros"] }
futures-util = "0.3"
tokio-tungstenite = { version = "0.21", features = ["native-tls"] } # WebSocket client
# gRPC for Solana Yellowstone
tonic = "0.11"
prost = "0.12"
# REVM - Fast EVM simulator
revm = { version = "18", default-features = false, features = ["std", "serde"] }
# Web Framework (Ruster REVM Cloud API)
axum = { version = "0.7", features = ["macros"] }
tower = { version = "0.4", features = ["timeout", "limit"] }
tower-http = { version = "0.5", features = ["cors", "trace", "compression-gzip"] }
# Utilities
eyre = "0.6"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
dashmap = "6"
hex = "0.4"
uuid = { version = "1.0", features = ["v4"] }
chrono = { version = "0.4", features = ["serde"] }
lazy_static = "1.4"
rand = "0.8" # For random address generation in PERS algorithm and retry jitter
reqwest = { version = "0.11", features = ["json", "gzip"] } # For RPC calls with gzip compression
[profile.release]
opt-level = 'z' # Optimasi ukuran, bukan kecepatan maksimal (lebih ringan)
lto = false # MATIKAN LTO agar RAM Railway tidak meledak saat build
codegen-units = 16 # Gunakan lebih banyak unit agar build lebih cepat & hemat RAM
panic = 'abort' # Mengurangi ukuran binary