From dabb052ccccbbae32f5b4209ba21451d7f885094 Mon Sep 17 00:00:00 2001 From: Louis <836250617@qq.com> Date: Wed, 5 Jun 2024 02:21:47 +0800 Subject: [PATCH] solve version --- Cargo.toml | 6 ++++++ fav/Cargo.toml | 2 +- fav_cli/Cargo.toml | 4 ++-- fav_cli/temp/.gitkeep | 1 - fav_core/Cargo.toml | 2 +- fav_derive/Cargo.toml | 2 +- fav_utils/Cargo.toml | 2 +- 7 files changed, 12 insertions(+), 7 deletions(-) delete mode 100644 fav_cli/temp/.gitkeep diff --git a/Cargo.toml b/Cargo.toml index 508f9ec..5f3ac5a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,12 @@ edition = "2021" repository = "https://github.com/kingwingfly/fav" documentation = "" +[workspace.dependencies] +fav_core = { path = "fav_core", version = "0.0.11" } +fav_derive = { path = "fav_derive", version = "0.0.1" } +fav_utils = { path = "fav_utils", version = "0.0.6" } +fav_cli = { path = "fav_cli", version = "0.2.19" } + [profile.release] lto = "fat" opt-level = 3 diff --git a/fav/Cargo.toml b/fav/Cargo.toml index ede4aaf..a3ff605 100644 --- a/fav/Cargo.toml +++ b/fav/Cargo.toml @@ -11,7 +11,7 @@ documentation.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -fav_cli = { path = "../fav_cli", version = "0.2.19" } +fav_cli = { workspace = true } # runtime tokio = { version = "1", features = ["macros", "rt-multi-thread"] } # tracing diff --git a/fav_cli/Cargo.toml b/fav_cli/Cargo.toml index 356918d..757a83f 100644 --- a/fav_cli/Cargo.toml +++ b/fav_cli/Cargo.toml @@ -15,8 +15,8 @@ rustdoc-args = ["--cfg", "docsrs"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -fav_core = { path = "../fav_core", version = "0.0.11" } -fav_utils = { path = "../fav_utils", version = "0.0.6" } +fav_core = { workspace = true } +fav_utils = { workspace = true } # CLI clap = { version = "4.5", features = ["derive"] } clap_complete = { version = "4" } diff --git a/fav_cli/temp/.gitkeep b/fav_cli/temp/.gitkeep deleted file mode 100644 index 1ab2504..0000000 --- a/fav_cli/temp/.gitkeep +++ /dev/null @@ -1 +0,0 @@ -Keep this dir for integration tests. diff --git a/fav_core/Cargo.toml b/fav_core/Cargo.toml index c7dcc67..840fd30 100644 --- a/fav_core/Cargo.toml +++ b/fav_core/Cargo.toml @@ -17,7 +17,7 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] # derive -fav_derive = { path = "../fav_derive", optional = true, version = "0.0.1" } +fav_derive = { workspace = true, optional = true } # cli tabled = { version = "0.15.0", optional = true } # net diff --git a/fav_derive/Cargo.toml b/fav_derive/Cargo.toml index 26349fb..a14cfac 100644 --- a/fav_derive/Cargo.toml +++ b/fav_derive/Cargo.toml @@ -21,5 +21,5 @@ syn = { version = "2.0", features = ["full"] } quote = "1.0" [dev-dependencies] -fav_core = { path = "../fav_core", version = "0.0.11" } +fav_core = { workspace = true } reqwest = { version = "0.12" } diff --git a/fav_utils/Cargo.toml b/fav_utils/Cargo.toml index 3977f03..206be5a 100644 --- a/fav_utils/Cargo.toml +++ b/fav_utils/Cargo.toml @@ -16,7 +16,7 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] # core -fav_core = { path = "../fav_core", version = "0.0.11" } +fav_core = { workspace = true } # CLI indicatif = { version = "0.17", features = ["tokio"] } # serde