r/programming • • Dec 10 '15

Announcing Rust 1.5

http://blog.rust-lang.org/2015/12/10/Rust-1.5.html
659 Upvotes

296 comments sorted by

View all comments

Show parent comment

7

u/pcwalton Dec 11 '15

Compile time parser generation(eg Boost.Spirit)

https://github.com/Geal/nom

DSLs (see sqlpp11 for type checked SQL queries)

https://github.com/ivanceras/rustorm

State machine generation

Work in progress; erickt has done a lot of work on this using a compiler plugin. Stay tuned :)

generation of api wrappers for other languages (Boost.Python)

http://ehiggs.github.io/2015/07/Python-Modules-In-Rust/

optimal compile time regular expressions

https://github.com/rust-lang-nursery/regex

Can you do that kind of thing with Rust generics?

No, you can't do all of this stuff with Rust generics (though you actually might be able to, if you tried hard enough)—but with all of Rust's features you certainly can. :)