Skip to content

Releases: danielparks/matchgen

Release 0.3.0

18 Jun 07:03
v0.3.0
116eb15
Compare
Choose a tag to compare

Once again, this release was cut to ensure generated code passes lints.

Breaking changes

  • Changed TreeMatcher::new() to accept std::fmt::Display instead of AsRef<str>, since we convert to a String with to_string() regardless. This is very unlikely to break anything.
  • Changed TreeNode::render_iter() to accept std::fmt::Display instead of AsRef<str>, since we use the parameters in format strings. This is very unlikely to break anything.

Changes

Release 0.2.0

27 May 04:35
v0.2.0
f7895a2
Compare
Choose a tag to compare

This release is primarily aimed at ensuring generated code passes lints.

Breaking changes

  • Renamed TreeMatcher::set_input_type() to TreeMatcher::input_type().

Changes

  • Made sure generated functions pass Clippy’s pedantic lint group:
    • Changed to add #[must_use] to generated functions by default.
    • Added trivial documentation about what errors are returned by a few
      functions.
    • Disabled clippy::single_match_else lint within generated match
      functions, since we sometimes generate match statements with a single arm.
    • Disabled clippy::too_many_lines lint within generated match
      functions, since such functions can be extremely long.
  • Added support for setting documentation on generated functions. This also adds
    docs to the stub function used in disabled Clippy mode which allows it to be
    used with #![warn(missing_docs)].

Release 0.1.0

27 Feb 21:55
v0.1.0
85f75b5
Compare
Choose a tag to compare

Features

  • Initial release.