Skip to content

Commit

Permalink
upgrade deps, bevy 0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-1 committed Feb 17, 2024
1 parent 64d4889 commit be4f13c
Show file tree
Hide file tree
Showing 25 changed files with 253 additions and 267 deletions.
371 changes: 179 additions & 192 deletions Cargo.lock

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions azalea-auth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ version = "0.9.0"
azalea-buf = { path = "../azalea-buf", version = "0.9.0" }
azalea-crypto = { path = "../azalea-crypto", version = "0.9.0" }
base64 = "0.21.7"
chrono = { version = "0.4.32", default-features = false, features = ["serde"] }
chrono = { version = "0.4.34", default-features = false, features = ["serde"] }
tracing = "0.1.40"
num-bigint = "0.4.4"
once_cell = "1.19.0"
reqwest = { version = "0.11.23", default-features = false, features = [
reqwest = { version = "0.11.24", default-features = false, features = [
"json",
"rustls-tls",
] }
rsa = "0.9.6"
serde = { version = "1.0.195", features = ["derive"] }
serde_json = "1.0.111"
thiserror = "1.0.56"
tokio = { version = "1.35.1", features = ["fs"] }
serde = { version = "1.0.196", features = ["derive"] }
serde_json = "1.0.113"
thiserror = "1.0.57"
tokio = { version = "1.36.0", features = ["fs"] }
uuid = { version = "1.7.0", features = ["serde", "v3"] }
md-5 = "0.10.6"

[dev-dependencies]
env_logger = "0.11.0"
tokio = { version = "1.35.1", features = ["full"] }
env_logger = "0.11.2"
tokio = { version = "1.36.0", features = ["full"] }
2 changes: 1 addition & 1 deletion azalea-block/azalea-block-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ proc-macro = true
[dependencies]
proc-macro2 = "1.0.78"
quote = "1.0.35"
syn = "2.0.48"
syn = "2.0.49"
2 changes: 1 addition & 1 deletion azalea-buf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ azalea-buf-macros = { path = "./azalea-buf-macros", version = "0.9.0" }
byteorder = "^1.5.0"
tracing = "0.1.40"
serde_json = { version = "^1.0", optional = true }
thiserror = "1.0.56"
thiserror = "1.0.57"
uuid = "^1.7.0"

[features]
Expand Down
2 changes: 1 addition & 1 deletion azalea-buf/azalea-buf-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ proc-macro = true
[dependencies]
proc-macro2 = "^1.0.78"
quote = "^1.0.35"
syn = { version = "^2.0.48", features = ["extra-traits"] }
syn = { version = "^2.0.49", features = ["extra-traits"] }
2 changes: 1 addition & 1 deletion azalea-chat/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ simdnbt = { version = "0.4", optional = true, git = "https://github.com/azalea-r
tracing = "0.1.40"
once_cell = "1.19.0"
serde = { version = "^1.0", features = ["derive"] }
serde_json = "^1.0.111"
serde_json = "^1.0.113"
azalea-registry = { path = "../azalea-registry", version = "0.9.0", optional = true }
20 changes: 10 additions & 10 deletions azalea-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ version = "0.9.0"

[dependencies]
simdnbt = { version = "0.4", git = "https://github.com/azalea-rs/simdnbt" }
reqwest = { version = "0.11.23", default-features = false }
reqwest = { version = "0.11.24", default-features = false }
anyhow = "1.0.79"
async-trait = "0.1.77"
azalea-auth = { path = "../azalea-auth", version = "0.9.0" }
Expand All @@ -23,11 +23,11 @@ azalea-buf = { path = "../azalea-buf", version = "0.9.0" }
azalea-protocol = { path = "../azalea-protocol", version = "0.9.0" }
azalea-registry = { path = "../azalea-registry", version = "0.9.0" }
azalea-world = { path = "../azalea-world", version = "0.9.0" }
bevy_app = "0.12.1"
bevy_ecs = "0.12.1"
bevy_log = { version = "0.12.1", optional = true }
bevy_tasks = "0.12.1"
bevy_time = "0.12.1"
bevy_app = "0.13.0"
bevy_ecs = "0.13.0"
bevy_log = { version = "0.13.0", optional = true }
bevy_tasks = "0.13.0"
bevy_time = "0.13.0"
azalea-inventory = { path = "../azalea-inventory", version = "0.9.0" }
derive_more = { version = "0.99.17", features = ["deref", "deref_mut"] }
futures = "0.3.30"
Expand All @@ -36,12 +36,12 @@ nohash-hasher = "0.2.0"
once_cell = "1.19.0"
parking_lot = { version = "^0.12.1", features = ["deadlock_detection"] }
regex = "1.10.3"
thiserror = "^1.0.56"
tokio = { version = "^1.35.1", features = ["sync"] }
thiserror = "^1.0.57"
tokio = { version = "^1.36.0", features = ["sync"] }
uuid = "^1.7.0"
azalea-entity = { version = "0.9.0", path = "../azalea-entity" }
serde_json = "1.0.111"
serde = "1.0.195"
serde_json = "1.0.113"
serde = "1.0.196"
minecraft_folder_path = "0.1.2"

[features]
Expand Down
21 changes: 11 additions & 10 deletions azalea-client/src/entity_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ use std::sync::Arc;
use bevy_ecs::{
component::Component,
entity::Entity,
query::{ROQueryItem, ReadOnlyWorldQuery, WorldQuery},
query::QueryData,
query::{QueryFilter, ROQueryItem},
world::World,
};
use parking_lot::Mutex;
Expand All @@ -22,13 +23,13 @@ impl Client {
/// .is_some();
/// # }
/// ```
pub fn query<'w, Q: WorldQuery>(&self, ecs: &'w mut World) -> <Q as WorldQuery>::Item<'w> {
ecs.query::<Q>()
pub fn query<'w, D: QueryData>(&self, ecs: &'w mut World) -> D::Item<'w> {
ecs.query::<D>()
.get_mut(ecs, self.entity)
.unwrap_or_else(|_| {
panic!(
"Our client is missing a required component {:?}",
std::any::type_name::<Q>()
std::any::type_name::<D>()
)
})
}
Expand Down Expand Up @@ -58,7 +59,7 @@ impl Client {
/// ```
///
/// [`Entity`]: bevy_ecs::entity::Entity
pub fn entity_by<F: ReadOnlyWorldQuery, Q: ReadOnlyWorldQuery>(
pub fn entity_by<F: QueryFilter, Q: QueryData>(
&mut self,
predicate: impl EntityPredicate<Q, F>,
) -> Option<Entity> {
Expand Down Expand Up @@ -93,14 +94,14 @@ impl Client {
}
}

pub trait EntityPredicate<Q: ReadOnlyWorldQuery, Filter: ReadOnlyWorldQuery> {
pub trait EntityPredicate<Q: QueryData, Filter: QueryFilter> {
fn find(&self, ecs_lock: Arc<Mutex<World>>) -> Option<Entity>;
}
impl<F, Q, Filter> EntityPredicate<Q, Filter> for F
where
F: Fn(&ROQueryItem<Q>) -> bool,
Q: ReadOnlyWorldQuery,
Filter: ReadOnlyWorldQuery,
Q: QueryData,
Filter: QueryFilter,
{
fn find(&self, ecs_lock: Arc<Mutex<World>>) -> Option<Entity> {
let mut ecs = ecs_lock.lock();
Expand All @@ -114,8 +115,8 @@ where
// impl<'a, F, Q1, Q2> EntityPredicate<'a, (Q1, Q2)> for F
// where
// F: Fn(&<Q1 as WorldQuery>::Item<'_>, &<Q2 as WorldQuery>::Item<'_>) ->
// bool, Q1: ReadOnlyWorldQuery,
// Q2: ReadOnlyWorldQuery,
// bool, Q1: QueryFilter,
// Q2: QueryFilter,
// {
// fn find(&self, ecs: &mut Ecs) -> Option<Entity> {
// // (self)(query)
Expand Down
2 changes: 1 addition & 1 deletion azalea-client/src/interact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ pub fn handle_block_interact_event(
sequence: sequence_number.0,
}
.get(),
})
});
}
}

