Skip to content

Commit

Permalink
prepare update to 0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
TotalKrill committed Jun 29, 2024
1 parent 96e78d1 commit 3f69943
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ msgpack = ["rmp-serde"]

[dependencies]
anyhow = "1.0.79"
bevy = { version = "0.13.0", default-features = false, features = ["multi-threaded"]}
bevy_eventlistener = {version = "0.7", git = "https://github.com/aevyrie/bevy_eventlistener.git"}
bevy = { version = "0.14.0-rc.3", default-features = false, features = ["multi_threaded"]}
bevy_eventlistener = {version = "0.8.0-rc.0", git = "https://github.com/aevyrie/bevy_eventlistener.git"}
bytes = "=1.1.0"
futures-lite = "1.12.0"
reqwest = { version = "0.11", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use bevy::{log::LogPlugin, prelude::*, time::common_conditions::on_timer};
use bevy_mod_reqwest::*;

fn send_requests(mut client: BevyReqwest) {
let url = "https://www.boredapi.com/api/activity";
let url = "https://bored-api.appbrewery.com/random";
let req = client.get(url).build().unwrap();
// will run the callback, and remove the created entity after callback
client.send(
Expand Down
2 changes: 1 addition & 1 deletion examples/minimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use bevy::{log::LogPlugin, prelude::*, time::common_conditions::on_timer};
use bevy_mod_reqwest::*;

fn send_requests(mut client: BevyReqwest) {
let url = "https://www.boredapi.com/api/activity";
let url = "https://bored-api.appbrewery.com/random";
let req = client.get(url).build().unwrap();
// will run the callback, and remove the created entity after callback
client.send(
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl Default for ReqwestPlugin {
}
impl Plugin for ReqwestPlugin {
fn build(&self, app: &mut App) {
if !app.world.contains_resource::<ReqwestClient>() {
if !app.world().contains_resource::<ReqwestClient>() {
app.init_resource::<ReqwestClient>();
}
app.add_plugins(EventListenerPlugin::<ReqResponse>::default());
Expand Down

0 comments on commit 3f69943

Please sign in to comment.