From ef29cf6389fedfea9a658935b8ad88375732a36b Mon Sep 17 00:00:00 2001 From: Louis <836250617@qq.com> Date: Wed, 5 Jun 2024 02:14:44 +0800 Subject: [PATCH] solve dep --- Cargo.toml | 6 ------ fav/Cargo.toml | 2 +- fav_cli/Cargo.toml | 4 ++-- fav_core/Cargo.toml | 4 ++-- fav_derive/Cargo.toml | 2 +- fav_utils/Cargo.toml | 2 +- 6 files changed, 7 insertions(+), 13 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2f76e83..508f9ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,12 +13,6 @@ edition = "2021" repository = "https://github.com/kingwingfly/fav" documentation = "" -[workspace.dependencies] -fav_core = { path = "fav_core" } -fav_derive = { path = "fav_derive" } -fav_utils = { path = "fav_utils" } -fav_cli = { path = "fav_cli" } - [profile.release] lto = "fat" opt-level = 3 diff --git a/fav/Cargo.toml b/fav/Cargo.toml index d56800f..ede4aaf 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.workspace = true +fav_cli = { path = "../fav_cli", version = "0.2.19" } # runtime tokio = { version = "1", features = ["macros", "rt-multi-thread"] } # tracing diff --git a/fav_cli/Cargo.toml b/fav_cli/Cargo.toml index f1c69b8..356918d 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_utils = { workspace = true, version = "0.0.6" } -fav_core = { workspace = true, version = "0.0.11" } +fav_core = { path = "../fav_core", version = "0.0.11" } +fav_utils = { path = "../fav_utils", version = "0.0.6" } # CLI clap = { version = "4.5", features = ["derive"] } clap_complete = { version = "4" } diff --git a/fav_core/Cargo.toml b/fav_core/Cargo.toml index 2016932..c7dcc67 100644 --- a/fav_core/Cargo.toml +++ b/fav_core/Cargo.toml @@ -16,6 +16,8 @@ rustdoc-args = ["--cfg", "docsrs"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +# derive +fav_derive = { path = "../fav_derive", optional = true, version = "0.0.1" } # cli tabled = { version = "0.15.0", optional = true } # net @@ -35,8 +37,6 @@ tokio-stream = { version = "0.1" } futures = "0.3" # utils bitflags = "2.5" -# derive -fav_derive = { workspace = true, optional = true, version = "0.0.1" } # tracing tracing = { version = "0.1" } diff --git a/fav_derive/Cargo.toml b/fav_derive/Cargo.toml index 764efc7..26349fb 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.workspace = true +fav_core = { path = "../fav_core", version = "0.0.11" } reqwest = { version = "0.12" } diff --git a/fav_utils/Cargo.toml b/fav_utils/Cargo.toml index 20563b9..3977f03 100644 --- a/fav_utils/Cargo.toml +++ b/fav_utils/Cargo.toml @@ -16,7 +16,7 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] # core -fav_core = { workspace = true, version = "0.0.11" } +fav_core = { path = "../fav_core", version = "0.0.11" } # CLI indicatif = { version = "0.17", features = ["tokio"] } # serde