Skip to content

Commit

Permalink
prepare new "util" crate (#333)
Browse files Browse the repository at this point in the history
 prepare new "util" crate
  • Loading branch information
grooviegermanikus authored Feb 22, 2024
1 parent 7bba02f commit 855c019
Show file tree
Hide file tree
Showing 12 changed files with 83 additions and 1 deletion.
37 changes: 37 additions & 0 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ resolver = "2"

members = [
"core",
"util",
"services",
"lite-rpc",
"quic-forward-proxy",
Expand Down Expand Up @@ -71,6 +72,7 @@ rustls = { version = "0.21.7", default-features = false, features = ["quic"] }

solana-lite-rpc-services = {path = "services", version="0.2.4"}
solana-lite-rpc-core = {path = "core", version="0.2.4"}
solana-lite-rpc-util = {path = "util", version="0.2.4"}
solana-lite-rpc-cluster-endpoints = {path = "cluster-endpoints", version="0.2.4"}
solana-lite-rpc-blockstore = {path = "blockstore", version="0.2.4"}
solana-lite-rpc-stakevote = {path = "stake_vote", version="0.2.4"}
Expand Down
1 change: 1 addition & 0 deletions accounts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ prometheus = { workspace = true }
lazy_static = { workspace = true }

solana-lite-rpc-core = { workspace = true }
solana-lite-rpc-util = { workspace = true }

[dev-dependencies]
rand = "0.8.5"
Expand Down
3 changes: 2 additions & 1 deletion address_lookup_tables/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ itertools = { workspace = true }
prometheus = { workspace = true }
lazy_static = { workspace = true }

solana-lite-rpc-core = { workspace = true }
solana-lite-rpc-core = { workspace = true }
solana-lite-rpc-util = { workspace = true }
1 change: 1 addition & 0 deletions cluster-endpoints/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ async-trait = { workspace = true }
derive_more = "0.99.17"
async-channel = { workspace = true }
solana-lite-rpc-core = { workspace = true }
solana-lite-rpc-util = { workspace = true }
yellowstone-grpc-client = { workspace = true }
yellowstone-grpc-proto = { workspace = true }
itertools = {workspace = true}
Expand Down
1 change: 1 addition & 0 deletions lite-rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ hyper = { version = "0.14", features = ["server", "http1", "http2"] }
tower-http = { version = "0.4.0", features = ["full"] }

solana-lite-rpc-core = { workspace = true }
solana-lite-rpc-util = { workspace = true }
solana-lite-rpc-services = { workspace = true }
solana-lite-rpc-cluster-endpoints = { workspace = true }
solana-lite-rpc-blockstore = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions quic-forward-proxy-integration-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ publish = false

[dependencies]
solana-lite-rpc-core = { workspace = true }
solana-lite-rpc-util = { workspace = true }
solana-lite-rpc-services = { workspace = true }
solana-lite-rpc-quic-forward-proxy = { path = "../quic-forward-proxy" }
solana-sdk = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions quic-forward-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ publish = false

[dependencies]
solana-lite-rpc-core = { workspace = true }
solana-lite-rpc-util = { workspace = true }
solana-sdk = { workspace = true }
solana-streamer = { workspace = true }
solana-transaction-status = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions services/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ quinn = { workspace = true }
chrono = { workspace = true }
rustls = { workspace = true }
solana-lite-rpc-core = { workspace = true }
solana-lite-rpc-util = { workspace = true }

[dev-dependencies]
tracing = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions stake_vote/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ solana-account-decoder = { workspace = true }
solana-program = { workspace = true }

solana-lite-rpc-core = { workspace = true }
solana-lite-rpc-util = { workspace = true }

futures = { version = "0.3.28", default-features = false }
tokio = { version = "1.28.2", features = ["full"]}
Expand Down
34 changes: 34 additions & 0 deletions util/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[package]
name = "solana-lite-rpc-util"
version = "0.2.4"
edition = "2021"
description = "Utility for non-domain functions"
rust-version = "1.73.0"
repository = "https://github.com/blockworks-foundation/lite-rpc"
license = "AGPL"

[dependencies]
serde = { workspace = true }
serde_json = { workspace = true }
tokio = "1.*"
tokio-stream = { version = "0.1.14" , features = ["sync"]}
bincode = { workspace = true }
bs58 = { workspace = true }
base64 = { workspace = true }
thiserror = { workspace = true }
futures = { workspace = true }
merge-streams = "0.1.2"
bytes = { workspace = true }
anyhow = { workspace = true }
log = { workspace = true }
tracing = { workspace = true }
dashmap = { workspace = true }
quinn = { workspace = true }
chrono = { workspace = true }
rustls = { workspace = true }
async-trait = { workspace = true }
derive_more = "0.99.17"
async-channel = { workspace = true }
itertools = {workspace = true}
prometheus = { workspace = true }
lazy_static = { workspace = true }
1 change: 1 addition & 0 deletions util/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit 855c019

Please sign in to comment.