Skip to content

Commit

Permalink
Renet: release 0.0.10
Browse files Browse the repository at this point in the history
Renet -> 0.0.10
BevyRenet -> 0.0.5
Rechannel -> 0.0.6
Renetcode -> 0.0.6
RenetVisualizer -> 0.0.3
  • Loading branch information
lucaspoffo committed Nov 18, 2022
1 parent 6ad3e7d commit c5fb513
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 13 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Renet changelog

## Unreleased

## 0.0.10 - 2022-11-18
### Added ⭐
* Added function `client_addr`, `user_data`, `is_client_connected`, `max_clients`, `connected_clients` for `RenetServer`, some utilities from `NetcodeServer`. [(commit)](https://github.com/lucaspoffo/renet/commit/576962e53a2e2b74f8f3c8355ae2abf706826f73) [(commit)](https://github.com/lucaspoffo/renet/commit/dff1fc5785ac2b82309b92477c90a250feb3af55)
* Renetcode/Renet: make generate_random_bytes public, this can be used to generate a random private key. [(commit)](https://github.com/lucaspoffo/renet/commit/f8509f11017e2d234c8059cc181f9644468ea87f)
Expand Down
4 changes: 2 additions & 2 deletions bevy_renet/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bevy_renet"
version = "0.0.5"
version = "0.0.6"
keywords = ["gamedev", "networking"]
description = "Bevy plugin for the renet crate: Server/Client network library for multiplayer games with authentication and connection management"
repository = "https://github.com/lucaspoffo/renet"
Expand All @@ -12,7 +12,7 @@ edition = "2021"

[dependencies]
bevy = { version = "0.9.0", default-features = false }
renet = { path = "../renet", version = "0.0.9", features = ["bevy"] }
renet = { path = "../renet", version = "0.0.10", features = ["bevy"] }

[dev-dependencies]
serde = { version = "1.0", features = [ "derive" ] }
Expand Down
1 change: 1 addition & 0 deletions bevy_renet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,6 @@ If you want a more complex example you can checkout the [demo_bevy](https://gith

|bevy|bevy_renet|
|---|---|
|0.9|0.0.6|
|0.8|0.0.5|
|0.7|0.0.4|
2 changes: 2 additions & 0 deletions bevy_renet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pub struct RenetServerPlugin {
/// If this option is set to false,
/// you need to manually clear the bevy events for RenetError and ServerEvent.
/// The systems for clearing events can be retrieved by [`RenetServerPlugin::get_clear_event_systems()`].
/// Defaults to `true`
pub clear_events: bool,
}

Expand All @@ -24,6 +25,7 @@ pub struct RenetClientPlugin {
/// If this option is set to false,
/// you need to manually clear the bevy events for RenetError.
/// The systems for clearing events can be retrieved by [`RenetClientPlugin::get_clear_event_systems()`].
/// Defaults to `true`
pub clear_events: bool,
}

Expand Down
2 changes: 1 addition & 1 deletion rechannel/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rechannel"
version = "0.0.5"
version = "0.0.6"
authors = ["Lucas Poffo <[email protected]>"]
description = "Server/Client network library for reliable communication channels in multiplayer games"
keywords = ["gamedev", "networking"]
Expand Down
6 changes: 3 additions & 3 deletions renet/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "renet"
version = "0.0.9"
version = "0.0.10"
description = "Server/Client network library for multiplayer games with authentication and connection management"
keywords = ["gamedev", "networking"]
repository = "https://github.com/lucaspoffo/renet"
Expand All @@ -13,7 +13,7 @@ edition = "2021"
bevy = ["dep:bevy_ecs"]

[dependencies]
rechannel = { path = "../rechannel", version = "0.0.5" }
renetcode = { path = "../renetcode", version = "0.0.5" }
rechannel = { path = "../rechannel", version = "0.0.6" }
renetcode = { path = "../renetcode", version = "0.0.6" }
log = "0.4.17"
bevy_ecs = { version = "0.9.0", optional = true }
4 changes: 2 additions & 2 deletions renet_visualizer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "renet_visualizer"
version = "0.0.2"
version = "0.0.3"
keywords = ["gamedev", "networking"]
description = "Egui metrics visualizer for the renet crate: Server/Client network library for multiplayer games"
repository = "https://github.com/lucaspoffo/renet"
Expand All @@ -13,6 +13,6 @@ edition = "2021"
bevy = ["dep:bevy_ecs"]

[dependencies]
renet = { path = "../renet", version = "0.0.9" }
renet = { path = "../renet", version = "0.0.10" }
egui = "0.19"
bevy_ecs = { version = "0.9.0", optional = true }
2 changes: 1 addition & 1 deletion renetcode/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "renetcode"
version = "0.0.5"
version = "0.0.6"
description = "Server/Client network protocol library for multiplayer games"
keywords = ["gamedev", "networking", "cryptography"]
repository = "https://github.com/lucaspoffo/renet"
Expand Down
4 changes: 2 additions & 2 deletions renetcode/src/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ pub fn encrypt_in_place_xnonce(buffer: &mut [u8], xnonce: &[u8; 24], key: &[u8;

/// Generate a buffer with random bytes using randomness from the operating system.
///
/// The implementation is provided by the [getrandom] crate. Refer to
/// [getrandom] documentation for details.
/// The implementation is provided by the `getrandom` crate. Refer to
/// `getrandom` documentation for details.
pub fn generate_random_bytes<const N: usize>() -> [u8; N] {
let mut bytes = [0; N];
OsRng.fill_bytes(&mut bytes);
Expand Down

0 comments on commit c5fb513

Please sign in to comment.