Skip to content

Releases: sharnoff/derive-syn-parse

v0.2.0

30 Mar 15:22
a1f6dac
Compare
Choose a tag to compare

Bumps syn to v2.

Other changes:

  • Fix expr parsing for #[call(...)]
  • Add "full" feature to enable syn's "full" feature (allows expr parsing, notably closures)

Thanks to @racharron for the help!

v0.1.5

20 Mar 23:33
6cf897c
Compare
Choose a tag to compare

Adds #[prefix] and #[postfix] field attributes - and improves the crate documentation :)

v0.1.4

04 Mar 02:47
49e9a4d
Compare
Choose a tag to compare

Adds conditional parsing to struct fields - both through the existing #[peek] and #[peek_with] attributes, as well as the new #[parse_if] attribute. A new section in the README gives a brief example.

To briefly elaborate on the motivation here:

A pattern that tends to come up in complex Parse implementations is having optional fields. Most of these conditions boil down to either (1) peeking, or (2) some expression based on what's already been parsed. I've already found that I wanted to allow this behavior in my personal use, so it's now a feature!

v0.1.3

08 Dec 18:32
a74494a
Compare
Choose a tag to compare

Adds enum parsing with peeking (there's a new section in the README 😄), and general tidy-up. Notably changing the generated code to use ::syn everywhere instead of syn; the former is always guaranteed to point to the crate.

v0.1.2

11 Oct 22:59
25aedf7
Compare
Choose a tag to compare

After a couple of false starts, this crate is being released into the wild. This is the first "official" version. link to the reddit post