Skip to content

Commit

Permalink
usage updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ismaileke committed Oct 25, 2024
1 parent 4d70cd4 commit c31737a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ minecraft-auth = { git = "https://github.com/ismaileke/minecraft-auth.git", bran
mojang-nbt = { git = "https://github.com/ismaileke/mojang-nbt.git", branch = "master" }
log = "0.4.22"
rand = "0.9.0-alpha.2"
tokio = "1.40.0"
tokio = "1.41.0"
base64 = "0.22.1"
openssl = "0.10.66"
serde = { version = "1.0.210", features = ["derive"] }
serde_json = "1.0.131"
serde = { version = "1.0.213", features = ["derive"] }
serde_json = "1.0.132"
flate2 = "1.0.34"
chrono = "0.4.38"
miniz_oxide = "0.8.0"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RakNet Client written in Rust.
```css
[dependencies]
raknet-client = { git = "https://github.com/ismaileke/raknet-client.git", branch = "master" }
tokio = "1.40.0"
tokio = "1.41.0"
```


Expand All @@ -17,7 +17,7 @@ use raknet_client::client;

#[tokio::main]
async fn main() {
let client = client::create("127.0.0.1".to_string(), 19132, "1.21.30".to_string(), true); // target address, target port, client version, debug mode
let client = client::create("127.0.0.1".to_string(), 19132, "1.21.40".to_string(), true); // target address, target port, client version, debug mode
client.await.unwrap().connect().expect("Target IP Connection Error");
}
```
Expand Down

0 comments on commit c31737a

Please sign in to comment.