diff --git a/Cargo.lock b/Cargo.lock index 84502e8..763e436 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,9 +13,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.17" +version = "0.6.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23a1e53f0f5d86382dafe1cf314783b2044280f406e7e1506368220ad11b1338" +checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" dependencies = [ "anstyle", "anstyle-parse", @@ -28,9 +28,9 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.9" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8365de52b16c035ff4fcafe0092ba9390540e3e352870ac09933bebcaa2c8c56" +checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" [[package]] name = "anstyle-parse" @@ -62,9 +62,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.20" +version = "4.5.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b97f376d85a664d5837dbae44bf546e6477a679ff6610010f17276f686d867e8" +checksum = "fb3b4b9e5a7c7514dfa52869339ee98b3156b0bfb4e8a77c4ff4babb64b1604f" dependencies = [ "clap_builder", "clap_derive", @@ -72,9 +72,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.20" +version = "4.5.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19bc80abd44e4bed93ca373a0704ccbd1b710dc5749406201bb018272808dc54" +checksum = "b17a95aa67cc7b5ebd32aa5370189aa0d79069ef1c64ce893bd30fb24bff20ec" dependencies = [ "anstream", "anstyle", @@ -96,9 +96,9 @@ dependencies = [ [[package]] name = "clap_lex" -version = "0.7.2" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97" +checksum = "afb84c814227b90d6895e01398aee0d8033c00e7466aca416fb6a8e0eb19d8a7" [[package]] name = "colorchoice" @@ -207,9 +207,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.8" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "368758f23274712b504848e9d5a6f010445cc8b87a7cdb4d7cbee666c1288da3" +checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" dependencies = [ "aho-corasick", "memchr", @@ -236,9 +236,9 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "syn" -version = "2.0.85" +version = "2.0.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5023162dfcd14ef8f32034d8bcd4cc5ddc61ef7a247c024a33e24e1f24d21b56" +checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d" dependencies = [ "proc-macro2", "quote", @@ -247,7 +247,7 @@ dependencies = [ [[package]] name = "tex-fmt" -version = "0.4.6" +version = "0.4.7" dependencies = [ "clap", "colored", diff --git a/Cargo.toml b/Cargo.toml index 5a25cf4..ef6ed0b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tex-fmt" -version = "0.4.6" +version = "0.4.7" authors = ["William George Underwood"] license = "MIT" repository = "https://github.com/WGUNDERWOOD/tex-fmt" @@ -11,7 +11,7 @@ categories = ["command-line-utilities", "development-tools"] exclude = ["tests/*", "extra/*", "*.nix", ".github/*"] [dependencies] -clap = { version = "4.5.20", features = ["derive"] } +clap = { version = "4.5.21", features = ["derive"] } colored = "2.1.0" env_logger = "0.11.5" lazy_static = "1.5.0" diff --git a/NEWS.md b/NEWS.md index 24e23aa..d61798b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,13 @@ +# v0.4.7 + +- Fix bug with `--stdin` adding newlines at EOF +- Fix logic for ignoring verbatim environments +- Ensure sectioning commands begin on new lines +- Various performance improvements +- Add NEWS.md for release notes +- Ensure all test files successfully compile to PDFs +- Better documentation of options in README.md + # v0.4.6 - Added ``--wrap`` flag to choose line length for wrapping diff --git a/README.md b/README.md index c2c3d0e..9f7a930 100644 --- a/README.md +++ b/README.md @@ -179,11 +179,11 @@ and `minted` are automatically skipped. ## Performance When formatting all of the test cases, -tex-fmt is over two thousand times faster than latexindent. +tex-fmt is over a thousand times faster than latexindent. | **Files** | **Lines** | **Size** | **tex-fmt** | **latexindent** | **latexindent -m** | | --- | --- | --- | --- | --- | --- | -| 49 | 94k | 3.5M | **0.047s** | 106s [x2208] | 127s [x2661] | +| 51 | 94k | 3.5M | **0.055s** | 106s [x1927] | 127s [x2309] | ## Contribution diff --git a/flake.lock b/flake.lock index 14c1daa..4108758 100644 --- a/flake.lock +++ b/flake.lock @@ -5,11 +5,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1726560853, - "narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=", + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", - "rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1730137625, - "narHash": "sha256-9z8oOgFZiaguj+bbi3k4QhAD6JabWrnv7fscC/mt0KE=", + "lastModified": 1731386116, + "narHash": "sha256-lKA770aUmjPHdTaJWnP3yQ9OI1TigenUqVC3wweqZuI=", "owner": "nixos", "repo": "nixpkgs", - "rev": "64b80bfb316b57cdb8919a9110ef63393d74382a", + "rev": "689fed12a013f56d4c4d3f612489634267d86529", "type": "github" }, "original": { diff --git a/notes.org b/notes.org index 3bf6124..3a563ea 100644 --- a/notes.org +++ b/notes.org @@ -2,19 +2,25 @@ * Tasks ** TODO Skipping a line seems to break linums * Release process +** Update release notes +*** git log --oneline --no-merges vX.X.X main +*** Write in NEWS.md ** Update version number in Cargo.toml ** Update Nix flake and lock *** Check for new NixOS version (nixos-XX.XX) *** just nix ** Update Rust version *** just upgrade +** Run tests +*** just +*** just perf +*** Update performance results in README.md ** Push to GitHub and check tests pass ** Create a git tag *** git tag vX.X.X *** git push --tags ** Publish to crates.io with cargo publish ** Publish GitHub release with notes -*** git log --oneline --no-merges vX.X.X main *** GitHub binaries published automatically with actions ** Publish in nixpkgs *** Check out master branch of nixpkgs fork