Skip to content

Commit

Permalink
Drop the use of async-trait
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Apr 30, 2024
1 parent 5ede533 commit c54dafb
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ sea-orm = { version = "1.0.0-rc", default-features = false, features = ["seaogra
itertools = { version = "0.12.0" }
heck = { version = "0.4.1" }
thiserror = { version = "1.0.44" }
async-trait = { version = "0.1" }
fnv = { version = "1.0.7" }

[features]
Expand Down
1 change: 0 additions & 1 deletion examples/mysql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ version = "1.0.0-rc.3"
poem = { version = "1.3.56" }
async-graphql-poem = { version = "6.0.7" }
async-graphql = { version = "7.0.3", features = ["decimal", "chrono", "dataloader", "dynamic-schema"] }
async-trait = { version = "0.1.72" }
dotenv = "0.15.0"
sea-orm = { version = "1.0.0-rc", features = ["sqlx-mysql", "runtime-async-std-native-tls", "seaography"] }
tokio = { version = "1.29.1", features = ["macros", "rt-multi-thread"] }
Expand Down
1 change: 0 additions & 1 deletion examples/postgres/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ version = "1.0.0-rc.3"
poem = { version = "1.3.56" }
async-graphql-poem = { version = "6.0.7" }
async-graphql = { version = "7.0.3", features = ["decimal", "chrono", "dataloader", "dynamic-schema"] }
async-trait = { version = "0.1.72" }
dotenv = "0.15.0"
sea-orm = { version = "1.0.0-rc", features = ["sqlx-postgres", "runtime-async-std-native-tls", "seaography"] }
tokio = { version = "1.29.1", features = ["macros", "rt-multi-thread"] }
Expand Down
1 change: 0 additions & 1 deletion examples/sqlite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ version = "1.0.0-rc.3"
poem = { version = "1.3.56" }
async-graphql-poem = { version = "6.0.7" }
async-graphql = { version = "7.0.3", features = ["decimal", "chrono", "dataloader", "dynamic-schema"] }
async-trait = { version = "0.1.72" }
dotenv = "0.15.0"
sea-orm = { version = "1.0.0-rc", features = ["sqlx-sqlite", "runtime-async-std-native-tls", "seaography"] }
tokio = { version = "1.29.1", features = ["macros", "rt-multi-thread"] }
Expand Down
1 change: 0 additions & 1 deletion generator/src/templates/actix_cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ version = "0.3.0"
actix-web = { version = "4.3.1", default-features = false, features = ["macros"] }
async-graphql-actix-web = { version = "6.0.7" }
async-graphql = { version = "7.0.3", features = ["decimal", "chrono", "dataloader", "dynamic-schema"] }
async-trait = { version = "0.1.72" }
dotenv = "0.15.0"
sea-orm = { version = "1.0.0-rc", features = ["<seaography-sql-library>", "runtime-async-std-native-tls", "seaography"] }
tokio = { version = "1.29.1", features = ["macros", "rt-multi-thread"] }
Expand Down
1 change: 0 additions & 1 deletion generator/src/templates/poem_cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ version = "0.3.0"
poem = { version = "1.3.56" }
async-graphql-poem = { version = "6.0.7" }
async-graphql = { version = "7.0.3", features = ["decimal", "chrono", "dataloader", "dynamic-schema"] }
async-trait = { version = "0.1.72" }
dotenv = "0.15.0"
sea-orm = { version = "1.0.0-rc", features = ["<seaography-sql-library>", "runtime-async-std-native-tls", "seaography"] }
tokio = { version = "1.29.1", features = ["macros", "rt-multi-thread"] }
Expand Down
2 changes: 0 additions & 2 deletions src/query/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ where
}
}

#[async_trait::async_trait]
impl<T> async_graphql::dataloader::Loader<KeyComplex<T>> for OneToManyLoader<T>
where
T: sea_orm::EntityTrait,
Expand Down Expand Up @@ -303,7 +302,6 @@ where
}
}

#[async_trait::async_trait]
impl<T> async_graphql::dataloader::Loader<KeyComplex<T>> for OneToOneLoader<T>
where
T: sea_orm::EntityTrait,
Expand Down

0 comments on commit c54dafb

Please sign in to comment.