Skip to content

Commit 717703e

Browse files
committed
Migrate to bevy 0.13
Signed-off-by: Michael X. Grey <[email protected]>
1 parent 3f6baa2 commit 717703e

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

Cargo.toml

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
[package]
22
name = "bevy_impulse"
3-
version = "0.0.1"
3+
version = "0.1.0"
44
edition = "2021"
55
authors = ["Grey <[email protected]>"]
66

77
[dependencies]
88
bevy_impulse_derive = { path = "macros" }
9-
bevy_ecs = "0.12"
10-
bevy_utils = "0.12"
11-
bevy_hierarchy = "0.12"
12-
bevy_derive = "0.12"
13-
bevy_app = "0.12"
9+
bevy_ecs = "0.13"
10+
bevy_utils = "0.13"
11+
bevy_hierarchy = "0.13"
12+
bevy_derive = "0.13"
13+
bevy_app = "0.13"
1414

1515
async-task = { version = "4.7.1", optional = true }
1616

1717
# TODO(@mxgrey) We could probably remove bevy_tasks when the single_threaded_async
1818
# feature is active, but we'd have to refactor some internal usage of
1919
# bevy_tasks::Task, so we're leaving it as a mandatory dependency for now.
20-
bevy_tasks = { version = "0.12", features = ["multi-threaded"] }
20+
bevy_tasks = { version = "0.13", features = ["multi-threaded"] }
2121

2222
arrayvec = "*"
2323
itertools = "*"
@@ -33,8 +33,8 @@ thiserror = "*"
3333
# the testing module for doctests, and doctests can only
3434
# make use of default features, so we're a bit stuck with
3535
# these for now.
36-
bevy_core = "0.12"
37-
bevy_time = "0.12"
36+
bevy_core = "0.13"
37+
bevy_time = "0.13"
3838

3939
[features]
4040
single_threaded_async = ["dep:async-task"]

src/service/discovery.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
use bevy_ecs::{
1919
prelude::{Entity, Query, With},
20-
query::{QueryEntityError, QueryIter, ReadOnlyWorldQuery},
20+
query::{QueryEntityError, QueryIter, QueryFilter},
2121
system::SystemParam,
2222
};
2323

@@ -36,7 +36,7 @@ where
3636
Request: 'static + Send + Sync,
3737
Response: 'static + Send + Sync,
3838
Streams: StreamFilter + 'static,
39-
Filter: ReadOnlyWorldQuery + 'static,
39+
Filter: QueryFilter + 'static,
4040
{
4141
query: Query<
4242
'w,
@@ -56,7 +56,7 @@ where
5656
Request: 'static + Send + Sync,
5757
Response: 'static + Send + Sync,
5858
Streams: StreamFilter,
59-
Filter: ReadOnlyWorldQuery + 'static,
59+
Filter: QueryFilter + 'static,
6060
{
6161
pub fn iter(&self) -> IterServiceDiscovery<'_, 's, Request, Response, Streams, Filter> {
6262
IterServiceDiscovery {
@@ -78,7 +78,7 @@ where
7878
Request: 'static + Send + Sync,
7979
Response: 'static + Send + Sync,
8080
Streams: StreamFilter,
81-
Filter: ReadOnlyWorldQuery + 'static,
81+
Filter: QueryFilter + 'static,
8282
{
8383
inner: QueryIter<
8484
'w,
@@ -98,7 +98,7 @@ where
9898
Request: 'static + Send + Sync,
9999
Response: 'static + Send + Sync,
100100
Streams: StreamFilter,
101-
Filter: ReadOnlyWorldQuery + 'static,
101+
Filter: QueryFilter + 'static,
102102
{
103103
type Item = Service<Request, Response, Streams::Pack>;
104104

src/stream.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use bevy_derive::{Deref, DerefMut};
1919
use bevy_ecs::{
2020
prelude::{Bundle, Commands, Component, Entity, With, World},
21-
query::{ReadOnlyWorldQuery, WorldQuery},
21+
query::{QueryFilter, WorldQuery, ReadOnlyQueryData},
2222
system::Command,
2323
};
2424
use bevy_hierarchy::BuildChildren;
@@ -346,15 +346,15 @@ impl StreamTargetMap {
346346
/// streams to be packed together as one generic argument.
347347
pub trait StreamPack: 'static + Send + Sync {
348348
type StreamAvailableBundle: Bundle + Default;
349-
type StreamFilter: ReadOnlyWorldQuery;
349+
type StreamFilter: QueryFilter;
350350
type StreamStorageBundle: Bundle + Clone;
351351
type StreamInputPack;
352352
type StreamOutputPack;
353353
type Receiver: Send + Sync;
354354
type Channel: Send;
355355
type Forward: Future<Output = ()> + Send;
356356
type Buffer: Clone;
357-
type TargetIndexQuery: ReadOnlyWorldQuery;
357+
type TargetIndexQuery: ReadOnlyQueryData;
358358

359359
fn spawn_scope_streams(
360360
in_scope: Entity,
@@ -936,7 +936,7 @@ impl<S: Stream> Command for SendStreams<S> {
936936
/// }
937937
/// ```
938938
pub trait StreamFilter {
939-
type Filter: ReadOnlyWorldQuery;
939+
type Filter: QueryFilter;
940940
type Pack: StreamPack;
941941
}
942942

0 commit comments

Comments
 (0)