Skip to content

Commit f2394e4

Browse files
committed
update for bevy 0.14.0-rc.3
1 parent 5392938 commit f2394e4

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "bevy_http_client"
33
description = "A simple HTTP client for Bevy"
4-
version = "0.5.2"
4+
version = "0.6.0"
55
edition = "2021"
66
readme = "README.md"
77
repository = "https://github.com/foxzool/bevy_http_client"
@@ -12,7 +12,7 @@ keywords = ["bevy", "http", "plugin", "wasm"]
1212
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1313

1414
[dependencies]
15-
bevy = { version = "0.13.0", default-features = false, features = ["multi-threaded"] }
15+
bevy = { version = "0.14.0-rc.3", default-features = false, features = ["multi_threaded"] }
1616
crossbeam-channel = "0.5.11"
1717
ehttp = { version = "0.5.0", features = ["native-async", "json"] }
1818
serde = { version = "1.0", features = ["derive"] }

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ fn handle_response(mut ev_response: EventReader<TypedResponse<IpInfo>>) {
5050

5151
| bevy | bevy_http_client |
5252
|------|------------------|
53+
| 0.14 | 0.6 |
5354
| 0.13 | 0.4, 0,5 |
5455
| 0.12 | 0.3 |
5556
| 0.11 | 0.1 |

examples/ipinfo.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fn main() {
99
Update,
1010
send_request.run_if(on_timer(std::time::Duration::from_secs(1))),
1111
)
12-
.run()
12+
.run();
1313
}
1414

1515
fn send_request(mut ev_request: EventWriter<HttpRequest>) {

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![doc = include_str!("../README.md")]
22

3-
use bevy::ecs::system::CommandQueue;
3+
use bevy::ecs::world::CommandQueue;
44
use bevy::prelude::*;
55
use bevy::tasks::IoTaskPool;
66
use crossbeam_channel::Receiver;
@@ -27,7 +27,7 @@ pub struct HttpClientPlugin;
2727

2828
impl Plugin for HttpClientPlugin {
2929
fn build(&self, app: &mut App) {
30-
if !app.world.contains_resource::<HttpClientSetting>() {
30+
if !app.world().contains_resource::<HttpClientSetting>() {
3131
app.init_resource::<HttpClientSetting>();
3232
}
3333
app.add_event::<HttpRequest>();

src/typed.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::marker::PhantomData;
22

33
use bevy::app::{App, PreUpdate};
4-
use bevy::ecs::system::CommandQueue;
4+
use bevy::ecs::world::CommandQueue;
55
use bevy::hierarchy::DespawnRecursiveExt;
66
use bevy::prelude::{Commands, Deref, Entity, Event, EventReader, Events, ResMut, World};
77
use bevy::tasks::IoTaskPool;

0 commit comments

Comments
 (0)