Skip to content

Commit 155cd8f

Browse files
Merge pull request #118 from catalyst-network/core-functionality
Added initial service bus crate
2 parents 0b60ac7 + dc753c4 commit 155cd8f

File tree

14 files changed

+6001
-385
lines changed

14 files changed

+6001
-385
lines changed

crates/catalyst-service-bus/Cargo.toml

Lines changed: 42 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,64 @@
22
name = "catalyst-service-bus"
33
version = "0.1.0"
44
edition = "2021"
5-
description = "Web2 integration service bus for Catalyst Network"
5+
authors = ["Catalyst Network Team"]
6+
description = "Web2 integration layer for Catalyst Network - WebSocket event streaming and REST APIs"
67
license = "MIT OR Apache-2.0"
8+
repository = "https://github.com/catalyst-network/catalyst-node-rust"
79

810
[dependencies]
9-
catalyst-core = { path = "../catalyst-core" }
11+
# Core Catalyst dependencies
12+
catalyst-utils = { path = "../catalyst-utils" }
13+
catalyst-config = { path = "../catalyst-config" }
14+
catalyst-network = { path = "../catalyst-network" }
1015
catalyst-storage = { path = "../catalyst-storage" }
1116

12-
# Web server and WebSocket support
13-
axum = { version = "0.7", features = ["ws", "macros"] }
14-
tower = "0.4"
15-
tower-http = { version = "0.5", features = ["cors", "trace"] }
16-
hyper = "1.0"
17-
18-
# WebSocket handling
17+
# Async runtime
18+
tokio = { version = "1.35", features = ["full"] }
1919
tokio-tungstenite = "0.21"
20-
futures-util = "0.3"
20+
futures = "0.3"
2121

22-
# Async runtime
23-
tokio = { version = "1.0", features = ["full"] }
24-
async-trait = "0.1"
22+
# Web framework
23+
axum = { version = "0.7", features = ["ws", "json", "query"] }
24+
tower = "0.4"
25+
tower-http = { version = "0.5", features = ["cors", "trace"] }
2526

2627
# Serialization
2728
serde = { version = "1.0", features = ["derive"] }
2829
serde_json = "1.0"
30+
toml = "0.8"
31+
32+
# HTTP client
33+
reqwest = { version = "0.11", features = ["json"] }
2934

30-
# Error handling
35+
# Utilities
36+
uuid = { version = "1.6", features = ["v4"] }
37+
dashmap = "5.5"
3138
thiserror = "1.0"
39+
tracing = "0.1"
3240
anyhow = "1.0"
3341

34-
# Utilities
35-
log = "0.4"
36-
uuid = { version = "1.0", features = ["v4"] }
37-
dashmap = "5.0"
42+
# Rate limiting
43+
governor = "0.6"
3844

39-
# Metrics and observability
40-
metrics = "0.21"
41-
tracing = "0.1"
42-
tracing-subscriber = "0.3"
45+
# Authentication
46+
jsonwebtoken = "9.2"
4347

4448
[dev-dependencies]
4549
tokio-test = "0.4"
46-
tempfile = "3.0"
50+
wiremock = "0.5"
51+
env_logger = "0.10"
52+
53+
[features]
54+
default = ["rest-api", "websocket"]
55+
rest-api = []
56+
websocket = []
57+
metrics = ["catalyst-utils/metrics"]
58+
59+
[[example]]
60+
name = "basic_client"
61+
path = "examples/basic_client.rs"
62+
63+
[[example]]
64+
name = "server"
65+
path = "examples/server.rs"

0 commit comments

Comments
 (0)