From b31d1b3ef14aa02f9c02fbc535ce81f3eb8701ae Mon Sep 17 00:00:00 2001 From: daniel Date: Sun, 8 Mar 2026 20:52:25 +0000 Subject: [PATCH 1/3] Make axum-helmet test-only for axum --- .gitignore | 1 + packages/axum-helmet/Cargo.toml | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 4fffb2f..4c790d0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /target /Cargo.lock +.DS_Store diff --git a/packages/axum-helmet/Cargo.toml b/packages/axum-helmet/Cargo.toml index 4d81262..23ac6b3 100644 --- a/packages/axum-helmet/Cargo.toml +++ b/packages/axum-helmet/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "axum-helmet" -version = "1.0.0" +version = "1.0.1" edition = "2021" authors = ["Daniel Kovacs "] description = "HTTP security headers middleware core for axum web framework" @@ -18,14 +18,13 @@ categories = [ # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -axum = "0.8" helmet-core = { path = "../helmet-core", version = "1.0.0" } tower = "0.5" tower-service = "0.3" http = "1.4" pin-project-lite = "0.2" -tokio = "1.50" [dev-dependencies] +axum = "0.8" axum-test = "19" -tokio = { version = "1.50", features = ["rt-multi-thread"] } +tokio = { version = "1.50", features = ["macros", "rt-multi-thread"] } From d0209a425bd8630b9a6b1a90286d765959472326 Mon Sep 17 00:00:00 2001 From: daniel Date: Sun, 8 Mar 2026 20:54:13 +0000 Subject: [PATCH 2/3] Update stale crate version references --- packages/actix-web-helmet/README.md | 2 +- packages/axum-helmet/README.md | 2 +- packages/helmet-core/README.md | 2 +- packages/ntex-helmet/README.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/actix-web-helmet/README.md b/packages/actix-web-helmet/README.md index bbc4939..111f8ac 100644 --- a/packages/actix-web-helmet/README.md +++ b/packages/actix-web-helmet/README.md @@ -28,7 +28,7 @@ Add this to your `Cargo.toml`: ```toml [dependencies] -actix-web-helmet = "0.1" +actix-web-helmet = "1.0.0" ``` ## Example diff --git a/packages/axum-helmet/README.md b/packages/axum-helmet/README.md index b57ac9c..2a2482a 100644 --- a/packages/axum-helmet/README.md +++ b/packages/axum-helmet/README.md @@ -26,7 +26,7 @@ Add this to your `Cargo.toml`: ```toml [dependencies] -axum-helmet = "0.1" +axum-helmet = "1.0.1" ``` ## Example diff --git a/packages/helmet-core/README.md b/packages/helmet-core/README.md index c95a92f..4e55b2f 100644 --- a/packages/helmet-core/README.md +++ b/packages/helmet-core/README.md @@ -32,7 +32,7 @@ Add this to your `Cargo.toml`: ```toml [dependencies] -helmet-core = "0.1" +helmet-core = "1.0.0" ``` Implementing the middleware is different for each framework. See the README for your framework of choice to see how to use it. diff --git a/packages/ntex-helmet/README.md b/packages/ntex-helmet/README.md index fc47b25..8273fb7 100644 --- a/packages/ntex-helmet/README.md +++ b/packages/ntex-helmet/README.md @@ -28,7 +28,7 @@ Add this to your `Cargo.toml`: ```toml [dependencies] -ntex-helmet = "0.1" +ntex-helmet = "1.0.0" ``` ## Example From 5a9a213417ec1f066b272d57ac11b730e7d6fc90 Mon Sep 17 00:00:00 2001 From: daniel Date: Sun, 8 Mar 2026 20:57:59 +0000 Subject: [PATCH 3/3] Run CI checks on pull requests --- .github/workflows/test-publish.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/test-publish.yml b/.github/workflows/test-publish.yml index 098a879..a05d82d 100644 --- a/.github/workflows/test-publish.yml +++ b/.github/workflows/test-publish.yml @@ -3,7 +3,24 @@ on: push: branches: - master + pull_request: + branches: + - master jobs: + fmt: + name: Fmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + components: rustfmt + override: true + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all --check clippy: name: Clippy permissions: write-all @@ -36,8 +53,10 @@ jobs: publish: name: Publish needs: + - fmt - test - clippy + if: github.event_name == 'push' && github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3