will this crate ever be in the standard library? #1077
-
With the recent absorption of once_cell into std, do you think there is a path forward for regex eventually becoming part of the rust standard library? If not, why, especially considering the fact that most languages include some sort of regex facility built into the language? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I don't think My little anecdote for this is that, once upon a time, the After I submitted the PR to add Still, that was then and this is now. Perhaps now it's "mature" enough that it could be moved into
I feel like I'm forgetting something, but I think that probably covers it. One possible alternative is to put something like |
Beta Was this translation helpful? Give feedback.
I don't think
regex
will ever be part ofstd
. At the very least, I would oppose it. Given I'm onlibs-api
and the maintainer ofregex
, that probably means that, as a matter of practice, it has no path tostd
. I could have my mind changed (such things are known to happen), but I've held this position for several years now.My little anecdote for this is that, once upon a time, the
regex
crate lived inrust-lang/rust
. This was before Rust 1.0, and while the crate wasn't actually part ofstd
, theregex
crate (among other crates, such asrand
) was shipped with Rust. This also pre-dated Cargo, so the Rust distribution tried to strike a balance between offering a small standard library but with…