22name = " catalyst-service-bus"
33version = " 0.1.0"
44edition = " 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"
67license = " 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" }
1015catalyst-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" ] }
1919tokio-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
2728serde = { version = " 1.0" , features = [" derive" ] }
2829serde_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"
3138thiserror = " 1.0"
39+ tracing = " 0.1"
3240anyhow = " 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 ]
4549tokio-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