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