> and didn't feel like adding an extra crate to my Cargo.toml
Why not? cargo makes it extremely easy to add new crates. The hardest part is figuring out what dependency you want, but once you know what it is, adding it is really easy.
Totally agree, cargo makes it easy. Honestly it’s just that the level of laziness is so high when I’m programming on something personal after work that even having to switch to chrome to check a version number on crates.io will be avoided.
You might be interested to know that cargo can do that for you
$ cargo search regex
regex = "1.1.0" # An implementation of regular expressions for Rust. This implementation uses finite automata and gua…
regex-automata = "0.1.5" # Automata construction and matching using regular expressions.
…
Why not? cargo makes it extremely easy to add new crates. The hardest part is figuring out what dependency you want, but once you know what it is, adding it is really easy.