From f10ab8bf741e52799b0ad291b901fcc0ceaab3ef Mon Sep 17 00:00:00 2001 From: mokurin000 <1348292515a@gmail.com> Date: Tue, 29 Jul 2025 17:47:12 +0800 Subject: [PATCH] fix: snafu crate --- Cargo.lock | 1 + Cargo.toml | 4 ++++ sdgb-api/Cargo.toml | 4 ++-- sdgb-cli/Cargo.toml | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1c76919..0dbd647 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -905,6 +905,7 @@ version = "0.1.0" dependencies = [ "compio", "nyquest-preset", + "snafu", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 5083702..ce2a847 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,10 @@ [workspace] members = ["sdgb-api", "sdgb-cli"] +[workspace.dependencies] + +snafu = { version = "0.8.6", features = ["backtrace", "rust_1_81"] } + [profile.release] lto = true strip = true diff --git a/sdgb-api/Cargo.toml b/sdgb-api/Cargo.toml index b9fa3fb..b198d85 100644 --- a/sdgb-api/Cargo.toml +++ b/sdgb-api/Cargo.toml @@ -6,6 +6,8 @@ edition = "2024" license = "GPL-3.0" [dependencies] +snafu = { workspace = true } + digest = "0.10.7" hmac-sha256 = { version = "1.1.12", features = ["digest010", "traits010"] } @@ -15,5 +17,3 @@ nyquest = { version = "0.2.0", features = ["async", "json"] } serde = { version = "1.0.219", features = ["derive"] } serde_json = "1.0.141" - -snafu = { version = "0.8.6", features = ["backtrace", "rust_1_81"] } diff --git a/sdgb-cli/Cargo.toml b/sdgb-cli/Cargo.toml index cad4db9..e74d6dc 100644 --- a/sdgb-cli/Cargo.toml +++ b/sdgb-cli/Cargo.toml @@ -4,6 +4,8 @@ version = "0.1.0" edition = "2024" [dependencies] +snafu = { workspace = true } + nyquest-preset = { version = "0.2.0", features = ["async"] } compio = { version = "0.15.0", default-features = false, features = [ "runtime",