Releases: danielparks/matchgen
Releases · danielparks/matchgen
Release 0.3.0
Once again, this release was cut to ensure generated code passes lints.
Breaking changes
- Changed
TreeMatcher::new()
to acceptstd::fmt::Display
instead ofAsRef<str>
, since we convert to aString
withto_string()
regardless. This is very unlikely to break anything. - Changed
TreeNode::render_iter()
to acceptstd::fmt::Display
instead ofAsRef<str>
, since we use the parameters in format strings. This is very unlikely to break anything.
Changes
- Switched code to disable Clippy to use
cfg(clippy)
instead ofcfg(feature = "cargo-clippy")
. The feature has been deprecated.
Release 0.2.0
This release is primarily aimed at ensuring generated code passes lints.
Breaking changes
- Renamed
TreeMatcher::set_input_type()
toTreeMatcher::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 generatematch
statements with a single arm. - Disabled
clippy::too_many_lines
lint within generated match
functions, since such functions can be extremely long.
- Changed to add
- 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
Features
- Initial release.