Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
124 lines (108 loc) · 3.09 KB
/
Copy pathCargo.toml
File metadata and controls
124 lines (108 loc) · 3.09 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[package]
name = "event-scanner"
description = "Event Scanner is a library for scanning events from any EVM-based blockchain."
categories = [
"asynchronous",
"web-programming",
"web-programming::websocket",
"cryptography::cryptocurrencies",
]
keywords = ["evm", "ethereum", "blockchain", "events", "alloy"]
authors = ["OpenZeppelin"]
edition = "2024"
readme = "README.md"
license = "MIT"
repository = "https://github.com/OpenZeppelin/Event-Scanner"
documentation = "https://docs.rs/event-scanner"
version = "1.1.1"
publish = true
exclude = [
".github/",
".vscode/",
".config/",
".cargo/",
"benches/",
"tests/",
"bin/generate_dump.rs",
]
[dependencies]
alloy = { version = "1.1.2", default-features = false }
tokio = { version = "1.48", features = ["rt-multi-thread"] }
futures = { version = "0.3.31", default-features = false }
thiserror = "2.0.17"
tokio-stream = { version = "0.1.17", default-features = false }
robust-provider = "1.0.1"
anyhow = { version = "1.0", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = { version = "1.0", optional = true }
flate2 = { version = "1.1", optional = true }
tracing = { version = "0.1", optional = true }
[dev-dependencies]
alloy = { version = "1.1.2", features = [
"node-bindings",
"provider-ws",
"rpc-types-anvil",
] }
criterion = { version = "0.8", features = ["async_tokio", "html_reports"] }
tracing-subscriber = { version = "0.3", features = ["fmt", "env-filter"] }
test-log = { version = "0.2.18", features = ["trace"] }
[package.metadata.docs.rs]
all-features = true
[lints.clippy]
pedantic = "warn"
all = "warn"
[[bench]]
name = "historic_scanning"
harness = false
required-features = ["bench-utils"]
[[bench]]
name = "latest_events_scanning"
harness = false
required-features = ["bench-utils"]
[[bin]]
name = "generate_dump"
path = "bin/generate_dump.rs"
required-features = ["bench-utils"]
[[example]]
name = "historical_scanning"
path = "examples/historical_scanning.rs"
required-features = ["example"]
[[example]]
name = "latest_events_scanning"
path = "examples/latest_events_scanning.rs"
required-features = ["example"]
[[example]]
name = "live_scanning"
path = "examples/live_scanning.rs"
required-features = ["example"]
[[example]]
name = "live_scanning_http"
path = "examples/live_scanning_http.rs"
required-features = ["example", "http-subscription"]
[[example]]
name = "sync_from_block_scanning"
path = "examples/sync_from_block_scanning.rs"
required-features = ["example"]
[[example]]
name = "sync_from_latest_scanning"
path = "examples/sync_from_latest_scanning.rs"
required-features = ["example"]
[features]
test-utils = ["dep:anyhow"]
tracing = ["dep:tracing"]
bench-utils = [
"dep:anyhow",
"dep:serde",
"dep:serde_json",
"dep:flate2",
"dep:tracing",
"alloy/node-bindings",
"alloy/provider-ws", # needed when running `cargo run --bin generate_dump --features bench-utils`
]
example = ["tracing", "dep:anyhow"]
http-subscription = ["robust-provider/http-subscription"]
[profile.release]
lto = "thin"
panic = "abort"
codegen-units = 1
strip = true