Expand Down
2 changes: 1 addition & 1 deletion azalea-client/src/inventory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ pub fn handle_container_click_event(
carried_item: inventory.carried.clone(),
}
.get(),
})
});
}
}

Expand Down
4 changes: 2 additions & 2 deletions azalea-client/src/mining.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ fn handle_start_mining_block_with_direction_event(
entity: event.entity,
position: event.position,
destroy_stage: mine_progress.destroy_stage(),
})
});
}

send_packet_events.send(SendPacketEvent {
Expand Down Expand Up @@ -572,7 +572,7 @@ fn continue_mining_block(
entity,
position: mining.pos,
direction: mining.dir,
})
});
}

swing_arm_events.send(SwingArmEvent { entity });
Expand Down
4 changes: 2 additions & 2 deletions azalea-client/src/packet_handling/game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ pub fn process_packet_events(ecs: &mut World) {
let mut client_side_close_container_events = system_state.get_mut(ecs);
client_side_close_container_events.send(ClientSideCloseContainerEvent {
entity: player_entity,
})
});
}
ClientboundGamePacket::Cooldown(_) => {}
ClientboundGamePacket::CustomChatCompletions(_) => {}
Expand Down Expand Up @@ -1225,7 +1225,7 @@ pub fn process_packet_events(ecs: &mut World) {
window_id: p.container_id,
menu_type: p.menu_type,
title: p.title.to_owned(),
})
});
}
ClientboundGamePacket::OpenSignEditor(_) => {}
ClientboundGamePacket::Ping(p) => {
Expand Down
6 changes: 3 additions & 3 deletions azalea-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ simdnbt = { version = "0.4", git = "https://github.com/azalea-rs/simdnbt" }
azalea-buf = { path = "../azalea-buf", version = "0.9.0" }
azalea-inventory = { version = "0.9.0", path = "../azalea-inventory" }
azalea-registry = { path = "../azalea-registry", version = "0.9.0" }
bevy_ecs = { version = "0.12.1", default-features = false, optional = true }
bevy_ecs = { version = "0.13.0", default-features = false, optional = true }
nohash-hasher = "0.2.0"
num-traits = "0.2.17"
num-traits = "0.2.18"
serde = { version = "^1.0", optional = true }
uuid = "^1.7.0"
serde_json = "^1.0.111"
serde_json = "^1.0.113"
tracing = "0.1.40"

[features]
Expand Down
2 changes: 1 addition & 1 deletion azalea-crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repository = "https://github.com/azalea-rs/azalea/tree/main/azalea-crypto"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
aes = "0.8.3"
aes = "0.8.4"
azalea-buf = { path = "../azalea-buf", version = "0.9.0" }
cfb8 = "0.8.1"
num-bigint = "^0.4.4"
Expand Down
6 changes: 3 additions & 3 deletions azalea-entity/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ azalea-core = { version = "0.9.0", path = "../azalea-core" }
azalea-inventory = { version = "0.9.0", path = "../azalea-inventory" }
azalea-registry = { version = "0.9.0", path = "../azalea-registry" }
azalea-world = { version = "0.9.0", path = "../azalea-world" }
bevy_app = "0.12.1"
bevy_ecs = "0.12.1"
bevy_app = "0.13.0"
bevy_ecs = "0.13.0"
derive_more = "0.99.17"
enum-as-inner = "0.6.0"
tracing = "0.1.40"
nohash-hasher = "0.2.0"
parking_lot = "0.12.1"
thiserror = "1.0.56"
thiserror = "1.0.57"
uuid = "1.7.0"
2 changes: 1 addition & 1 deletion azalea-inventory/azalea-inventory-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ proc-macro = true
[dependencies]
proc-macro2 = "1.0.78"
quote = "1.0.35"
syn = "2.0.48"
syn = "2.0.49"
2 changes: 1 addition & 1 deletion azalea-language/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ version = "0.9.0"
[dependencies]
once_cell = "1.19.0"
serde = "^1.0"
serde_json = "^1.0.111"
serde_json = "^1.0.113"
# tokio = {version = "^1.21.2", features = ["fs"]}
6 changes: 3 additions & 3 deletions azalea-physics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ azalea-entity = { version = "0.9.0", path = "../azalea-entity" }
azalea-inventory = { version = "0.9.0", path = "../azalea-inventory" }
azalea-registry = { path = "../azalea-registry", version = "0.9.0" }
azalea-world = { path = "../azalea-world", version = "0.9.0" }
bevy_app = "0.12.1"
bevy_ecs = "0.12.1"
bevy_app = "0.13.0"
bevy_ecs = "0.13.0"
tracing = "0.1.40"
once_cell = "1.19.0"
parking_lot = "^0.12.1"

[dev-dependencies]
bevy_time = "0.12.1"
bevy_time = "0.13.0"
uuid = "^1.7.0"
8 changes: 4 additions & 4 deletions azalea-protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ azalea-inventory = { version = "0.9.0", path = "../azalea-inventory" }
azalea-protocol-macros = { path = "./azalea-protocol-macros", version = "0.9.0" }
azalea-registry = { path = "../azalea-registry", version = "0.9.0" }
azalea-world = { path = "../azalea-world", version = "0.9.0" }
bevy_ecs = { version = "0.12.1", default-features = false }
bevy_ecs = { version = "0.13.0", default-features = false }
byteorder = "^1.5.0"
bytes = "^1.5.0"
flate2 = "1.0.28"
Expand All @@ -38,9 +38,9 @@ futures-lite = "2.2.0"
futures-util = "0.3.30"
tracing = "0.1.40"
serde = { version = "^1.0", features = ["serde_derive"] }
serde_json = "^1.0.111"
thiserror = "1.0.56"
tokio = { version = "^1.35.1", features = ["io-util", "net", "macros"] }
serde_json = "^1.0.113"
thiserror = "1.0.57"
tokio = { version = "^1.36.0", features = ["io-util", "net", "macros"] }
tokio-util = { version = "0.7.10", features = ["codec"] }
trust-dns-resolver = { version = "^0.23.2", default-features = false, features = [
"tokio-runtime",
Expand Down
2 changes: 1 addition & 1 deletion azalea-protocol/azalea-protocol-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ proc-macro = true
[dependencies]
proc-macro2 = "^1.0.78"
quote = "^1.0.35"
syn = "^2.0.48"
syn = "^2.0.49"
2 changes: 1 addition & 1 deletion azalea-registry/azalea-registry-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ proc-macro = true
[dependencies]
proc-macro2 = "1.0.78"
quote = "1.0.35"
syn = "2.0.48"
syn = "2.0.49"

[features]
serde = []
8 changes: 4 additions & 4 deletions azalea-world/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ azalea-core = { path = "../azalea-core", version = "0.9.0", features = [
] }
azalea-inventory = { version = "0.9.0", path = "../azalea-inventory" }
azalea-registry = { path = "../azalea-registry", version = "0.9.0" }
bevy_ecs = "0.12.1"
bevy_ecs = "0.13.0"
derive_more = { version = "0.99.17", features = ["deref", "deref_mut"] }
enum-as-inner = "0.6.0"
tracing = "0.1.40"
nohash-hasher = "0.2.0"
once_cell = "1.19.0"
parking_lot = "^0.12.1"
thiserror = "1.0.56"
thiserror = "1.0.57"
uuid = "1.7.0"
serde_json = "1.0.111"
serde = "1.0.195"
serde_json = "1.0.113"
serde = "1.0.196"

[dev-dependencies]
azalea-client = { path = "../azalea-client" }
Expand Down
18 changes: 9 additions & 9 deletions azalea/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,23 @@ azalea-world = { version = "0.9.0", path = "../azalea-world" }
azalea-auth = { version = "0.9.0", path = "../azalea-auth" }
azalea-brigadier = { version = "0.9.0", path = "../azalea-brigadier" }
azalea-buf = { version = "0.9.0", path = "../azalea-buf" }
bevy_app = "0.12.1"
bevy_ecs = "0.12.1"
bevy_tasks = { version = "0.12.1", features = ["multi-threaded"] }
bevy_app = "0.13.0"
bevy_ecs = "0.13.0"
bevy_tasks = { version = "0.13.0", features = ["multi-threaded"] }
derive_more = { version = "0.99.17", features = ["deref", "deref_mut"] }
futures = "0.3.30"
futures-lite = "2.2.0"
tracing = "0.1.40"
nohash-hasher = "0.2.0"
num-traits = "0.2.17"
num-traits = "0.2.18"
parking_lot = { version = "^0.12.1", features = ["deadlock_detection"] }
priority-queue = "1.3.2"
thiserror = "^1.0.56"
tokio = "^1.35.1"
priority-queue = "1.4.0"
thiserror = "^1.0.57"
tokio = "^1.36.0"
uuid = "1.7.0"
bevy_log = "0.12.1"
bevy_log = "0.13.0"
azalea-entity = { version = "0.9.0", path = "../azalea-entity" }
bevy_time = "0.12.1"
bevy_time = "0.13.0"
rustc-hash = "1.1.0"

[dev-dependencies]
Expand Down
Loading

0 comments on commit be4f13c

Please sign in to comment.