1 comment

[ 4.9 ms ] story [ 14.5 ms ] thread
I was working on updating my personal dev blog which used to be on Jekyll and wanted to try out Gatsby for increased flexibility in making my own things. Along the way I realised that the format for Markdown posts in Jekyll blogs is slightly different from the one used in Gatsby (Jekyll relies on a specific filename format for slugs and dates, whereas Gatbsy reads this data from frontmatter blocks in the markdown header).

I figured it would be a good occasion to write a small Rust project (I'm very new to Rust) so I made a tool to batch update my posts, with loads of options to choose exactly how to migrate the files. Pretty impressed with the speed of Rust as it processes about 30 blog posts instantly (despite having a regex that scans the entire file), I'm almost sure if I made a node.js tools it would have been slower.

It's published on cargo and can be installed from there, I've also been trying to use Trust (https://github.com/japaric/trust) to automatically generate binaries in CI for people to install, although the deployment isn't working yet.