Skip to content

Commit

Permalink
Inherit workspace dependencies (#95)
Browse files Browse the repository at this point in the history
Uses autoinherit to automatically DRY up the dependencies.

Signed-off-by: Rémy Greinhofer <[email protected]>
  • Loading branch information
rgreinho authored Mar 28, 2024
1 parent 8467e13 commit 3d5ace7
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 29 deletions.
31 changes: 21 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,30 @@ dotenv = "0.15.0"
entity = { path = "entity" }
futures = "0.3.21"
http-serde = "2.0.0"
lambda_http = "0.10.0"
lambda_http = "0.11.0"
migration = { path = "migration" }
once_cell = "1.17.1"
sea-orm = { version = "0.12.1", features = [
"sqlx-postgres",
"runtime-tokio-rustls",
"macros",
] }
serde = { version = "1.0.159", features = ["derive"] }
sea-orm = "0.12.1"
serde = "1.0.159"
serde_json = "1.0.95"
serde_plain = "1.0.2"
serde_with = "3.4.0"
tokio = { version = "1", features = ["full"] }
tokio = "1"
async-std = "1"
aws-config = "1.0.0"
aws-sdk-s3 = "1.5.0"
aws-sdk-sqs = "1.3.0"
aws_lambda_events = "0.15.0"
csv = "1.3.0"
itertools = "0.12.1"
lambda_runtime = "0.11.0"
nom = "7.1.3"
reqwest = "0.12.1"
rstest = "0.18.1"
sea-orm-migration = "0.12.1"
tracing = "0.1"
tracing-subscriber = { version = "0.3", default-features = false }
url = "2.3.1"

[dependencies]
color-eyre = { workspace = true }
Expand All @@ -47,5 +58,5 @@ tokio = { workspace = true }
[dev-dependencies]
bnacore = { git = "https://github.com/PeopleForBikes/brokenspoke", rev = "b1f76eb" }
# bnacore = { path = "../brokenspoke/bnacore" }
csv = "1.3.0"
itertools = "0.12.1"
csv = { workspace = true }
itertools = { workspace = true }
26 changes: 12 additions & 14 deletions lambdas/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,28 @@ version = "0.1.0"
edition = "2021"

[dependencies]
aws-config = "1.0.0"
aws-sdk-s3 = "1.5.0"
aws-sdk-sqs = "1.3.0"
aws_lambda_events = "0.15.0"
aws-config = { workspace = true }
aws-sdk-s3 = { workspace = true }
aws-sdk-sqs = { workspace = true }
aws_lambda_events = { workspace = true }
bnacore = { git = "https://github.com/PeopleForBikes/brokenspoke.git", rev = "f1d9115" }
dotenv = { workspace = true }
effortless = { path = "../effortless" }
entity = { path = "../entity" }
http-serde = { workspace = true }
lambda_http = { workspace = true }
lambda_runtime = "0.11.0"
nom = "7.1.3"
lambda_runtime = { workspace = true }
nom = { workspace = true }
once_cell = { workspace = true }
reqwest = { version = "0.12.1", features = ["json", "native-tls-vendored"] }
reqwest = { workspace = true, features = ["json", "native-tls-vendored"] }
sea-orm = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
serde_plain = { workspace = true }
tokio = { workspace = true }
tracing = { version = "0.1", features = ["log"] }
tracing-subscriber = { version = "0.3", default-features = false, features = [
"fmt",
] }
url = "2.3.1"
tracing = { workspace = true, features = ["log"] }
tracing-subscriber = { workspace = true, features = ["fmt"] }
url = { workspace = true }

[[bin]]
name = "get-bnas"
Expand Down Expand Up @@ -90,8 +88,8 @@ name = "get-bnas-results"
path = "src/bnas-results/get-bnas-results.rs"

[dev-dependencies]
color-eyre = "0.6.2"
rstest = "0.18.1"
color-eyre = { workspace = true }
rstest = { workspace = true }

[package.metadata.lambda.deploy]
memory = 128
Expand Down
10 changes: 5 additions & 5 deletions migration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ name = "migration"
path = "src/lib.rs"

[dependencies]
async-std = { version = "1", features = ["attributes", "tokio1"] }

[dependencies.sea-orm-migration]
version = "0.12.1"
features = ["sqlx-postgres", "runtime-tokio-rustls"]
async-std = { workspace = true, features = ["attributes", "tokio1"] }
sea-orm-migration = { workspace = true, features = [
"sqlx-postgres",
"runtime-tokio-rustls",
] }

0 comments on commit 3d5ace7

Please sign in to comment.