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
16 changes: 16 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Benchmark

on:
push:
branches:
- main
pull_request:

jobs:
bench:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: cachix/install-nix-action@v26
- name: Run benchmark
run: nix develop --command bash -c 'cargo bench'
18 changes: 7 additions & 11 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
name: Clippy

on:
push:
branches:
- main
pull_request:

name: Clippy check
jobs:
clippy_check:
clippy-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v6
- uses: cachix/install-nix-action@v26
- name: Run clippy
run: nix develop --command bash -c 'cargo clippy'
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: taiki-e/create-gh-release-action@v1
with:
# (optional) Path to changelog.
Expand All @@ -37,11 +37,9 @@ jobs:
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: taiki-e/upload-rust-binary-action@v1
with:
# (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload.
# Note that glob pattern is not supported yet.
bin: mktoc
# (optional) Target triple, default is host triple.
target: ${{ matrix.target }}
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: Test

on:
push:
branches:
- main
pull_request:

name: Test
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions/checkout@v6
- uses: cachix/install-nix-action@v26
- name: Run tests
run: "cargo test"
run: nix develop --command bash -c 'cargo test'
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
target
.idea
.idea

# local build with nix build
result
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Changelog

## v5.0.0 - 2025-12-28

New release who this?
This release mainly updates Rust as well as all dependencies, and introduces a new development setup with Nix.

`mktoc` has been added to `nixpkgs` ([Link](https://search.nixos.org/packages?channel=25.11&show=mktoc&query=mktoc)) and `hermit` ([Link](https://github.com/cashapp/hermit-packages/blob/master/mktoc.hcl)) for easier installation.

### Changed
- Upgrade to Rust Edition 2024 from 2021
- Upgrade to Rust version 1.91.1 from 1.64.0
- Upgrade criterion from 0.4 to 0.8
- Change regex version to 1 instead of 1.31, to automatically receive updates

### Dev Tools
- [nix](https://nix.dev/) flake has been added for reproducible development environments
- [just](https://github.com/casey/just) has been added as task runner, replacing `make`

## v4.0.0

- use Rust Edition 2021 (upgrade from 2018)
Expand Down
Loading
Loading