build(workspace): add dual-app workspace manifests

This commit is contained in:
caoqianming 2026-04-14 16:29:52 +08:00
parent fb6a34a2d9
commit 1fdfc4e5fc
4 changed files with 72 additions and 51 deletions

View File

@ -1,51 +1,7 @@
[package]
name = "gateway_rs"
version = "0.1.0"
edition = "2021"
[dependencies]
# Async runtime
tokio = { version = "1.49", features = ["full"] }
# Web framework
axum = { version = "0.8", features = ["ws"] }
tower-http = { version = "0.6", features = ["cors", "fs"] }
# Database
sqlx = { version = "0.8", features = ["runtime-tokio", "postgres", "chrono", "uuid", "json"] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_with = "3.0"
async-stream = "0.3"
# Time handling
chrono = "0.4"
time = "0.3"
# UUID
uuid = { version = "1.21", features = ["serde", "v4"] }
# OPC UA
async-opcua = { version = "0.18", features = ["client"] }
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "time", "json"] }
tracing-appender = "0.2"
# Environment variables
dotenv = "0.15"
# Validation
validator = { version = "0.20", features = ["derive"] }
# Error handling
anyhow = "1.0"
fs2 = "0.4"
[target.'cfg(windows)'.dependencies]
tray-icon = "0.15"
winit = "0.30"
webbrowser = "0.8"
[workspace]
members = [
"crates/plc_platform_core",
"crates/app_feeder_distributor",
"crates/app_operation_system",
]
resolver = "2"

View File

@ -0,0 +1,21 @@
[package]
name = "app_feeder_distributor"
version = "0.1.0"
edition = "2021"
[dependencies]
plc_platform_core = { path = "../plc_platform_core" }
tokio = { version = "1.49", features = ["full"] }
axum = { version = "0.8", features = ["ws"] }
tower-http = { version = "0.6", features = ["cors", "fs"] }
tracing = "0.1"
dotenv = "0.15"
[target.'cfg(windows)'.dependencies]
tray-icon = "0.15"
winit = "0.30"
webbrowser = "0.8"
[[bin]]
name = "app_feeder_distributor"
path = "src/main.rs"

View File

@ -0,0 +1,16 @@
[package]
name = "app_operation_system"
version = "0.1.0"
edition = "2021"
[dependencies]
plc_platform_core = { path = "../plc_platform_core" }
tokio = { version = "1.49", features = ["full"] }
axum = { version = "0.8", features = ["ws"] }
tower-http = { version = "0.6", features = ["cors", "fs"] }
tracing = "0.1"
dotenv = "0.15"
[[bin]]
name = "app_operation_system"
path = "src/main.rs"

View File

@ -0,0 +1,28 @@
[package]
name = "plc_platform_core"
version = "0.1.0"
edition = "2021"
[dependencies]
tokio = { version = "1.49", features = ["full"] }
axum = { version = "0.8", features = ["ws"] }
tower-http = { version = "0.6", features = ["cors", "fs"] }
sqlx = { version = "0.8", features = ["runtime-tokio", "postgres", "chrono", "uuid", "json"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_with = "3.0"
async-stream = "0.3"
chrono = "0.4"
time = "0.3"
uuid = { version = "1.21", features = ["serde", "v4"] }
async-opcua = { version = "0.18", features = ["client"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "time", "json"] }
tracing-appender = "0.2"
dotenv = "0.15"
validator = { version = "0.20", features = ["derive"] }
anyhow = "1.0"
fs2 = "0.4"
[lib]
path = "src/lib.rs"