mirror of
https://github.com/joaoviictorti/shadow-rs.git
synced 2026-01-08 10:04:22 +01:00
36 lines
1.1 KiB
TOML
36 lines
1.1 KiB
TOML
[tasks.build-client]
|
|
description = "Build the project inside the client directory"
|
|
command = "cargo"
|
|
args = ["build", "--release", "--manifest-path", "client/Cargo.toml"]
|
|
|
|
[tasks.update-client]
|
|
description = "Update dependencies in the client directory"
|
|
command = "cargo"
|
|
args = ["update", "--manifest-path", "client/Cargo.toml"]
|
|
|
|
[tasks.update-shared]
|
|
description = "Update dependencies in the shared directory"
|
|
command = "cargo"
|
|
args = ["update", "--manifest-path", "shared/Cargo.toml"]
|
|
|
|
[tasks.clean-client]
|
|
description = "Clean the project inside the client directory"
|
|
cwd = "client"
|
|
command = "cargo"
|
|
args = ["clean"]
|
|
|
|
[tasks.clean-shared]
|
|
description = "Clean the project inside the shared directory"
|
|
cwd = "shared"
|
|
command = "cargo"
|
|
args = ["clean"]
|
|
|
|
[tasks.clean]
|
|
description = "Clean both client and shared directories"
|
|
dependencies = ["clean-client", "clean-shared"]
|
|
|
|
# Define the default task to build client and update dependencies in both directories
|
|
[tasks.default]
|
|
description = "Build client and run cargo update in both client and shared"
|
|
dependencies = ["build-client", "update-client", "update-shared"]
|