Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rand requirement from 0.8 to 0.9 in /crates/proto #124

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update rand requirement from 0.8 to 0.9 in /crates/proto
Updates the requirements on [rand](https://github.com/rust-random/rand) to permit the latest version.
- [Release notes](https://github.com/rust-random/rand/releases)
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md)
- [Commits](rust-random/rand@0.8.0...0.9.0)

---
updated-dependencies:
- dependency-name: rand
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] authored Jan 27, 2025
commit 191672eec74829713c5fadeee6891005e955f16c
2 changes: 1 addition & 1 deletion crates/proto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ vek = "0.17"
thiserror = "2.0"

jsonwebtoken = "9.3"
rand = "0.8"
rand = "0.9"
base64 = "0.22"
uuid = { version = "1.11", features = ["v4"] }
serde_json = "1.0"

Unchanged files with check annotations Beta

use serde::{Deserialize, Deserializer, Serialize};

Check warning on line 1 in crates/form/src/elems/button.rs

GitHub Actions / Check

unused import: `Deserializer`

Check warning on line 1 in crates/form/src/elems/button.rs

GitHub Actions / Test Suite

unused import: `Deserializer`

Check warning on line 1 in crates/form/src/elems/button.rs

GitHub Actions / Clippy

unused import: `Deserializer`
/// [`Button`] signifies a button incorporated into a [`SimpleForm`](crate::forms::simple::SimpleForm)
/// or [`ModalForm`](crate::forms::modal::ModalForm) form.
macro_rules! export {
($name:ident) => {
mod $name;
pub use $name::*;

Check warning on line 4 in crates/proto/src/version/v662/packets/mod.rs

GitHub Actions / Check

ambiguous glob re-exports

Check warning on line 4 in crates/proto/src/version/v662/packets/mod.rs

GitHub Actions / Check

ambiguous glob re-exports

Check warning on line 4 in crates/proto/src/version/v662/packets/mod.rs

GitHub Actions / Check

ambiguous glob re-exports

Check warning on line 4 in crates/proto/src/version/v662/packets/mod.rs

GitHub Actions / Test Suite

ambiguous glob re-exports

Check warning on line 4 in crates/proto/src/version/v662/packets/mod.rs

GitHub Actions / Test Suite

ambiguous glob re-exports

Check warning on line 4 in crates/proto/src/version/v662/packets/mod.rs

GitHub Actions / Test Suite

ambiguous glob re-exports
};
}
use serde::{Deserialize, Serialize};

Check warning on line 1 in crates/proto/src/version/v662/packets/item_component.rs

GitHub Actions / Check

unused imports: `Deserialize` and `Serialize`

Check warning on line 1 in crates/proto/src/version/v662/packets/item_component.rs

GitHub Actions / Test Suite

unused imports: `Deserialize` and `Serialize`
use bedrockrs_macros::{gamepacket, ProtoCodec};
use crate::v662::nbt::ItemComponentDataNBT;
macro_rules! export {

Check warning on line 1 in crates/proto/src/version/v671/enums/mod.rs

GitHub Actions / Check

unused macro definition: `export`

Check warning on line 1 in crates/proto/src/version/v671/enums/mod.rs

GitHub Actions / Test Suite

unused macro definition: `export`
($name:ident) => {
mod $name;
pub use $name::*;
macro_rules! export {
($name:ident) => {
mod $name;
pub use $name::*;

Check warning on line 4 in crates/proto/src/version/v748/packets/mod.rs

GitHub Actions / Check

ambiguous glob re-exports

Check warning on line 4 in crates/proto/src/version/v748/packets/mod.rs

GitHub Actions / Check

ambiguous glob re-exports

Check warning on line 4 in crates/proto/src/version/v748/packets/mod.rs

GitHub Actions / Test Suite

ambiguous glob re-exports

Check warning on line 4 in crates/proto/src/version/v748/packets/mod.rs

GitHub Actions / Test Suite

ambiguous glob re-exports
};
}
}
impl From<crate::v748::gamepackets::GamePackets> for GamePacketEvents {
fn from(packet: crate::v748::gamepackets::GamePackets) -> Self {

Check warning on line 15 in crates/proto/src/adapter/mod.rs

GitHub Actions / Check

unused variable: `packet`
todo!()
}
}
#[test]
fn world_test(
) -> Result<(), BedrockLevelError<RawInterface, BedrockSubChunkDecoder, BedrockSubChunk>> {
let wld_path = "./test_level/db";

Check warning on line 26 in crates/level/tests/api_test.rs

GitHub Actions / Test Suite

unused variable: `wld_path`
println!("Loading World");
// If dir exists, read all blocks
if blocks_path.is_dir() {
'blocks_walk: for blocks_entry in WalkDir::new(&blocks_path).into_iter().filter(|v| {

Check warning on line 58 in crates/addon/src/behavior/mod.rs

GitHub Actions / Clippy

unnecessary `if let` since only the `Ok` variant of the iterator element is used
if let Ok(v) = v {
v.file_type().is_file()
} else {
// If dir exists, read all items
if items_path.is_dir() {
'items_walk: for items_entry in WalkDir::new(&items_path).into_iter().filter(|v| {

Check warning on line 93 in crates/addon/src/behavior/mod.rs

GitHub Actions / Clippy

unnecessary `if let` since only the `Ok` variant of the iterator element is used
if let Ok(v) = v {
v.file_type().is_file()
} else {
// If dir exists read all functions
if functions_path.is_dir() {
for functions_entry in WalkDir::new(&functions_path).into_iter().filter(|v| {

Check warning on line 128 in crates/addon/src/behavior/mod.rs

GitHub Actions / Clippy

unnecessary `if let` since only the `Ok` variant of the iterator element is used
if let Ok(v) = v {
v.file_type().is_file()
} else {
// If dir exists read all scripts
if scripts_path.is_dir() {
for scripts_entry in WalkDir::new(&scripts_path).into_iter().filter(|v| {

Check warning on line 152 in crates/addon/src/behavior/mod.rs

GitHub Actions / Clippy

unnecessary `if let` since only the `Ok` variant of the iterator element is used
if let Ok(v) = v {
v.file_type().is_file()
} else {
/// - `Blanket`: Fills all blocks unconditionally.
/// - `Replace(mask)`: Replaces only blocks matching the given mask.
/// - `Avoid(mask)`: Fills blocks that do not match the mask.
/// - `Precedence(func)`: Uses a custom function to determine if a block should be replaced.

Check warning on line 383 in crates/level/src/level/chunk.rs

GitHub Actions / Clippy

empty line after doc comment
pub fn fill_chunk(&mut self, block: UserBlockType, filter: FillFilter<UserBlockType>) -> Result<&mut Self, FillError> {
let pos = self.pos();
bounds: min_max,
xz,
dim,
sections: unsafe { std::mem::transmute(subchunk_list) },

Check warning on line 470 in crates/level/src/level/chunk.rs

GitHub Actions / Clippy

transmute used without annotations
phantom_data: PhantomData,
_phantom_data: PhantomData
})
pub mod chunk_cache;
pub mod db_interface;
pub mod file_interface;
pub mod level;

Check warning on line 5 in crates/level/src/level/mod.rs

GitHub Actions / Clippy

module has the same name as its containing module
pub mod sub_chunk;
pub mod world_block;