Ed's Home Pagehttps://epage.github.ioProgramming and other misctoml v0.9https://epage.github.io/blog/2025/07/toml-09/toml v0.9 is a near-complete rewrite with dramatic performance improvements, no_std support, and many other improvements.

This is where I've disappeared to over the last 3 months, trying to wrap up a years-old experiment that has been "almost done" for these last 3 months, with use case after use case building up encouraging me to finish this up rather than my regularly scheduled Cargo work.

]]>
https://epage.github.io/blog/2025/07/toml-09/Tue, 08 Jul 2025 11:50:30 -0500
Are we GUI (build) yet?https://epage.github.io/blog/2023/08/are-we-gui-build-yet/"Are we GUI yet?" is a topic that frequently comes up within the Rust community. There are a lot of hard problems to solve, from the complexity of state management to something as easy to overlook as smooth resize. One problem I don't see discussed as often is a development and release pipeline that can handle the unique circumstances of each target platform. I met up with a bunch of application framework developers the day after RustNL to explore this problem and what can be done for it.

]]>
https://epage.github.io/blog/2023/08/are-we-gui-build-yet/Thu, 17 Aug 2023 17:32:22 +0000
Winnow 0.5: The Fastest Rust Parser-Combinator Library?https://epage.github.io/blog/2023/07/winnow-0-5-the-fastest-rust-parser-combinator-library/Winnow is a parser-combinator library for Rust and 0.5 is now out. I last wrote about the 0.3.0 release, so I'll be covering all of the releases since then.

]]>
https://epage.github.io/blog/2023/07/winnow-0-5-the-fastest-rust-parser-combinator-library/Thu, 13 Jul 2023 20:18:49 +0000
Iterating on Testing in Rusthttps://epage.github.io/blog/2023/06/iterating-on-test/With the release of rust 1.70, there was some surprise and frustration that unstable test features now require nightly, like all other unstable features in Rust. One of the features most affected is --format json which has been in limbo for 5 years. This drew attention to a feeling I've had: the testing story in Rust has been stagnating. I've been gathering my thoughts on this for the last 3 months and recently had some downtime between tasks so I've started to look further into this.

The tl;dr is to think of this as finding right abstractions to stabilize parts of cargo_test_support and cargo nextest.

]]>
https://epage.github.io/blog/2023/06/iterating-on-test/Fri, 09 Jun 2023 19:41:08 +0000
clap v4.2, a Rust CLI argument parserhttps://epage.github.io/blog/2023/03/clap-v4-2/clap v4.2.0 is now out with styling of help descriptions! See the changelog for more details.

]]>
https://epage.github.io/blog/2023/03/clap-v4-2/Tue, 28 Mar 2023 08:06:08 +0000
anstream: simplifying terminal stylinghttps://epage.github.io/blog/2023/03/anstream-simplifying-terminal-styling/anstream is a new take on terminal styling for Rust and will be used in the upcoming clap 4.2 release.

Quick links

]]>
https://epage.github.io/blog/2023/03/anstream-simplifying-terminal-styling/Thu, 16 Mar 2023 23:08:16 +0000
winnow = toml_edit + combine + nomhttps://epage.github.io/blog/2023/02/winnow-toml-edit-combine-nom/It is finally time to take the wraps off where I disappeared to over the last 6 months. Besides the family leave, I've mostly been chalking this up to working on toml_edit but one particular building block took up most of that time.

I would like to introduce you to winnow, a fork of the venerable nom parser combinator library. For those that want to skip all the details, you can checkout the documentation and the migration guide and changelog.

I would link to the docs but docs.rs seems to be backed up this morning.

]]>
https://epage.github.io/blog/2023/02/winnow-toml-edit-combine-nom/Wed, 22 Feb 2023 18:35:24 +0000
`toml` vs `toml_edit`https://epage.github.io/blog/2023/01/toml-vs-toml-edit/toml v0.6 is now out with a new parser and renderer, addressing several existing issues and ensuring compliance with the TOML 1.0 compliance tests. This was done by leveraging the toml_edit crate.

]]>
https://epage.github.io/blog/2023/01/toml-vs-toml-edit/Mon, 23 Jan 2023 20:09:26 +0000
clap v4.1, a Rust CLI argument parserhttps://epage.github.io/blog/2023/01/clap-v4-1/clap v4.1.0 is now out! See the changelog for more details.

]]>
https://epage.github.io/blog/2023/01/clap-v4-1/Fri, 13 Jan 2023 15:18:37 +0000
clap 4.0, a Rust CLI argument parserhttps://epage.github.io/blog/2022/09/clap4/We are excited to (pre-) announce clap 4.0! This release focuses on removing deprecated APIs and finishing what we couldn't do without breaking changes. For more details see the CHANGELOG (including the migration guide) and the documentation.

