Remove #[quick_sysfail] in favor of #[sysfail(Ignore)]
Remove support for Option<()>. Consider replacing option? by option.ok(())?
Replace the log = "foo" syntax by Log<ErrorType, Foo>.
Automatically add return type to system. This means that you should remove
the return type from your #[sysfail] systems.
Failure is now a trait on the error type returned by the #[sysfail]
system, rather than the whole return type.
Failure now has an associated type: Param. It allows accessing arbitrary
system parameters in the error handling code.
Renamed FailureMode to Dedup.
Now bevy_mod_sysfail directly depends on bevy, rather than its subcrates
Added the full features, enabled by default. Disabling removes the bevy
dependency, to only depend on bevy_ecs, but at the cost of removing
the LogFailure definition.
Added the EmitFailure, which sends Errs as bevy Events.
Added LogSimply, a variant of Log that works without Res<Time>
Added example showing how to extend with your own behavior the Failure trait.
Added the system name to the log message's "target" field (by default, this is
the bit of text before the "ERROR" colored text)
Added #[exclusive_sysfail], works like #[sysfail] but is fully supported
by exclusive systems. It only supports Failures where Param = ()
Fixes
Emit
)#[exclusive_sysfail]
)#[sysfail(Emit<AppExit>)]
)Changelog
#[quick_sysfail]
in favor of#[sysfail(Ignore)]
Option<()>
. Consider replacingoption?
byoption.ok(())?
log = "foo"
syntax byLog<ErrorType, Foo>
.#[sysfail]
systems.Failure
is now a trait on the error type returned by the#[sysfail]
system, rather than the whole return type.Failure
now has an associated type:Param
. It allows accessing arbitrary system parameters in the error handling code.FailureMode
toDedup
.bevy_mod_sysfail
directly depends onbevy
, rather than its subcratesfull
features, enabled by default. Disabling removes thebevy
dependency, to only depend onbevy_ecs
, but at the cost of removing theLog
Failure
definition.Emit
Failure
, which sendsErr
s as bevyEvent
s.LogSimply
, a variant ofLog
that works withoutRes<Time>
Failure
trait.#[exclusive_sysfail]
, works like#[sysfail]
but is fully supported by exclusive systems. It only supportsFailure
s whereParam = ()