Skip to content

Commit

Permalink
use workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Nov 13, 2023
1 parent 1997131 commit 7142e82
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 21 deletions.
16 changes: 16 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[workspace]
resolver = "2"
members = [
"examples/rust", # 1.11.0+solana.1.17.4
"yellowstone-grpc-client", # 1.12.0+solana.1.17.4
Expand All @@ -7,6 +8,21 @@ members = [
"yellowstone-grpc-tools", # 1.0.0-rc.6+solana.1.17.4
]

[workspace.package]
authors = ["Triton One"]
edition = "2021"
homepage = "https://triton.one"
repository = "https://github.com/rpcpool/yellowstone-grpc"
license = "Apache-2.0"
keywords = ["solana"]

[workspace.dependencies]
solana-account-decoder = "=1.17.4"
solana-geyser-plugin-interface = "=1.17.4"
solana-logger = "=1.17.4"
solana-sdk = "=1.17.4"
solana-transaction-status = "=1.17.4"

[profile.release]
debug = true
lto = true
Expand Down
12 changes: 8 additions & 4 deletions examples/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
[package]
name = "yellowstone-grpc-client-simple"
version = "1.11.0+solana.1.17.4"
authors = ["Triton One"]
edition = "2021"
authors = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
keywords = { workspace = true }
publish = false

[[bin]]
Expand All @@ -21,8 +25,8 @@ hex = "0.4.3"
log = { version = "0.4.14", features = ["std"] }
maplit = "1.0.2"
serde_json = "1.0.86"
solana-sdk = "=1.17.4"
solana-transaction-status = "=1.17.4"
solana-sdk = { workspace = true }
solana-transaction-status = { workspace = true }
tokio = { version = "1.32.0", features = ["rt-multi-thread", "macros", "time"] }
yellowstone-grpc-client = { path = "../../yellowstone-grpc-client" }
yellowstone-grpc-proto = { path = "../../yellowstone-grpc-proto" }
16 changes: 10 additions & 6 deletions yellowstone-grpc-geyser/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
[package]
name = "yellowstone-grpc-geyser"
version = "1.11.0+solana.1.17.4"
authors = ["Triton One"]
edition = "2021"
authors = { workspace = true }
edition = { workspace = true }
description = "Yellowstone gRPC Geyser Plugin"
homepage = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
keywords = { workspace = true }
publish = false

[lib]
Expand All @@ -26,10 +30,10 @@ log = "0.4.17"
prometheus = "0.13.2"
serde = { version = "1.0.145", features = ["derive"] }
serde_json = "1.0.86"
solana-geyser-plugin-interface = "=1.17.4"
solana-logger = "=1.17.4"
solana-sdk = "=1.17.4"
solana-transaction-status = "=1.17.4"
solana-geyser-plugin-interface = { workspace = true }
solana-logger = { workspace = true }
solana-sdk = { workspace = true }
solana-transaction-status = { workspace = true }
spl-token-2022 = { version = "0.9.0", features = ["no-entrypoint"] }
tokio = { version = "1.32.0", features = ["rt-multi-thread", "macros", "time", "fs"] }
tokio-stream = "0.1.11"
Expand Down
18 changes: 9 additions & 9 deletions yellowstone-grpc-proto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
[package]
name = "yellowstone-grpc-proto"
version = "1.11.0+solana.1.17.4"
authors = ["Triton One"]
edition = "2021"
authors = { workspace = true }
edition = { workspace = true }
description = "Yellowstone gRPC Geyser Protobuf Definitions"
homepage = "https://triton.one"
repository = "https://github.com/rpcpool/yellowstone-grpc"
license = "Apache-2.0"
keywords = ["solana"]
homepage = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
keywords = { workspace = true }

[dependencies]
bincode = "1.3.3"
prost = "0.12.1"
solana-account-decoder = "=1.17.4"
solana-sdk = "=1.17.4"
solana-transaction-status = "=1.17.4"
solana-account-decoder = { workspace = true }
solana-sdk = { workspace = true }
solana-transaction-status = { workspace = true }
tonic = "0.10.2"

[build-dependencies]
Expand Down
8 changes: 6 additions & 2 deletions yellowstone-grpc-tools/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
[package]
name = "yellowstone-grpc-tools"
version = "1.0.0-rc.6+solana.1.17.4"
authors = ["Triton One"]
edition = "2021"
authors = { workspace = true }
edition = { workspace = true }
description = "Yellowstone gRPC Tools"
homepage = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
keywords = { workspace = true }
publish = false

[dependencies]
Expand Down

0 comments on commit 7142e82

Please sign in to comment.