This release builds on work done in the 3.x releases and can be worth catching up on them:

To put all of this work into numbers:

Baseline2.34.03.0.03.2.214.0.0-rc.14.0.0
Builder API Surface174245282165 [1] [2]166
Lines of Code613,46217,30824,04420,653 [1] [3]20,839
Code size218.2 KiB487.0 KiB609.3 KiB605.5 KiB544.3 KiB [1] [4]542.6 KiB
Runtime7.529 us14.544 us14.657 us8.2478 us [5]7.6455 us

(see Methodology for more details)

Aside: Yes, those clap v2 -> v3 numbers are not good.

For Builder API Surface, it is understandable when you consider we mostly didn't remove functionality in v3 but deprecated it, removing it in v4.

Lines of Code is mostly accounted for with the merge of structopt into clap as clap_derive. We continued to have significant growth after that as we continued to develop replacement features for functionality in clap. These more general solutions take up more lines though not more code size.

For code size and runtime, one factor is that things fell through the cracks during clap v3's development. clap's development went dark for an extended period of time and went through several maintainers. This isn't to say one of the maintainers is at fault but that things get lost in hand offs. Towards the end, we double-downed on just getting out what we had and hadn't looked to see how we compared to v2.

For code size, it looks like it was a lot of small changes that added up, like changing a VecMap to a BTreeMap.

For runtime, it seems to mostly be a single feature that caused it which was removed in v4 [5].

Our plan is to give about a week window between the release-candidate and the official release to allow for collecting and processing feedback.

]]>
https://epage.github.io/blog/2022/09/clap4/Tue, 20 Sep 2022 21:30:48 +0000
Clap 3.2: Last Call Before 4.0https://epage.github.io/blog/2022/06/clap-32-last-call-before-40/With excitement and trepidation, I'm announcing the release of clap 3.2.

With clap 3.1, we discussed the need for a more open, extensible API and clap 3.2 represents one step in that direction. With two new builder API concepts, we are able to deprecate the following concepts:

  • Arg::allow_invalid_utf8
  • Arg::validator, Arg::validator_os
  • Arg::forbid_empty_values
  • Arg::possible_values
  • Arg::max_occurrences
  • Arg::multiple_occurrences
  • Command::args_override_self
  • AppSettings::NoAutoVersion
  • AppSettings::NoHelpVersion
]]>
https://epage.github.io/blog/2022/06/clap-32-last-call-before-40/Mon, 13 Jun 2022 15:21:28 +0000
clap 3.1: A step towards 4.0https://epage.github.io/blog/2022/02/clap-31-a-step-towards-40/clap 3.1 is here! Clap is a CLI argument parser for Rust and the v3.1 releases focuses on API cleanup slated for clap 4.0. See the CHANGELOG for details.

clap 3.0 was in development for 4 years and though we saw comparisons to Half-life 3 in response to the release, we also saw people who cited the long gaps between breaking releases as a motivation for using it. For clap to stay relevant we feel we need to avoid the stagnation of long release cycles while keeping things smooth for the users where clap is already "good enough". The v3.1 release is a major step in trying to strike that balance.

]]>
https://epage.github.io/blog/2022/02/clap-31-a-step-towards-40/Wed, 16 Feb 2022 18:15:04 +0000
Minor Semver Issuehttps://epage.github.io/blog/2022/02/minor-semver-issue/Is adding a function in a patch release a violation of semver? Technically, yes but technical answers aren't always the right answers.

This came up in a recent discussion focused on the relevant importance of setting the minimum patch version for a dependency. Some crates go so far as to never bump their minor version, like serde.

]]>
https://epage.github.io/blog/2022/02/minor-semver-issue/Fri, 04 Feb 2022 15:37:29 +0000
clap 3.0, a Rust CLI argument parserhttps://epage.github.io/blog/2021/12/clap3/I figured a great way to close out the year 2021 is to wrap up the long awaited clap 3.0 release!

Some major milestones along the way:

Thanks to:

  • kbknapp, pksunkara, dpc, killercup, spacekookie, yosh, ldm0, and any other maintainers or contributors along the way
  • Our users, especially those providing feedback on beta and release-candidates
  • Embark, Sentry, repi, and many other sponsors
  • My employer, Futurewei, for giving me the opportunity to help wrap up clap 3.0
]]>
https://epage.github.io/blog/2021/12/clap3/Thu, 30 Dec 2021 09:00:30 -0500
A Journey in Optimizing `toml_edit`https://epage.github.io/blog/2021/09/optimizing-toml-edit/tl;dr

toml_edit is a format preserving TOML crate, allowing users to modify .toml files.

Before:

cargo init Cargo.tomlcargo's Cargo.toml
toml_edit8.7us271us
toml_edit::easy20.7us634us

After:

cargo init Cargo.tomlcargo's Cargo.toml
toml_edit4.0us149us
toml_edit::easy5.0us179us

