josecelano / cargo-pretty-test

A Rust command that prettifies the ugly `cargo test` output into a beautiful one.
https://users.rust-lang.org/t/cargo-test-output-with-indentation/100149
135 stars 1 forks source link

Why `regex-lite` instead of `regex`? #17

Closed josecelano closed 1 year ago

josecelano commented 1 year ago

Relates to: https://www.reddit.com/r/rust/comments/16rw51t/comment/k25yuc1/?utm_source=share&utm_medium=web2x&context=3

Hi @zjp-CN, @burntsushi is asking why we use regex-lite instead of regex.

zjp-CN commented 1 year ago

I like that regex-lite has zero dependency and compiles fast. And it doesn't matter if it will take a little more time in parsing than regex, especially the given inputs are usually short (I didn't benchmark it though).