This release fixes the CI release job and updates the Cargo.lock file. See the previous release for fixed and changed things.
- A pre-commit hook has been added for easy integration of mktoc into projects. It can be used like so:
repos:
- repo: https://github.com/KevinGimbel/mktoc
rev: 5.1.0
hooks:
- id: mktoc- Duplicate headings are rendered correctly (See #26)
- Exclude list for Cargo has been updated to remove unneeded files from the Cargo package
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) and hermit (Link) for easier installation.
- 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
- nix flake has been added for reproducible development environments
- just has been added as task runner, replacing
make
- use Rust Edition 2021 (upgrade from 2018)
- refactor
make_tocfunction for easier third-party integration #13
- Replace structopts with clap #10 by @oylenshpeegul
- wrap ToC in details block #8 by @KevinGimbel
- Links in Headlines produce wrong output #12 by @KevinGimbel
- add more tests
- Implement JSON settings
- Add build for GitHub Binary releases