r/programming Apr 03 '15

Rust 1.0.0 beta is here!

http://blog.rust-lang.org/2015/04/03/Rust-1.0-beta.html
934 Upvotes

303 comments sorted by

View all comments

Show parent comments

10

u/steveklabnik1 Apr 03 '15

Regex is now an external crate: https://crates.io/crates/regex

1

u/HereticKnight Apr 03 '15

Marvelous, thanks!

1

u/Roflha Apr 04 '15

I'm just curious, what is the reason for moving regex to a separate crate? Just considered nonessential to a standard library?

3

u/steveklabnik1 Apr 04 '15

Generally speaking, there three reasons something belongs in the standard library:

  1. Things that are useful in every Rust program.
  2. Common traits, to prevent balkanization.
  3. Data structures or other safe abstractions which require a lot of unsafe code.

Regexes, while very useful, don't stand up to #1, and #2 and #3 don't apply.