From d36e773027c744468f323242f9d1afed5aa37ab3 Mon Sep 17 00:00:00 2001 From: Thibault Charbonnier Date: Thu, 21 Dec 2023 18:21:07 -0800 Subject: [PATCH] chore(makefile) new 'make update' target for Cargo workspaces --- Makefile | 8 ++++++-- docs/DEVELOPER.md | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 53ed4762a..6afe8c586 100644 --- a/Makefile +++ b/Makefile @@ -72,6 +72,11 @@ reindex: @util/reindex.sh "t/**/**/*.t" @util/reindex.sh "t/**/**/**/*.t" +.PHONY: update +update: + @cargo update --manifest-path lib/Cargo.toml + @cargo update --manifest-path t/lib/Cargo.toml + .PHONY: todo todo: @/bin/grep -rIFn -- 'TODO' src/ t/ @@ -88,8 +93,7 @@ act: act-build @act --reuse --pull=false .PHONY: coverage -coverage: - make clean +coverage: clean NGX_BUILD_GCOV=1 make TEST_NGINX_RANDOMIZE=1 make test rm -rf work/coverage_data diff --git a/docs/DEVELOPER.md b/docs/DEVELOPER.md index d1d1023b2..53f744fab 100644 --- a/docs/DEVELOPER.md +++ b/docs/DEVELOPER.md @@ -157,6 +157,7 @@ release artifacts). | `test-build` | Run the build options test suite | `lint` | Lint the sources and test cases | `reindex` | Automatically format the `.t` test files +| `update` | Run `cargo update` in all workspaces | `todo` | Search the project for "TODOs" (source + tests) | `act` | Build and run the CI environment | `clean` | Clean the latest build