Skip to content

Commit

Permalink
update for bevy 0.14.0-rc.3
Browse files Browse the repository at this point in the history
  • Loading branch information
foxzool committed Jun 25, 2024
1 parent 5392938 commit f2394e4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"] }
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ fn handle_response(mut ev_response: EventReader<TypedResponse<IpInfo>>) {

| bevy | bevy_http_client |
|------|------------------|
| 0.14 | 0.6 |
| 0.13 | 0.4, 0,5 |
| 0.12 | 0.3 |
| 0.11 | 0.1 |
Expand Down
2 changes: 1 addition & 1 deletion examples/ipinfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<HttpRequest>) {
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -27,7 +27,7 @@ pub struct HttpClientPlugin;

impl Plugin for HttpClientPlugin {
fn build(&self, app: &mut App) {
if !app.world.contains_resource::<HttpClientSetting>() {
if !app.world().contains_resource::<HttpClientSetting>() {
app.init_resource::<HttpClientSetting>();
}
app.add_event::<HttpRequest>();
Expand Down
2 changes: 1 addition & 1 deletion src/typed.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit f2394e4

Please sign in to comment.