Cargo, moving async-trait and tokio (DB, Ingestor)

Move async-trait from ingestor to workspace so DB can share.

Update the reference to tokio in DB from version to workspace
This commit is contained in:
Julia Lange 2025-06-11 14:09:02 -07:00
parent eb28549a0f
commit 3eb6aab10f
Signed by: Julia
SSH key fingerprint: SHA256:5DJcfxa5/fKCYn57dcabJa2vN2e6eT0pBerYi5SUbto
4 changed files with 5 additions and 2 deletions

1
Cargo.lock generated
View file

@ -563,6 +563,7 @@ dependencies = [
name = "db" name = "db"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"async-trait",
"sqlx", "sqlx",
"tokio", "tokio",
] ]

View file

@ -3,6 +3,7 @@ resolver = "3"
members = [ "api", "atproto","db", "ingestor"] members = [ "api", "atproto","db", "ingestor"]
[workspace.dependencies] [workspace.dependencies]
async-trait = "0.1.88"
atproto = { path = "./atproto" } atproto = { path = "./atproto" }
serde = "1.0.219" serde = "1.0.219"
serde_json = "1.0.140" serde_json = "1.0.140"

View file

@ -4,5 +4,6 @@ version = "0.1.0"
edition = "2024" edition = "2024"
[dependencies] [dependencies]
async-trait.workspace = true
sqlx = { version = "0.8.6", features = ["postgres", "runtime-tokio"] } sqlx = { version = "0.8.6", features = ["postgres", "runtime-tokio"] }
tokio = "1.45.0" tokio.workspace = true

View file

@ -5,7 +5,7 @@ edition = "2024"
[dependencies] [dependencies]
anyhow = "1.0.98" anyhow = "1.0.98"
async-trait = "0.1.88" async-trait.workspace = true
atproto.workspace = true atproto.workspace = true
rocketman = "0.2.0" rocketman = "0.2.0"
serde.workspace = true serde.workspace = true