Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .config/hakari.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@ platforms = [

# Write out exact versions rather than a semver range. (Defaults to false.)
# exact-versions = true

[traversal-excludes]
third-party = [
# We don't want the `fips` feature to be enabled, but `hakari` doesn't
# allow us to exclude individual features. Therefore we must exclude
# `rustls` entirely.
{ name = "rustls" }
]
9 changes: 8 additions & 1 deletion .github/ci_generator/templates/job_steps/pavex_tests.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@
uses: actions/setup-go@v6
with:
go-version: "1.25.0"
<% include 'setup_pavex' %>
- name: Install cargo-hakari
uses: taiki-e/install-action@v2
with:
tool: cargo-hakari
- name: Remove workspace hack from Cargo.toml
run: |
cargo hakari disable
cargo hakari remove-deps -y
- name: Run Pavex tests with multiple feature combinations
if: runner.os != 'Windows'
run: |
Expand Down
75 changes: 18 additions & 57 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -791,29 +791,14 @@ jobs:
uses: actions/setup-go@v6
with:
go-version: "1.25.0"
- name: Download pavex CLI artifact
uses: actions/download-artifact@v4
with:
name: pavex_cli_linux
path: ~/.cargo/bin
- name: Download pavexc CLI artifact
uses: actions/download-artifact@v4
- name: Install cargo-hakari
uses: taiki-e/install-action@v2
with:
name: pavexc_cli_linux
path: ~/.cargo/bin
- name: Mark pavex as executable
env:
PAVEX: /home/runner/.cargo/bin/pavex
PAVEXC: /home/runner/.cargo/bin/pavexc
tool: cargo-hakari
- name: Remove workspace hack from Cargo.toml
run: |
chmod +x ${{ env.PAVEX }}
chmod +x ${{ env.PAVEXC }}
- name: Activate pavex
env:
PAVEX_ACTIVATION_KEY: ${{ secrets.pavex_activation_key }}
run: |
pavex self activate
pavexc self setup
cargo hakari disable
cargo hakari remove-deps -y
- name: Run Pavex tests with multiple feature combinations
if: runner.os != 'Windows'
run: |
Expand Down Expand Up @@ -1119,29 +1104,14 @@ jobs:
uses: actions/setup-go@v6
with:
go-version: "1.25.0"
- name: Download pavex CLI artifact
uses: actions/download-artifact@v4
- name: Install cargo-hakari
uses: taiki-e/install-action@v2
with:
name: pavex_cli_macos
path: ~/.cargo/bin
- name: Download pavexc CLI artifact
uses: actions/download-artifact@v4
with:
name: pavexc_cli_macos
path: ~/.cargo/bin
- name: Mark pavex as executable
env:
PAVEX: /Users/runner/.cargo/bin/pavex
PAVEXC: /Users/runner/.cargo/bin/pavexc
run: |
chmod +x ${{ env.PAVEX }}
chmod +x ${{ env.PAVEXC }}
- name: Activate pavex
env:
PAVEX_ACTIVATION_KEY: ${{ secrets.pavex_activation_key }}
tool: cargo-hakari
- name: Remove workspace hack from Cargo.toml
run: |
pavex self activate
pavexc self setup
cargo hakari disable
cargo hakari remove-deps -y
- name: Run Pavex tests with multiple feature combinations
if: runner.os != 'Windows'
run: |
Expand Down Expand Up @@ -1441,23 +1411,14 @@ jobs:
uses: actions/setup-go@v6
with:
go-version: "1.25.0"
- name: Download pavex CLI artifact
uses: actions/download-artifact@v4
- name: Install cargo-hakari
uses: taiki-e/install-action@v2
with:
name: pavex_cli_windows
path: ~/.cargo/bin
- name: Download pavexc CLI artifact
uses: actions/download-artifact@v4
with:
name: pavexc_cli_windows
path: ~/.cargo/bin

- name: Activate pavex
env:
PAVEX_ACTIVATION_KEY: ${{ secrets.pavex_activation_key }}
tool: cargo-hakari
- name: Remove workspace hack from Cargo.toml
run: |
pavex self activate
pavexc self setup
cargo hakari disable
cargo hakari remove-deps -y
- name: Run Pavex tests with multiple feature combinations
if: runner.os != 'Windows'
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/enable-workspace-hack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ jobs:
run: |
cargo hakari generate
cargo hakari manage-deps --yes
cd docs/examples
cargo hakari generate
cargo hakari manage-deps --yes
cd ../..
git add .
git commit -am "release: Re-enable workspace hack after a release"
- name: Create Pull Request
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/release-pr-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Pre-release checks

on:
push:
branches:
- release-plz-*

jobs:
publish-dry-run:
name: Publish (dry-run)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Install Rust
uses: actions-rust-lang/[email protected]
- name: Publish to crates.io (dry-run)
run: |
cargo publish --dry-run --workspace
Loading
Loading