rak-rs
A fully functional RakNet implementation in pure rust, asynchronously driven.
Getting Started
RakNet (rak-rs) is available on crates.io, to use it, add the following to your Cargo.toml:
[]
= "0.3.3"
Features
This RakNet implementation comes with 3 primary features, async_std, async_tokio and mcpe. However, by default, only async_std is enabled, and mcpe requires you to modify your Cargo.toml.
If you wish to use these features, add them to your Cargo.toml as seen below:
[]
= { = "0.3.3", = false, = [ "async_tokio", "mcpe" ] }
rak-rs also provides the following modules:
rak_rs::client- A client implementation of RakNet, allowing you to connect to a RakNet server.rak_rs::connection- A bare-bones implementation of a Raknet peer, this is mainly used for types.rak_rs::error- A module with errors that both the Client and Server can respond with.rak_rs::protocol- A lower level implementation of RakNet, responsible for encoding and decoding packets.rak_rs::server- The base server implementation of RakNet.rak_rs::util- General utilities used withinrak-rs.
Client
The client module provides a way for you to interact with RakNet servers with code.
Example:
use ;
use ToSocketAddrs;
async
Server
A RakNet server implementation in pure rust.
Example:
use Connection;
use Listener;
use
async
async