创建了 Rust 版本的 CubeLib 库

This commit is contained in:
zqm
2026-04-07 13:55:40 +08:00
parent 66e6ef2e8c
commit 5915c42f9f
11 changed files with 2618 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
[package]
name = "cube_lib"
version = "0.1.0"
edition = "2021"
description = "CubeLib - Rust library for WebSocket communication and utilities"
authors = ["JoyD Team"]
[dependencies]
# WebSocket
tokio-tungstenite = { version = "0.21", features = ["tokio-native-tls"] }
futures-util = { version = "0.3", default-features = false, features = ["sink", "std", "async-await"] }
tokio = { version = "1", features = ["full"] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Async runtime
async-trait = "0.1"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# HTTP headers
http = "1.0"
# URL parsing
url = "2.4"
[dev-dependencies]
tokio-test = "0.4"