-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Removed all deprecated methods - Replace the `log = "foo"` syntax by `Log<ErrorType, Foo>`. - Remove `#[quick_sysfail]` in favor of `#[sysfail(Ignore)]` - Remove support for `Option`. - 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. - 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 `Log` `Failure` definition. - Renamed `FailureMode` to `Dedup`. - Added the `Emit` `Failure`, which sends `Err`s as bevy `Event`s. - Added `LogSimply`, a variant of `Log` that works without `Res<Time>` - Added example showing how to extend with your own behavior the `Failure` trait.
- Loading branch information
Showing
17 changed files
with
579 additions
and
454 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
CLIPPY_ARGS=-- -D clippy::all -D clippy::pedantic -D clippy::nursery \ | ||
-D missing_docs \ | ||
-D clippy::undocumented_unsafe_blocks \ | ||
-W clippy::needless-pass-by-value \ | ||
-A clippy::missing_const_for_fn \ | ||
-A clippy::module_name_repetitions \ | ||
-A clippy::redundant_pub_crate | ||
|
||
check: | ||
cargo check --examples | ||
run: | ||
cargo run --example custom_failure | ||
pre-hook: | ||
RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps | ||
cargo clippy --workspace $(CLIPPY_ARGS) | ||
cargo fmt --all -- --check | ||
cargo clippy --workspace --no-default-features | ||
cargo test -j12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.