Skip to content

Commit

Permalink
feat: bevy 0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
simbleau committed Feb 29, 2024
1 parent a8378ae commit a942592
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ This changelog follows the patterns described here: <https://keepachangelog.com/

Subheadings to categorize changes are `added, changed, deprecated, removed, fixed, security`.

## 1.5.0

### changed

- To Bevy 0.13


## 1.4.2

### fixed
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
web-time = "0.2"
web-time = "1.0"
thiserror = "1.0"
bevy-async-task = "1.3"
bevy-async-task = "1.4"
async-trait = "0.1"
bevy = { version = "0.12", default-features = false }
bevy = { version = "0.13", default-features = false }

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
getrandom = { version = "0.2" }
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ There is full API support for **wasm** and **native**. Android and iOS are untes

|bevy|bevy-key-rotation|
|---|---|
|0.12|1.4, main|
|0.13|1.5, main|
|0.12|1.4|
|0.11|1.3|
|<= 0.10|Unsupported|

Expand Down
3 changes: 1 addition & 2 deletions examples/error_handling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ pub fn main() {
})
.add_systems(
Update,
status_check
.run_if(state_exists_and_equals(KeystoreState::Conformant)),
status_check.run_if(in_state(KeystoreState::Conformant)),
)
.add_systems(
OnTransition {
Expand Down
4 changes: 2 additions & 2 deletions src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ impl Plugin for KeyRotationPlugin {

app.insert_resource(self.rotation_settings.clone())
.insert_resource(Keygen(self.auth_provider.clone()))
.add_state::<KeystoreState>()
.init_state::<KeystoreState>()
.add_event::<KeyRotationEvent>()
.add_systems(
Update,
(systems::rotate_tokens, systems::state_transfer)
.chain()
.run_if(state_exists_and_equals(KeystoreState::Conformant)),
.run_if(in_state(KeystoreState::Conformant)),
);
}
}

0 comments on commit a942592

Please sign in to comment.