35 lines
557 B
TOML
Raw Normal View History

2022-05-27 20:26:33 +08:00
[tasks.rust_clean]
2022-06-19 09:42:25 +08:00
run_task = { name = ["cargo_clean","rm_macro_build_cache", "rm_generated_protobuf_files"] }
[tasks.cargo_clean]
2022-05-27 20:26:33 +08:00
script = [
"""
cd rust-lib
2022-06-19 09:42:25 +08:00
cargo clean -q
2022-05-27 20:26:33 +08:00
cd ../../shared-lib
2022-06-19 09:42:25 +08:00
cargo clean -q
2022-05-27 20:26:33 +08:00
""",
]
script_runner = "@shell"
2022-06-19 09:42:25 +08:00
[tasks.rm_macro_build_cache]
script = [
"""
path = canonicalize ../shared-lib/lib-infra/.cache
if is_path_exists ${path}
rm -rf ${path}
end
""",
]
script_runner = "@duckscript"
[tasks.rm_generated_protobuf_files]
2022-05-27 20:26:33 +08:00
script = [
"""
""",
]
script_runner = "@duckscript"