diff --git a/Cargo.toml b/Cargo.toml index 14e5961..7b04509 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/crates/app_feeder_distributor/Cargo.toml b/crates/app_feeder_distributor/Cargo.toml new file mode 100644 index 0000000..9694adf --- /dev/null +++ b/crates/app_feeder_distributor/Cargo.toml @@ -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" diff --git a/crates/app_operation_system/Cargo.toml b/crates/app_operation_system/Cargo.toml new file mode 100644 index 0000000..85d661f --- /dev/null +++ b/crates/app_operation_system/Cargo.toml @@ -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" diff --git a/crates/plc_platform_core/Cargo.toml b/crates/plc_platform_core/Cargo.toml new file mode 100644 index 0000000..f95cec4 --- /dev/null +++ b/crates/plc_platform_core/Cargo.toml @@ -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"