Skip to content

Commit

Permalink
kafka: rename to tools (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid authored Oct 14, 2023
1 parent c89b89d commit f5f0c3c
Show file tree
Hide file tree
Showing 20 changed files with 309 additions and 301 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ on:
- 'master'
tags:
- 'v*'
- 'geyser-v*'
- 'kafka-v*'
- 'tools-v*'
workflow_dispatch:

env:
Expand Down Expand Up @@ -84,7 +83,10 @@ jobs:
- name: Deleteing directories to avoid upload conflict
run: |
rm -rf target/release/client.d target/release/config-check.d
rm -rf \
target/release/client.d \
target/release/config-check.d \
target/release/grpc-kafka.d
- name: Release
if: startsWith(github.ref, 'refs/tags/')
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ jobs:
run: cargo check -p yellowstone-grpc-client-simple --all-targets --tests
- name: check features in `geyser`
run: cargo check -p yellowstone-grpc-geyser --all-targets --tests
- name: check features in `kafka`
run: cargo check -p yellowstone-grpc-kafka --all-targets --tests
- name: check features in `proto`
run: cargo check -p yellowstone-grpc-proto --all-targets --tests
- name: check features in `tools`
run: cargo check -p yellowstone-grpc-tools --all-targets --tests

- name: Build
run: ./ci/cargo-build-test.sh
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ The minor version will be incremented upon a breaking change and the patch versi

### Breaking

- kafka: rename to tools ([#203](https://github.com/rpcpool/yellowstone-grpc/pull/203)).

## 2023-10-12

- yellowstone-grpc-geyser-1.10.0+solana.1.16.16
Expand Down
34 changes: 17 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ members = [
"examples/rust", # 1.10.0+solana.1.17.1
"yellowstone-grpc-client", # 1.11.1+solana.1.17.1
"yellowstone-grpc-geyser", # 1.10.0+solana.1.17.1
"yellowstone-grpc-kafka", # 1.0.0-rc.3+solana.1.17.1
"yellowstone-grpc-proto", # 1.10.0+solana.1.17.1
"yellowstone-grpc-tools", # 1.0.0-rc.4+solana.1.17.1
]

[profile.release]
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ It's possible to add limits for filters in config. If `filters` field is omitted
- [Rust](examples/rust)
- [TypeScript](examples/typescript)

### Kafka producer / consumer
### gRPC Tools

#### Kafka

In addition to gRPC Geyser Plugin we provide Kafka tool. This tool can works in 3 modes:

Expand All @@ -114,7 +116,7 @@ In addition to gRPC Geyser Plugin we provide Kafka tool. This tool can works in

```bash
$ cargo run --bin grpc-kafka -- --help
Yellowstone gRPC Kafka Producer/Dedup/Consumer
Yellowstone gRPC Kafka Tool

Usage: grpc-kafka [OPTIONS] --config <CONFIG> <COMMAND>

Expand All @@ -126,7 +128,6 @@ Commands:

Options:
-c, --config <CONFIG> Path to config file
--prometheus <PROMETHEUS> Prometheus listen address
-h, --help Print help
-V, --version Print version
```
Expand All @@ -135,11 +136,11 @@ Options:

```bash
# run kafka locally
docker-compose -f ./yellowstone-grpc-kafka/docker-kafka.yml up
docker-compose -f ./yellowstone-grpc-tools/docker-kafka.yml up
# create topic
kafka_2.13-3.5.0/bin/kafka-topics.sh --bootstrap-server localhost:29092 --create --topic grpc1
# send messages from gRPC to Kafka
cargo run --bin grpc-kafka -- --config yellowstone-grpc-kafka/config.json --prometheus 127.0.0.1:8873 grpc2kafka
cargo run --bin grpc-kafka -- --config yellowstone-grpc-tools/config-kafka.json grpc2kafka
# read messages from Kafka
kafka_2.13-3.5.0/bin/kafka-console-consumer.sh --bootstrap-server localhost:29092 --topic grpc1
```
Expand Down
242 changes: 0 additions & 242 deletions yellowstone-grpc-kafka/src/prom.rs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "yellowstone-grpc-kafka"
version = "1.0.0-rc.3+solana.1.17.1"
name = "yellowstone-grpc-tools"
version = "1.0.0-rc.4+solana.1.17.1"
authors = ["Triton One"]
edition = "2021"
description = "Yellowstone gRPC Kafka Producer/Dedup/Consumer"
description = "Yellowstone gRPC Tools"
publish = false

[dependencies]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit f5f0c3c

Please sign in to comment.