All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Fix tests and prepare for Rust 2021 Edition.
tests/combinators.rs
does needJudge
to be inscope- Rust 2021 Edition warnings about
panic!(...)
not called with a string literal. Replaced them withpanic!("{}", ...)
.
tear!
now uses the From trait, and intra-doc links are no longer experimental.
tear!
now uses theconvert::From
trait to automatically convert types like?
twist!
no longer requires traits to be in scoperet!
is now documented
Removed rip!
and fear!
. Items marked as (dev)
are no longer considered public API.
terror! { $e }
now correctly converts its argument.
From
becomes$crate::From
. This makes the macro work even if you do not use the Rust prelude.Judge::resume_or_else
is now marked(dev)
.
- Legacy
rip!
andfear!
macros (I don't even have users anyway). tear::prelude
no longer exports the Judge and Return symbols.Judge::ret_error
as it was supposed to be(dev)
Make terror!
work for booleans and add the next_if!
and last_if!
macros.
- If you were returning
()
interror!
in a function returningOption<T>
, returnMaru
instead. - (experimental)
Try
→Judge
implementations are now manual. Use theimpl_judge_from_try!
macro.
- Implemented
Judge
onbool
. - Added
Maru
that's similar to()
andNoneError
- Added
next_if!
andlast_if!
- Use
Maru
instead of()
ingut
andJudge
forOption
Implemented typed loop control with twist!
. Make terror!
fully compatible with ?
.
- Renamed
Return
methodvalret
tointo_valret
- Implementation of
twist!
withLooping
type andanybox!
- Dirty utility macros
last!
,next!
,resume!
tear::extra
For importing everything in one fell swoop- Integrate with the
Try
trait under the "experimental" feature - enum accessors for
ValRet
andMoral
- Maintenance badge on crates.io
gut
for use withterror!
in functions returningOption<T>
- Ensure basic no-std
- Add
combinators
feature flag to convert toEither
anything that can convert toMoral
tear_if!
lets you use anything in its body, instead of just expressions.- Make
terror!
the preferred macro overrip!
terror!
andfear!
can now take both argument formsterror!
now uses theFrom
trait, just like?
- Rewrite README
or_else
andmap_ret
methods onValRet
. Useresult().or_else()
orresult().map_err()
instead
This release was to test if I could overwrite the name squatting on docs.rs. Turns out you can, but the squatter is still in the list of owners and authors.
- Licenses
Initial release