Skip to content

Commit 7a92e84

Browse files
Accumulator Step (#164)
1 parent c6f3948 commit 7a92e84

File tree

7 files changed

+840
-40
lines changed

7 files changed

+840
-40
lines changed

aptos-indexer-processors-sdk/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ rust-version = "1.78"
2121
[workspace.dependencies]
2222
aptos-indexer-processor-sdk = { path = "sdk" }
2323
aptos-indexer-transaction-stream = { path = "transaction-stream" }
24-
instrumented-channel = { path = "instrumented-channel" }
2524
aptos-moving-average = { path = "moving-average" }
25+
instrumented-channel = { path = "instrumented-channel" }
2626
sample = { path = "sample" }
2727

2828
ahash = { version = "0.8.7", features = ["serde"] }
@@ -38,6 +38,8 @@ bcs = { git = "https://github.com/aptos-labs/bcs.git", rev = "d31fab9d81748e2594
3838
bigdecimal = { version = "0.4.0", features = ["serde"] }
3939
chrono = { version = "0.4.19", features = ["clock", "serde"] }
4040
clap = { version = "4.3.5", features = ["derive", "unstable-styles"] }
41+
delegate = "0.12.0"
42+
derive_builder = "0.20.0"
4143
# Do NOT enable the postgres feature here, it is conditionally enabled in a feature
4244
# block in the Cargo.toml file for the processor crate.
4345
# https://github.com/aptos-labs/aptos-indexer-processors/pull/325
@@ -54,8 +56,6 @@ diesel-async = { version = "0.7.4", features = [
5456
"tokio",
5557
] }
5658
diesel_migrations = { version = "2.1.0", features = ["postgres"] }
57-
delegate = "0.12.0"
58-
derive_builder = "0.20.0"
5959
field_count = "0.1.1"
6060
futures = "0.3.30"
6161
futures-util = "0.3.21"
@@ -84,7 +84,6 @@ tempfile = "3.3.0"
8484
testcontainers = "0.20.1"
8585
thiserror = "1.0.61"
8686
tiny-keccak = { version = "2.0.2", features = ["keccak", "sha3"] }
87-
tracing = "0.1.34"
8887
tokio = { version = "1.37.0", features = [
8988
"rt",
9089
"rt-multi-thread",
@@ -102,6 +101,7 @@ tonic = { version = "0.12.3", features = [
102101
"codegen",
103102
"zstd",
104103
] }
104+
tracing = "0.1.34"
105105
tracing-subscriber = { version = "0.3.17", features = ["json", "env-filter"] }
106106
url = { version = "2.5.1", features = ["serde"] }
107107

aptos-indexer-processors-sdk/sdk/Cargo.toml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,41 @@ publish = { workspace = true }
1111
repository = { workspace = true }
1212
rust-version = { workspace = true }
1313

14+
[features]
15+
# Server framework feature enables the HTTP server with metrics and health check endpoints.
16+
# This requires tokio net features for the TCP listener.
17+
server_framework = [
18+
"autometrics",
19+
"axum",
20+
"backtrace",
21+
"clap",
22+
"toml",
23+
"tracing-subscriber",
24+
"tokio/net",
25+
]
26+
postgres_partial = [
27+
"diesel",
28+
"diesel-async",
29+
"diesel_migrations",
30+
"field_count",
31+
"postgres-native-tls",
32+
"native-tls",
33+
"server_framework",
34+
"tokio-postgres",
35+
]
36+
# When using the postgres_full features we enable the diesel/postgres feature. We configure
37+
# it in a feature so the CLI can opt out, since it cannot tolerate the libpq dep.
38+
# Recall that features should always be additive.
39+
postgres_full = ["postgres_partial", "diesel/postgres"]
40+
testing_framework = [
41+
"testcontainers",
42+
"tonic",
43+
"tokio-retry",
44+
"tokio-stream",
45+
"tokio/net",
46+
]
47+
default = []
48+
1449
[dependencies]
1550
ahash = { workspace = true }
1651
anyhow = { workspace = true }
@@ -64,38 +99,3 @@ url = { workspace = true }
6499

65100
[target.'cfg(target_os = "linux")'.dependencies]
66101
aptos-system-utils = { workspace = true }
67-
68-
[features]
69-
# Server framework feature enables the HTTP server with metrics and health check endpoints.
70-
# This requires tokio net features for the TCP listener.
71-
server_framework = [
72-
"autometrics",
73-
"axum",
74-
"backtrace",
75-
"clap",
76-
"toml",
77-
"tracing-subscriber",
78-
"tokio/net",
79-
]
80-
postgres_partial = [
81-
"diesel",
82-
"diesel-async",
83-
"diesel_migrations",
84-
"field_count",
85-
"postgres-native-tls",
86-
"native-tls",
87-
"server_framework",
88-
"tokio-postgres",
89-
]
90-
# When using the postgres_full features we enable the diesel/postgres feature. We configure
91-
# it in a feature so the CLI can opt out, since it cannot tolerate the libpq dep.
92-
# Recall that features should always be additive.
93-
postgres_full = ["postgres_partial", "diesel/postgres"]
94-
testing_framework = [
95-
"testcontainers",
96-
"tonic",
97-
"tokio-retry",
98-
"tokio-stream",
99-
"tokio/net",
100-
]
101-
default = []

0 commit comments

Comments
 (0)