Cargo workspaceにおけるcargo make

https://github.com/sagiegurari/cargo-make?tab=readme-ov-file#automatically-extend-workspace-makefile

環境変数を一つ[env]セクションに記述しておくことで、project rootのMakefile.tomlの設定を自動でworkspace単位で反映させることができる。


先頭の、

[config]
default_to_workspace = false

を設定することで、workspace内に存在するcrate中で実行したときの挙動が変わる。

Related Articles