From e12f167de8e16baa78c86b09eab75201281d3f95 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 6 Oct 2025 17:20:40 +0800 Subject: chore: update workspace configuration and dependencies - Add examples to workspace members - Update vcs_data dependencies structure - Fix library re-export paths in main lib.rs --- Cargo.lock | 11 +++++++++++ Cargo.toml | 2 ++ crates/vcs_data/Cargo.toml | 4 ++++ src/lib.rs | 4 ++-- 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7ed2554..bad00f8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -412,6 +412,17 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" +[[package]] +name = "examples" +version = "0.1.0" +dependencies = [ + "action_system", + "cfg_file", + "string_proc", + "tcp_connection", + "tokio", +] + [[package]] name = "fiat-crypto" version = "0.3.0" diff --git a/Cargo.toml b/Cargo.toml index 72f3270..881fbbe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,8 @@ vcs = [] [workspace] members = [ + "examples", + "crates/utils/cfg_file", "crates/utils/cfg_file/cfg_file_derive", "crates/utils/cfg_file/cfg_file_test", diff --git a/crates/vcs_data/Cargo.toml b/crates/vcs_data/Cargo.toml index 07f1a6a..b3bc4a2 100644 --- a/crates/vcs_data/Cargo.toml +++ b/crates/vcs_data/Cargo.toml @@ -4,9 +4,13 @@ edition = "2024" version.workspace = true [dependencies] + +# Utils tcp_connection = { path = "../utils/tcp_connection" } cfg_file = { path = "../utils/cfg_file", features = ["default"] } string_proc = { path = "../utils/string_proc" } + +# Core action_system = { path = "../system_action" } # Identity diff --git a/src/lib.rs b/src/lib.rs index 746f66f..29855e3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,8 +1,8 @@ // Feature `vcs` #[cfg(feature = "vcs")] pub mod vcs { - extern crate vcs; - pub use vcs::*; + extern crate vcs_data; + pub use vcs_data::*; extern crate vcs_actions; pub use vcs_actions::*; -- cgit