Skip to content

Commit

Permalink
remove async-trait crate
Browse files Browse the repository at this point in the history
  • Loading branch information
robatipoor committed Feb 29, 2024
1 parent 5641484 commit b444c9b
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ anyhow = "1.0.80"
argon2 = "0.5.3"
assert_cmd = "2.0.14"
async-stream = "0.3.5"
async-trait = "0.1.77"
# async-trait = "0.1.77"
axum = { version = "0.7.4", features = ["multipart"] }
axum-extra = { version = "0.9.2", features = ["async-read-body"] }
hyper = { version = "1.2.0", features = ["full"] }
Expand Down Expand Up @@ -72,7 +72,7 @@ serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.114"
sled = "0.34.7"
strum = { version = "0.26.1", features = ["derive"] }
test-context = "0.1.4"
test-context = "0.3.0"
thiserror = "1.0.57"
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
Expand Down
1 change: 0 additions & 1 deletion api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ path = "src/bin/main.rs"
sdk = { path = "../sdk" }
anyhow = { workspace = true }
argon2 = { workspace = true }
async-trait = { workspace = true }
clap = { workspace = true }
axum = { workspace = true }
bincode = { workspace = true }
Expand Down
1 change: 0 additions & 1 deletion api/src/util/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ pub struct StateTestContext {
gc_task: tokio::task::JoinHandle<ApiResult>,
}

#[async_trait::async_trait]
impl AsyncTestContext for StateTestContext {
async fn setup() -> Self {
Lazy::force(&INIT_SUBSCRIBER);
Expand Down
1 change: 0 additions & 1 deletion api/tests/api/helper/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ pub struct ApiTestContext {
gc_task: tokio::task::JoinHandle<ApiResult>,
}

#[async_trait::async_trait]
impl AsyncTestContext for ApiTestContext {
async fn setup() -> Self {
Lazy::force(&INIT_SUBSCRIBER);
Expand Down
1 change: 0 additions & 1 deletion app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ yew-hooks = { workspace = true }
wasm-bindgen = { workspace = true }
wasm-logger = { workspace = true }
anyhow = { workspace = true }
async-trait = { workspace = true }
chrono = { workspace = true }
fake = { workspace = true }
futures-util = { workspace = true }
Expand Down
1 change: 0 additions & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ reqwest = { workspace = true }
futures-util = { workspace = true }
anyhow = { workspace = true }
assert_cmd = { workspace = true }
async-trait = { workspace = true }
async-stream = { workspace = true }
clap = { workspace = true }
fake = { workspace = true }
Expand Down
1 change: 0 additions & 1 deletion cli/src/util/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ pub struct FileTestContext {
pub temp_path: std::path::PathBuf,
}

#[async_trait::async_trait]
impl AsyncTestContext for FileTestContext {
async fn setup() -> Self {
let temp_path = std::path::PathBuf::from(&format!("test_dir_{}", Faker.fake::<String>()));
Expand Down
1 change: 0 additions & 1 deletion cli/tests/cli/helper/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ impl CliTestContext {
}
}

#[async_trait::async_trait]
impl AsyncTestContext for CliTestContext {
async fn setup() -> Self {
CliTestContext::new().await
Expand Down

0 comments on commit b444c9b

Please sign in to comment.