symbol tables appear to be messed up and it doesn't work with async Rust, so will try to refactor the code to be sync and see how it fares
91 lines
1.6 KiB
TOML
91 lines
1.6 KiB
TOML
[env]
|
|
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
|
|
|
|
[config]
|
|
skip_core_tasks = true
|
|
|
|
[tasks.default]
|
|
dependencies = ["build"]
|
|
|
|
[tasks.check]
|
|
workspace = false
|
|
command = "docker-compose"
|
|
args = ["run", "build", "check", "${@}"]
|
|
|
|
[tasks.build]
|
|
workspace = false
|
|
command = "docker-compose"
|
|
args = ["run", "build", "build", "${@}"]
|
|
|
|
[tasks.fmt]
|
|
command = "cargo"
|
|
args = ["fmt"]
|
|
|
|
[tasks.test]
|
|
workspace = false
|
|
command = "docker-compose"
|
|
args = ["run", "build", "test", "${@}"]
|
|
|
|
[tasks.clean]
|
|
workspace = false
|
|
command = "cargo"
|
|
args = ["clean"]
|
|
|
|
[tasks.check-watch]
|
|
workspace = false
|
|
command = "docker-compose"
|
|
args = ["run", "build", "check", "${@}"]
|
|
watch = { watch = ["nl-sys/src", "pcap-sys/src"] }
|
|
|
|
#-----------------------
|
|
#
|
|
# Git tasks
|
|
#
|
|
#-----------------------
|
|
|
|
[tasks.git-pre-commit]
|
|
workspace = false
|
|
dependencies = ["build", "test", "fmt"]
|
|
|
|
[tasks.git-add]
|
|
workspace = false
|
|
command = "git"
|
|
args = ["add", "."]
|
|
|
|
[tasks.git-commit]
|
|
workspace = false
|
|
command = "convco"
|
|
args = ["commit", "-i"]
|
|
dependencies = ["git-pre-commit", "git-add"]
|
|
|
|
#---------------------------------
|
|
#
|
|
# Project setup tasks
|
|
#
|
|
#---------------------------------
|
|
|
|
[tasks.setup]
|
|
workspace = false
|
|
dependencies = ["setup-pull-rust-image", "setup-update-submodules"]
|
|
|
|
[tasks.setup-pull-rust-image]
|
|
workspace = false
|
|
script = "docker pull rust:1-alpine"
|
|
|
|
[tasks.setup-update-submodules]
|
|
workspace = false
|
|
script = "git submodule update --init"
|
|
|
|
#----------------------
|
|
#
|
|
# CI tasks
|
|
#
|
|
#----------------------
|
|
|
|
[tasks.ci]
|
|
workspace = false
|
|
dependencies = ["setup", "build", "ci-convco-check"]
|
|
|
|
[tasks.ci-convco-check]
|
|
command = "convco"
|
|
args = ["check"] |