parse-generics

This repository contains several pieces related to the proposed RFC #1583:

parse-generics-poc - a proof-of-concept implementation of the RFC.

parse-generics-shim - a "polyfill" shim containing an implementation of a subset of the RFC in stable macro_rules!.

parse-macros - a crate containing higher-level parsing macros built on top of parse-generics-shim.

A very basic example of using parse-macros in a crate, and then using that crate, is provided by the enum-as-str and enum-as-str-test crates. Further examples can be found by looking at the parse-macro crate's tests directory. Specifically:

Supporting RFC #1583

The core team currently feels uneasy about accepting RFC #1583, due to its complexity and the lack of demonstrable support for being able to correctly process generics and where clauses in macros.

If you would like to see it accepted, using the parse-generics-shim crate (and supporting its use-parse-generics-poc feature) will help demonstrate the desire for these macros to be accepted into the compiler.