event-scanner 1.1.0

Event Scanner is a library for scanning events from any EVM-based blockchain.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "event-scanner"
version = "1.1.0"
authors = ["OpenZeppelin"]
build = false
exclude = [
    ".github/",
    ".vscode/",
    ".config/",
    ".cargo/",
    "benches/",
    "tests/",
    "bin/generate_dump.rs",
]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Event Scanner is a library for scanning events from any EVM-based blockchain."
documentation = "https://docs.rs/event-scanner"
readme = "README.md"
keywords = [
    "evm",
    "ethereum",
    "blockchain",
    "events",
    "alloy",
]
categories = [
    "asynchronous",
    "web-programming",
    "web-programming::websocket",
    "cryptography::cryptocurrencies",
]
license = "MIT"
repository = "https://github.com/OpenZeppelin/Event-Scanner"

[package.metadata.docs.rs]
all-features = true

[features]
bench-utils = [
    "dep:anyhow",
    "dep:serde",
    "dep:serde_json",
    "dep:flate2",
    "dep:tracing",
    "alloy/node-bindings",
]
example = [
    "tracing",
    "dep:anyhow",
]
http-subscription = ["robust-provider/http-subscription"]
test-utils = ["dep:anyhow"]
tracing = ["dep:tracing"]

[lib]
name = "event_scanner"
path = "src/lib.rs"

[[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"]

[dependencies.alloy]
version = "1.1.2"
default-features = false

[dependencies.anyhow]
version = "1.0"
optional = true

[dependencies.flate2]
version = "1.1"
optional = true

[dependencies.futures]
version = "0.3.31"
default-features = false

[dependencies.robust-provider]
version = "1.0.1"

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tokio]
version = "1.48"
features = ["rt-multi-thread"]

[dependencies.tokio-stream]
version = "0.1.17"
default-features = false

[dependencies.tracing]
version = "0.1"
optional = true

[dev-dependencies.alloy]
version = "1.1.2"
features = [
    "node-bindings",
    "provider-ws",
    "rpc-types-anvil",
]

[dev-dependencies.criterion]
version = "0.8"
features = [
    "async_tokio",
    "html_reports",
]

[dev-dependencies.test-log]
version = "0.2.18"
features = ["trace"]

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "fmt",
    "env-filter",
]

[lints.clippy]
all = "warn"
pedantic = "warn"

[profile.release]
lto = "thin"
codegen-units = 1
panic = "abort"
strip = true