Skip to content

Commit

Permalink
Use a single loco-rs dep for a whole project (#927)
Browse files Browse the repository at this point in the history
* feat: use a single loco-rs dep for a whole project

* fix: turn off default-features at main loco-rs dep definition
  • Loading branch information
darricheng authored Oct 29, 2024
1 parent e391a78 commit e050140
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 11 deletions.
4 changes: 4 additions & 0 deletions starters/lightweight-service/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions starters/lightweight-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ default-run = "loco_starter_template-cli"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[workspace.dependencies]
loco-rs = { version = "0.12.0", default-features = false }

[dependencies]

loco-rs = { version = "0.12.0", default-features = false, features = ["cli"] }
loco-rs = { workspace = true, features = ["cli"] }
serde = "1"
serde_json = "1"
tokio = { version = "1.33.0", default-features = false, features = [
Expand All @@ -35,8 +38,5 @@ required-features = []
[dev-dependencies]
serial_test = "3.1.1"
rstest = "0.21.0"
loco-rs = { version = "0.12.0", default-features = false, features = [
"testing",
"cli",
] }
loco-rs = { workspace = true, features = ["testing", "cli"] }
insta = { version = "*", features = ["redactions", "yaml", "filters"] }
7 changes: 5 additions & 2 deletions starters/rest-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ default-run = "loco_starter_template-cli"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[workspace.dependencies]
loco-rs = { version = "0.12.0" }

[dependencies]

loco-rs = { version = "0.12.0" }
loco-rs = { workspace = true }
migration = { path = "migration" }

serde = { version = "1", features = ["derive"] }
Expand Down Expand Up @@ -46,5 +49,5 @@ required-features = []
[dev-dependencies]
serial_test = "3.1.1"
rstest = "0.21.0"
loco-rs = { version = "0.12.0", features = ["testing"] }
loco-rs = { workspace = true, features = ["testing"] }
insta = { version = "1.34.0", features = ["redactions", "yaml", "filters"] }
2 changes: 1 addition & 1 deletion starters/rest-api/migration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ path = "src/lib.rs"

[dependencies]
async-std = { version = "1", features = ["attributes", "tokio1"] }
loco-rs = { version = "0.12.0" }
loco-rs = { workspace = true }

[dependencies.sea-orm-migration]
version = "1.1.0"
Expand Down
7 changes: 5 additions & 2 deletions starters/saas/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ default-run = "loco_starter_template-cli"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[workspace.dependencies]
loco-rs = { version = "0.12.0" }

[dependencies]

loco-rs = { version = "0.12.0" }
loco-rs = { workspace = true }
migration = { path = "migration" }

serde = { version = "1", features = ["derive"] }
Expand Down Expand Up @@ -51,5 +54,5 @@ required-features = []
[dev-dependencies]
serial_test = "3.1.1"
rstest = "0.21.0"
loco-rs = { version = "0.12.0", features = ["testing"] }
loco-rs = { workspace = true, features = ["testing"] }
insta = { version = "1.34.0", features = ["redactions", "yaml", "filters"] }
2 changes: 1 addition & 1 deletion starters/saas/migration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ path = "src/lib.rs"

[dependencies]
async-std = { version = "1", features = ["attributes", "tokio1"] }
loco-rs = { version = "0.12.0" }
loco-rs = { workspace = true }

[dependencies.sea-orm-migration]
version = "1.1.0"
Expand Down

0 comments on commit e050140

Please sign in to comment.