Target:

cargo init Cargo.tomlcargo's Cargo.toml
toml-rs4.7us121us
]]>
https://epage.github.io/blog/2021/09/optimizing-toml-edit/Thu, 30 Sep 2021 09:00:30 -0500
Learnability of Rusthttps://epage.github.io/blog/2021/09/learning-rust/tl;dr

As part of improving the learnability of Rust, I propose:

  • The .crs file subset of cargo-script be brought into cargo
  • We support converting .crs to full cargo projects with cargo init --from <script>.crs
  • We collaborate on an ergonomics-focused standard-library-alternative, like eztd
]]>
https://epage.github.io/blog/2021/09/learning-rust/Wed, 15 Sep 2021 09:00:30 -0500
Experiments with `pushgen`https://epage.github.io/blog/2021/07/pushgen-experiment/Recently, there was an announcement for pushgen, a port of C++ transrangers to Rust with a follow up post from the author of transrangers.

Seeing the performance numbers, I was curious what the experience was like with the different techniques compared in the followup and how the performance worked out in a real world application.

]]>
https://epage.github.io/blog/2021/07/pushgen-experiment/Wed, 07 Jul 2021 09:00:30 -0500
Liquid v0.20https://epage.github.io/blog/2020/03/liquid-v20/liquid v0.20 resolves several planned breaking changes we've been holding off on. This doesn't make us ready for 1.0 yet but this closes the gap significantly.

liquid-rust is a rust re-implementation of the liquid template engine made popular by the jekyll static site generator.

]]>
https://epage.github.io/blog/2020/03/liquid-v20/Mon, 16 Mar 2020 09:00:30 -0500
Reflecting on Errors in 2019https://epage.github.io/blog/2019/11/reflecting-on-errors-in-2019/With people reflecting on Rust in 2019 and what they want to see in 2020, error handling has come up again:

]]>
https://epage.github.io/blog/2019/11/reflecting-on-errors-in-2019/Tue, 26 Nov 2019 19:09:27 +0000
Speeding Up Rust Builds: Code-Gen Editionhttps://epage.github.io/blog/2019/10/speeding-up-rust-builds-code-gen-edition/tl;dr Cache your code-gen results with the codegenrs crate.

]]>
https://epage.github.io/blog/2019/10/speeding-up-rust-builds-code-gen-edition/Thu, 10 Oct 2019 03:30:17 +0000
RustFest Parist Trip Reporthttps://epage.github.io/blog/2018/06/rustfest-2018/I've been involved in the Rust community for about a year and a half now. What attracted me to Rust is that is looks like the first viable replacement for C++. It offers similar (actually better) protections than GCed languages and the full language is available in any environment, including exception-like error handling in the Windows kernel.

]]>
https://epage.github.io/blog/2018/06/rustfest-2018/Mon, 04 Jun 2018 09:00:30 -0500
PyCon 2018 Trip Reporthttps://epage.github.io/blog/2018/05/pycon-2018/I went to with a coworker to PyCon this year (videos).

]]>
https://epage.github.io/blog/2018/05/pycon-2018/Fri, 18 May 2018 09:00:30 -0500
Redefining Failurehttps://epage.github.io/blog/2018/03/redefining-failure/I recently got the chance to redo the error handling in two different crates I help maintain. For liquid, I decided to write the error types by hand rather than use something like error-chain. In the case of assert_cli, I decided to finally give failure a try.

]]>
https://epage.github.io/blog/2018/03/redefining-failure/Fri, 09 Mar 2018 03:08:23 +0000
Crate Management for #rust2018https://epage.github.io/blog/2018/01/crate-management/Context: Call for Community Posts and other posts

]]>
https://epage.github.io/blog/2018/01/crate-management/Fri, 26 Jan 2018 04:20:00 +0000
Blog Transitionhttps://epage.github.io/blog/2018/01/blog-transition/I'll post relevant items from my old blog. If you'd like to see all the old posts, go to eopage.blogspot.com

]]>
https://epage.github.io/blog/2018/01/blog-transition/Wed, 17 Jan 2018 09:00:30 -0500
Off To A Shaky Start - LASIK and Nystagmushttps://epage.github.io/blog/2017/01/shaky-start/https://epage.github.io/blog/2017/01/shaky-start/Mon, 30 Jan 2017 17:23:30 -0500The Lone Star Hiking Trailhttps://epage.github.io/blog/2014/12/lone-star-hiking/https://epage.github.io/blog/2014/12/lone-star-hiking/Wed, 03 Dec 2014 22:27:30 -0500On Top of Utah - Hiking to Kings Peakhttps://epage.github.io/blog/2013/08/kings-peak/https://epage.github.io/blog/2013/08/kings-peak/Sat, 17 Aug 2013 14:46:30 -0500