Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
2b27ede
Merge pull request #147 from epage/template
epage Jan 27, 2026
8d8ab52
chore(deps): Update pre-commit hook crate-ci/typos to v1.42.3
renovate[bot] Feb 1, 2026
53d23e4
chore(deps): Update Rust crate nix to 0.31
renovate[bot] Feb 1, 2026
01352e5
Merge pull request #159 from rust-cli/renovate/crate-ci-typos-1.x
epage Feb 1, 2026
e5b61e6
Merge pull request #160 from rust-cli/renovate/nix-0.x
epage Feb 2, 2026
5f01d3d
chore(deps): Update pre-commit hook crate-ci/typos to v1.43.0
renovate[bot] Feb 2, 2026
6d83493
chore(deps): Update pre-commit hook crate-ci/typos to v1.43.0 (#43)
epage Feb 2, 2026
bda89af
chore(ci): Fix prek version updating
epage Feb 18, 2026
8485f9d
chore(deps): Update Prek to v0.3.3 (#45)
renovate[bot] Feb 18, 2026
207c3d9
chore(release): Make use of new template variable
epage Feb 23, 2026
096034c
chore(deps): Update Prek to v0.3.4 (#46)
renovate[bot] Feb 28, 2026
9f35c53
chore(deps): Update pre-commit hook crate-ci/committed to v1.1.11
renovate[bot] Mar 1, 2026
82bf68c
chore(deps): Update pre-commit hook crate-ci/typos to v1.44.0
renovate[bot] Mar 1, 2026
a0b1d59
Merge pull request #161 from rust-cli/renovate/crate-ci-committed-1.x
epage Mar 1, 2026
59f2db4
Merge pull request #162 from rust-cli/renovate/crate-ci-typos-1.x
epage Mar 1, 2026
5cfa555
chore: Bump MSRV to 1.85
epage Mar 2, 2026
42d2091
chore: Migrate to Edition 2024
epage Mar 2, 2026
9abb3f4
Merge pull request #163 from epage/edition
epage Mar 2, 2026
476c955
chore(deps): Update Rust Stable to v1.94 (#49)
renovate[bot] Mar 5, 2026
5762560
chore(deps): Update Prek to v0.3.5 (#50)
renovate[bot] Mar 9, 2026
a49324a
docs: Update description
epage Mar 10, 2026
dee0db5
chore(deps): Update Prek to v0.3.6 (#51)
renovate[bot] Mar 16, 2026
a5e99df
refactor: Move helpers to after use
epage Mar 16, 2026
c3fbd04
docs(reader): Document ReadUntil
epage Mar 16, 2026
9f7b2ba
docs(reader): Re-arrange variants
epage Mar 16, 2026
cc67a84
refactor(reader): Remove allocations from Display
epage Mar 16, 2026
beda4a1
docs: Clean up
epage Mar 16, 2026
59b8286
Merge pull request #166 from epage/cleanup
epage Mar 16, 2026
6f4463d
docs: Move doc comment onto method
epage Mar 16, 2026
9c9ca50
feat: Expose PtySession::new
epage Mar 16, 2026
0786902
refactor(session): Move split after use
epage Mar 16, 2026
89e9d4e
Merge pull request #167 from epage/docs
epage Mar 16, 2026
c0a5ed0
refactor(process): Draw attention to public APIs
epage Mar 16, 2026
ef54ee8
fix(process): Directly re-export needed types
epage Mar 16, 2026
b7c7dcf
docs(process): Encourage get_file_handle
epage Mar 16, 2026
2aa73c8
feat(reader): Add builder methods to Options
epage Mar 16, 2026
3c64563
feat(session): Add accessors to PtySession
epage Mar 16, 2026
8a0b761
docs(session): Reorder PtyReplSession fields
epage Mar 16, 2026
cd038c5
feat(session): Provide constructor for PtyReplSession
epage Mar 16, 2026
ab83799
Merge pull request #168 from epage/api2
epage Mar 16, 2026
0498828
docs: Update changelog
epage Mar 16, 2026
7e96abe
chore: Release rexpect version 0.6.4
epage Mar 16, 2026
061ae89
fix(error)!: Make Error non-exhaustive
epage Mar 16, 2026
642ca73
fix(process)!: Make PtyProcess fields private
epage Mar 16, 2026
8786479
fix(process)!: Dont re-export whole modules
epage Mar 16, 2026
568837f
fix(reader)!: Make find private
epage Mar 16, 2026
776dbe9
fix(reader)!: Make ReadUntil non-exhaustive
epage Mar 16, 2026
3256aa8
fix(reader)!: Make `Options` opaque
epage Mar 16, 2026
f1dd095
fix(session): Make StreamSession fields private
epage Mar 16, 2026
22a230d
fix(session)!: Make PtySession fields private
epage Mar 16, 2026
029796a
fix(session)!: Make PtyReplSession fields private
epage Mar 16, 2026
b2b6bb0
Merge pull request #169 from epage/api
epage Mar 16, 2026
633db9f
docs: Update changelog
epage Mar 16, 2026
825e515
chore: Release rexpect version 0.7.0
epage Mar 16, 2026
80afe4d
chore(deps): Update Prek to v0.3.8 (#52)
renovate[bot] Mar 23, 2026
dcb79c9
chore(ci): Pin actions
epage Mar 27, 2026
f1f2452
chore(deps): Pin dependencies
renovate[bot] Mar 27, 2026
eb2f9d2
chore(deps): Pin dependencies (#53)
epage Mar 27, 2026
4af143d
chore(ci): Don't persist git credentials by default
epage Mar 27, 2026
3e98dbe
chore(ci): Use env instead of templates
epage Mar 27, 2026
fb7a030
chore(ci): Switch from cargo-audit to cargo-deny
epage Mar 27, 2026
e60a418
chore(ci): Adopt zizmor
epage Mar 27, 2026
c50fd0f
chore(ci): Adopt zizmor (#54)
epage Mar 27, 2026
c00ccb7
chore(ci): Fix content
epage Mar 27, 2026
509fb92
chore(ci): Shorten workflow name
epage Mar 27, 2026
616ecc0
chore(ci): Add a central audit job
epage Mar 27, 2026
e4210b9
chore(ci): Fix the audit display name
epage Mar 27, 2026
1601c98
chore(deps): Update j178/prek-action action to v2
renovate[bot] Apr 1, 2026
6a5d51e
chore(deps): Update j178/prek-action action to v2
renovate[bot] Apr 1, 2026
1edb51e
chore(deps): Update taiki-e/install-action digest to 4fea3cb
renovate[bot] Apr 1, 2026
3c8a1e3
chore(deps): Update taiki-e/install-action digest to 4fea3cb (#55)
epage Apr 1, 2026
5ab175a
chore(deps): Update j178/prek-action action to v2 (#56)
epage Apr 1, 2026
a3b3465
Merge pull request #170 from rust-cli/renovate/j178-prek-action-2.x
epage Apr 1, 2026
2fc4cd2
chore(pre): Always check zizmor
epage Apr 1, 2026
2f37b60
chore(deps): Update pre-commit hook crate-ci/typos to v1.45.0
renovate[bot] Apr 1, 2026
8ed1cfa
chore(ci): Run audits more frequently
epage Apr 1, 2026
813f244
chore(deps): Update pre-commit hook crate-ci/typos to v1.45.0 (#48)
epage Apr 1, 2026
d6f7c72
chore(pre): Always check zizmor (#57)
epage Apr 1, 2026
15908a8
chore(gh): Fix template updating
epage Apr 6, 2026
ea3cbc8
chore(gh): Document why template updating needs credentials
epage Apr 6, 2026
29448ed
Use full-length tags for hash-pinned action references
woodruffw Apr 6, 2026
38eb2f2
Use full-length tags for hash-pinned action references (#58)
epage Apr 6, 2026
94c8ee6
chore(deps): Update Prek to v0.3.9 (#59)
renovate[bot] Apr 13, 2026
8cda912
chore: Anchor includes to be at package root
epage Apr 14, 2026
6647a13
chore: Anchor includes to be at package root (#60)
epage Apr 14, 2026
b7f02f0
chore(ci): Ignore collapsible_match
epage Apr 16, 2026
18b5384
chore(deps): Update Rust Stable to v1.95 (#61)
renovate[bot] Apr 16, 2026
18b0c5e
chore(ci): Switch to versioned install action
epage Apr 16, 2026
e36b072
chore(ci): Name every step
epage Apr 16, 2026
5666f33
chore(ci): Switch to versioned install action (#62)
epage Apr 16, 2026
54f523d
chore(ci): Approve another license
epage Apr 17, 2026
ff00184
chore(deps): Update Prek to v0.3.10 (#63)
renovate[bot] Apr 21, 2026
dd01d8b
chore(deps): Update Prek to v0.3.11 (#64)
renovate[bot] Apr 27, 2026
4f2c244
chore(deps): Update pre-commit hook crate-ci/typos to v1.46.0
renovate[bot] May 1, 2026
f21a254
Merge pull request #171 from rust-cli/renovate/crate-ci-typos-1.x
epage May 1, 2026
cc53e46
chore(ci): Track specific tags
epage May 1, 2026
f3e0cc0
chore: Experiment with more lints
epage May 1, 2026
4dd55b3
chore: Iterate on the template (#65)
epage May 1, 2026
1071ec1
chore(ci): Batch action updates
epage May 1, 2026
61c939f
chore(ci): Batch action updates (#66)
epage May 1, 2026
372a47d
chore: Drop automod
epage May 1, 2026
1502dad
chore: Drop automod (#67)
epage May 1, 2026
1e1d586
chore(renovate): Fix the tag
epage May 1, 2026
b62aed2
chore(deps): Update Prek to v0.3.12 (#68)
renovate[bot] May 5, 2026
b3bd7e4
chore(deps): Update Prek to v0.3.13 (#69)
renovate[bot] May 5, 2026
4138c86
test: capture try_read panic on multi-byte input
SAY-5 May 13, 2026
740defa
fix: avoid char-boundary panic in NBReader::try_read
SAY-5 May 13, 2026
d7549a4
chore(deps): Update Prek to v0.4.0 (#70)
renovate[bot] May 14, 2026
808af95
Merge pull request #172 from SAY-5/fix-try-read-char-boundary
epage May 14, 2026
91c411f
docs: Update changelog
epage May 14, 2026
d20e67b
chore: Release rexpect version 0.7.1
epage May 14, 2026
ea7984f
chore(deps): Update Prek to v0.4.1 (#71)
renovate[bot] May 20, 2026
8b696a5
chore(deps): Update Prek to v0.4.2
renovate[bot] May 26, 2026
d9eaf2c
chore(deps): Update Prek to v0.4.2 (#72)
epage May 26, 2026
3eda2bb
chore(deps): Update Prek to v0.4.3 (#73)
renovate[bot] May 27, 2026
71d8022
chore(deps): Update Rust Stable to v1.96 (#74)
renovate[bot] May 28, 2026
6799945
chore(deps): Update pre-commit hook crate-ci/typos to v1.47.0
renovate[bot] Jun 1, 2026
7582307
Merge pull request #173 from rust-cli/renovate/crate-ci-typos-1.x
epage Jun 1, 2026
e14de16
chore(deps): Update pre-commit hook crate-ci/typos to v1.47.0
renovate[bot] Jun 1, 2026
0ff7e2d
chore(deps): Update compatible (actions) (#75)
renovate[bot] Jun 1, 2026
6de8361
chore(deps): Update pre-commit hook crate-ci/typos to v1.47.0 (#76)
epage Jun 1, 2026
96e9da2
chore(deps): Update Prek to v0.4.4 (#77)
renovate[bot] Jun 4, 2026
a83fe36
chore(deps): Update Prek to v0.4.5 (#78)
renovate[bot] Jun 15, 2026
400e27d
chore(deps): Update dependency rust to 1.96
renovate[bot] Jul 1, 2026
017f043
chore(deps): Update pre-commit hook crate-ci/typos to v1.48.0
renovate[bot] Jul 1, 2026
7c65bd3
Merge pull request #174 from rust-cli/renovate/rust-1.x
epage Jul 1, 2026
69fb118
Merge pull request #175 from rust-cli/renovate/crate-ci-typos-1.x
epage Jul 1, 2026
01a5a70
chore(deps): Update dtolnay/rust-toolchain digest to 4be7066
renovate[bot] Jul 1, 2026
24ecf3e
chore(deps): Update compatible (actions) (#80)
renovate[bot] Jul 1, 2026
33786f5
chore(deps): Update dtolnay/rust-toolchain digest to 4be7066 (#79)
epage Jul 1, 2026
425b5d6
chore(deps): Update Prek to v0.4.6 (#81)
renovate[bot] Jul 1, 2026
fa12fcb
chore(deps): Update Prek to v0.4.8 (#82)
renovate[bot] Jul 4, 2026
fcc3bc8
chore(deps): Update Rust Stable to v1.97 (#83)
renovate[bot] Jul 9, 2026
0da9853
chore(ci): Update lint list for new Rust release
epage Jul 9, 2026
9e6f6e7
chore(ci): Leverage CARGO_BUILD_WARNINGS
epage Jul 10, 2026
f15c1f6
chore(deps): Update Prek to v0.4.9 (#84)
renovate[bot] Jul 11, 2026
4b9061d
chore(deps): Update Prek to v0.4.10 (#85)
renovate[bot] Jul 16, 2026
6b2a60b
chore(ci): Switch to github's coverage reporting
epage Jul 18, 2026
ec06cca
chore(deps): Update pre-commit hook crate-ci/committed to v1.1.11
renovate[bot] Jul 20, 2026
cf30e2a
chore(deps): Update pre-commit hook crate-ci/committed to v1.1.11 (#47)
epage Jul 20, 2026
a52cd8a
chore(deps): Update Prek to v0.4.11 (#86)
renovate[bot] Jul 24, 2026
5803067
chore(deps): Update dtolnay/rust-toolchain digest to 4cda84d
renovate[bot] Aug 1, 2026
bf018bb
chore(deps): Update compatible (actions) (#88)
renovate[bot] Aug 1, 2026
637027e
chore(deps): Update dependency rust to 1.97
renovate[bot] Aug 1, 2026
702e3e1
chore(deps): Update actions/checkout action to v7
renovate[bot] Aug 1, 2026
fd7f924
Merge pull request #178 from rust-cli/renovate/actions-checkout-7.x
epage Aug 1, 2026
f6de7fd
Merge pull request #177 from rust-cli/renovate/rust-1.x
epage Aug 1, 2026
359853b
chore(deps): Update dtolnay/rust-toolchain digest to 4cda84d (#87)
epage Aug 1, 2026
076ba2e
chore(deps): Update Prek to v0.4.12 (#89)
renovate[bot] Aug 3, 2026
a6e4864
chore(ci): Don't update prek immediately
epage Aug 3, 2026
bbc78aa
chore(ci): Experiment with min-release-age
epage Aug 3, 2026
3d30c8c
chore(deps): Update pre-commit hook crate-ci/typos to v1.48.0
renovate[bot] Aug 3, 2026
9725108
chore(deps): Update pre-commit hook zizmorcore/zizmor-pre-commit to v…
renovate[bot] Aug 3, 2026
5119849
chore(deps): Update actions/checkout action to v7
renovate[bot] Aug 3, 2026
70d0dca
chore(deps): Update j178/prek-action action to v3
renovate[bot] Aug 3, 2026
3e4b55b
chore(deps): Update pre-commit hook crate-ci/typos to v1.48.0 (#90)
epage Aug 3, 2026
3b414b2
chore(deps): Update pre-commit hook zizmorcore/zizmor-pre-commit to v…
epage Aug 3, 2026
61d0e12
chore(deps): Update actions/checkout action to v7 (#92)
epage Aug 3, 2026
ea009dd
chore(deps): Update j178/prek-action action to v3 (#93)
epage Aug 3, 2026
f1016df
fix: Remove lint config for clippy::from_iter_instead_of_collect
Muscraft Aug 9, 2026
50a7352
fix: Remove lint config for clippy::from_iter_instead_of_collect (#94)
epage Aug 9, 2026
059ebed
chore(ci): Remove dtolnay/rust-toolchain
epage Aug 10, 2026
e321fc4
chore(ci): Remove dtolnay/rust-toolchain (#95)
epage Aug 10, 2026
d016feb
docs(ai): Start with regex's policy
epage Aug 12, 2026
516da22
docs(ai): Try out uv's policy
epage Aug 12, 2026
82c9883
docs(gh): Add a PR template
epage Aug 12, 2026
8b090d2
docs(ai): Solidify the policy
epage Aug 12, 2026
d7a910f
chore(deps): Update Rust Stable to v1.98 (#97)
renovate[bot] Aug 23, 2026
8d22eae
chore(ci): Also allow renamed_and_removed_lints
epage Aug 25, 2026
c2979d0
docs: Remove license placeholder
epage Aug 26, 2026
90588db
chore(ci): Reduce git checkout for committed
epage Aug 27, 2026
0766687
chore(ci): Reduce git checkout for committed (#98)
epage Aug 27, 2026
fc41ee7
docs(ai): Add an AI policy (#96)
epage Aug 28, 2026
9725e9e
chore: Update prek
epage Aug 29, 2026
51781fb
chore(deps): Update pre-commit hook crate-ci/typos to v1.50.0
renovate[bot] Sep 1, 2026
c08d5dc
chore(deps): Update compatible (actions) (#99)
renovate[bot] Sep 1, 2026
d6f8c00
chore(deps): Update dependency rust to 1.98
renovate[bot] Sep 1, 2026
d5a8fd6
chore(deps): Update pre-commit hook crate-ci/typos to v1.50.0
renovate[bot] Sep 1, 2026
824cc73
chore(deps): Update pre-commit hook crate-ci/typos to v1.50.0 (#100)
epage Sep 1, 2026
752803a
Merge pull request #180 from rust-cli/renovate/crate-ci-typos-1.x
epage Sep 1, 2026
4c6a13d
Merge pull request #179 from rust-cli/renovate/rust-1.x
epage Sep 2, 2026
41ce6bf
chore: Rename master to main
epage Sep 18, 2026
510526f
chore: Rename master to main
epage Sep 18, 2026
e051dfa
chore(ci): Make zizmor fail
epage Sep 27, 2026
5dd3ca8
chore(deps): Update Rust Stable to v1.99 (#101)
renovate[bot] Oct 4, 2026
a1d422b
chore(deps): Update compatible (actions) (#102)
renovate[bot] Nov 1, 2026
5b0cf61
chore(deps): Update dependency prek to v0.5.9
renovate[bot] Nov 1, 2026
901e06f
chore(deps): Update dependency rust to 1.99
renovate[bot] Nov 1, 2026
f971eb8
Merge pull request #182 from rust-cli/renovate/rust-1.x
epage Nov 2, 2026
92af09a
Merge pull request #181 from rust-cli/renovate/prek-0.x
epage Nov 2, 2026
4200d27
chore(deps): Update Prek to v0.5.7 (#103)
renovate[bot] Nov 2, 2026
64ffbe4
chore(ci): Speed up coverage install
epage Nov 15, 2026
11d12ec
chore(deps): Update Rust Stable to v1.100 (#104)
renovate[bot] Nov 16, 2026
fd0056c
chore(ci): Update renovatebot
epage Nov 16, 2026
51fd70a
chore(ci): Increase timeout by default
epage Nov 18, 2026
d2f8343
chore(gh): Use Fixes, rather than Closes
epage Nov 19, 2026
65e8521
Chore(deps): Update nix
PaulDance Nov 26, 2026
bd87ef2
Merge pull request #184 from PaulDance/deps/update-nix
epage Nov 26, 2026
1447d84
docs: Update changelog
epage Nov 26, 2026
507824a
chore: Release rexpect version 0.7.2
epage Nov 26, 2026
877f739
chore: Update from _rust template
epage Nov 28, 2026
80b0aff
style: Make clippy happy
epage Nov 28, 2026
cb92c21
style: Make rustdoc happy
epage Nov 29, 2026
098aa22
chore(ci): Drop commit-lint in favor of committed
epage Nov 29, 2026
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
16 changes: 16 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!-- Thanks for helping out! -->

### What does this PR try to solve?

<!-- a maintainer-approved Issue is required for non-trivial changes -->
Fixes #<!-- Issue # -->

### Notes to reviewers

<!--
Examples:
- Larger context this fits within
- Manual testing and why it wasn't automated
-->

LLM involvement: <!-- TODO -->
21 changes: 17 additions & 4 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
extends: ["helpers:pinGitHubActionDigests"],
schedule: [
'before 5am on the first day of the month',
],
minimumReleaseAge: "3 days",
internalChecksFilter: "strict",
semanticCommits: 'enabled',
commitMessageLowerCase: 'never',
configMigration: true,
dependencyDashboard: true,
dependencyDashboard: {
enabled: true,
},
"pre-commit": {
enabled: true
},
Expand Down Expand Up @@ -64,11 +69,19 @@
matchDepNames: [
'prek',
],
extractVersion: '^(?<version>\\d+\\.\\d+\\.\\d+)',
schedule: [
'* * * * *',
extractVersion: '^v(?<version>\\d+\\.\\d+\\.\\d+)',
automerge: true,
},
{
matchManagers: [
'github-actions',
],
matchUpdateTypes: [
'minor',
'patch',
],
automerge: true,
groupName: 'compatible (actions)',
},
// Goals:
// - Keep version reqs low, ignoring compatible normal/build dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/settings.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# These settings are synced to GitHub by https://probot.github.io/apps/settings/

repository:
description: ".github/workflows/ci.yml"
description: "Interact with unix processes/bash the same way as pexpect or Don libes expect does"
homepage: "https://docs.rs/rexpect"
topics: "pexpect unix pty processes"
has_issues: true
Expand Down
57 changes: 47 additions & 10 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
name: Security audit
name: Audit

permissions:
contents: read

on:
pull_request:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
push:
branches:
- main
Expand All @@ -22,19 +19,38 @@ concurrency:
cancel-in-progress: true

jobs:
security_audit:
audit:
permissions:
contents: none
name: Audit
needs: [advisories, cargo_deny, actions]
runs-on: ubuntu-latest
if: "always()"
steps:
- name: Failed
run: exit 1
if: "contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped')"
advisories:
permissions:
issues: write # to create issues (actions-rs/audit-check)
checks: write # to create check (actions-rs/audit-check)
runs-on: ubuntu-latest
# Prevent sudden announcement of a new advisory from failing ci:
continue-on-error: true
strategy:
matrix:
checks:
- advisories
steps:
- name: Checkout repository
uses: actions/checkout@v6
- uses: actions-rs/audit-check@v1
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Lint advisories
uses: EmbarkStudios/cargo-deny-action@3c6349835b2b7b196a839186cb8b78e02f7b5f25 # v2.1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
command: check ${{ matrix.checks }}
rust-version: stable

cargo_deny:
permissions:
Expand All @@ -46,8 +62,29 @@ jobs:
checks:
- bans licenses sources
steps:
- uses: actions/checkout@v6
- uses: EmbarkStudios/cargo-deny-action@v2
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Lint bans
uses: EmbarkStudios/cargo-deny-action@3c6349835b2b7b196a839186cb8b78e02f7b5f25 # v2.1.1
with:
command: check ${{ matrix.checks }}
rust-version: stable

actions:
runs-on: ubuntu-latest
permissions:
security-events: write
contents: read # only needed for private or internal repos
actions: read # only needed for private or internal repos
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Run zizmor
uses: zizmorcore/zizmor-action@53290badfa369cb0bf7ad16342cb62c2fa47ac7b # v0.8.0
with:
advanced-security: false
annotations: true
127 changes: 75 additions & 52 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
CLICOLOR: 1
CARGO_INCREMENTAL: 0
RUST_TOOLCHAIN_STABLE: "1.100" # STABLE

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
Expand Down Expand Up @@ -43,13 +45,17 @@ jobs:
CARGO_PROFILE_DEV_DEBUG: line-tables-only
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
run: rustup update --no-self-update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
- name: Initialize cache
uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
- name: Install cargo-hack
uses: taiki-e/install-action@86f7a0ffb25f40114606501a311ebcfaf882ea32 # v2.88.0
with:
toolchain: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@cargo-hack
tool: cargo-hack
- name: Build
run: cargo test --workspace --no-run
- name: Test
Expand All @@ -62,13 +68,17 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
run: rustup update --no-self-update stable && rustup default stable
- name: Initialize cache
uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
- name: Install cargo-hack
uses: taiki-e/install-action@86f7a0ffb25f40114606501a311ebcfaf882ea32 # v2.88.0
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@cargo-hack
tool: cargo-hack
- name: Default features
run: cargo hack check --each-feature --locked --rust-version --ignore-private --workspace --all-targets --keep-going
minimal-versions:
Expand All @@ -79,15 +89,13 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install stable Rust
uses: dtolnay/rust-toolchain@stable
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
toolchain: stable
persist-credentials: false
- name: Install stable Rust
run: rustup update --no-self-update stable && rustup default stable
- name: Install nightly Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
run: rustup update --no-self-update nightly && rustup default nightly
- name: Downgrade dependencies to minimal versions
run: cargo +nightly generate-lockfile -Z minimal-versions
- name: Compile with minimal versions
Expand All @@ -96,41 +104,45 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
persist-credentials: false
- name: Install Rust
run: rustup update --no-self-update stable && rustup default stable
- name: Initialize cache
uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
- name: "Is lockfile updated?"
run: cargo update --workspace --locked
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
toolchain: "1.93" # STABLE
- uses: Swatinem/rust-cache@v2
persist-credentials: false
- name: Install Rust
run: rustup update --no-self-update $RUST_TOOLCHAIN_STABLE && rustup default $RUST_TOOLCHAIN_STABLE
- name: Initialize cache
uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
- name: Check documentation
env:
RUSTDOCFLAGS: -D warnings
CARGO_BUILD_WARNINGS: deny
run: cargo doc --workspace --all-features --no-deps --document-private-items --keep-going
rustfmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
toolchain: "1.93" # STABLE
components: rustfmt
- uses: Swatinem/rust-cache@v2
persist-credentials: false
- name: Install Rust
run: rustup update --no-self-update $RUST_TOOLCHAIN_STABLE && rustup default $RUST_TOOLCHAIN_STABLE
- name: Install rustfmt
run: rustup component add rustfmt
- name: Initialize cache
uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
- name: Check formatting
run: cargo fmt --check
clippy:
Expand All @@ -140,13 +152,15 @@ jobs:
security-events: write # to upload sarif results
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
toolchain: "1.93" # STABLE
components: clippy
- uses: Swatinem/rust-cache@v2
persist-credentials: false
- name: Install Rust
run: rustup update --no-self-update $RUST_TOOLCHAIN_STABLE && rustup default $RUST_TOOLCHAIN_STABLE
- name: Install clippy
run: rustup component add clippy
- name: Initialize cache
uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
- name: Install SARIF tools
run: cargo install clippy-sarif --locked
- name: Install SARIF tools
Expand All @@ -159,28 +173,37 @@ jobs:
| sarif-fmt
continue-on-error: true
- name: Upload
uses: github/codeql-action/upload-sarif@v4
uses: github/codeql-action/upload-sarif@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
with:
sarif_file: clippy-results.sarif
wait-for-processing: true
- name: Report status
run: cargo clippy --workspace --all-features --all-targets --keep-going -- -D warnings --allow deprecated
env:
CARGO_BUILD_WARNINGS: deny
run: cargo clippy --workspace --all-features --all-targets --keep-going -- --allow deprecated --allow renamed_and_removed_lints
coverage:
name: Coverage
runs-on: ubuntu-latest
permissions:
code-quality: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
persist-credentials: false
- name: Install Rust
run: rustup update --no-self-update stable && rustup default stable
- name: Initialize cache
uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
- name: Install cargo-tarpaulin
run: cargo install cargo-tarpaulin
uses: taiki-e/install-action@37f7c5781271959fb65b6b35224e28652ff2b63d # v2.87.0
with:
tool: cargo-tarpaulin
- name: Gather coverage
run: cargo tarpaulin --output-dir coverage --out lcov
- name: Publish to Coveralls
uses: coverallsapp/github-action@master
run: cargo tarpaulin --out xml --timeout 120
- name: Upload coverage report
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
uses: actions/upload-code-coverage@2b21a77928be8d5168c2b9581a67f2adbebacc52 # v1.4.4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: cobertura.xml
language: Rust
25 changes: 0 additions & 25 deletions .github/workflows/commit-lint.yml

This file was deleted.

Loading
Loading