diff --git a/Cargo.toml b/Cargo.toml index 11b3fef..195f60d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bevy_http_client" description = "A simple HTTP client for Bevy" -version = "0.5.2" +version = "0.6.0" edition = "2021" readme = "README.md" repository = "https://github.com/foxzool/bevy_http_client" @@ -12,7 +12,7 @@ keywords = ["bevy", "http", "plugin", "wasm"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bevy = { version = "0.13.0", default-features = false, features = ["multi-threaded"] } +bevy = { version = "0.14.0-rc.3", default-features = false, features = ["multi_threaded"] } crossbeam-channel = "0.5.11" ehttp = { version = "0.5.0", features = ["native-async", "json"] } serde = { version = "1.0", features = ["derive"] } diff --git a/README.md b/README.md index 5f6a4cd..b6f2f37 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ fn handle_response(mut ev_response: EventReader>) { | bevy | bevy_http_client | |------|------------------| +| 0.14 | 0.6 | | 0.13 | 0.4, 0,5 | | 0.12 | 0.3 | | 0.11 | 0.1 | diff --git a/examples/ipinfo.rs b/examples/ipinfo.rs index bc4ae77..22ea383 100644 --- a/examples/ipinfo.rs +++ b/examples/ipinfo.rs @@ -9,7 +9,7 @@ fn main() { Update, send_request.run_if(on_timer(std::time::Duration::from_secs(1))), ) - .run() + .run(); } fn send_request(mut ev_request: EventWriter) { diff --git a/src/lib.rs b/src/lib.rs index 87bbe55..dac16ac 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,6 @@ #![doc = include_str!("../README.md")] -use bevy::ecs::system::CommandQueue; +use bevy::ecs::world::CommandQueue; use bevy::prelude::*; use bevy::tasks::IoTaskPool; use crossbeam_channel::Receiver; @@ -27,7 +27,7 @@ pub struct HttpClientPlugin; impl Plugin for HttpClientPlugin { fn build(&self, app: &mut App) { - if !app.world.contains_resource::() { + if !app.world().contains_resource::() { app.init_resource::(); } app.add_event::(); diff --git a/src/typed.rs b/src/typed.rs index 2bc46bc..8382e73 100644 --- a/src/typed.rs +++ b/src/typed.rs @@ -1,7 +1,7 @@ use std::marker::PhantomData; use bevy::app::{App, PreUpdate}; -use bevy::ecs::system::CommandQueue; +use bevy::ecs::world::CommandQueue; use bevy::hierarchy::DespawnRecursiveExt; use bevy::prelude::{Commands, Deref, Entity, Event, EventReader, Events, ResMut, World}; use bevy::tasks::IoTaskPool;