Crates.io | rusty_enet |
lib.rs | rusty_enet |
version | 0.3.3 |
source | src |
created_at | 2024-05-14 04:47:23.228507 |
updated_at | 2024-08-31 15:42:08.221739 |
description | ENet for Rust (and wasm!) transpiled from C. |
homepage | https://github.com/jabuwu/rusty_enet |
repository | https://github.com/jabuwu/rusty_enet |
max_upload_size | |
id | 1239100 |
size | 425,664 |
ENet transpiled to Rust, and made agnostic to the underlying socket. Supports std::net::UdpSocket
out of the box. Works in WASM if you bring your own WebRTC interface or similar.
[dependencies]
rusty_enet = "0.3"
rusty_enet | ENet | Commit |
---|---|---|
0.3 | 1.3.18 | (enet/2662c0d) |
0.2 | 1.3.18 | (enet/2662c0d) |
0.1 | 1.3.17* | (enet/2a85cd6) |
* indicates non-exact version (see commit)
From ENet's website:
ENet's purpose is to provide a relatively thin, simple and robust network communication layer on top of UDP (User Datagram Protocol). The primary feature it provides is optional reliable, in-order delivery of packets.
ENet omits certain higher level networking features such as authentication, lobbying, server discovery, encryption, or other similar tasks that are particularly application specific so that the library remains flexible, portable, and easily embeddable.
This Rust port allows using ENet with more than just UDP sockets. Most noteably, in WASM environments.
The entire API has been wrapped in safe Rust bindings, and I've tested things pretty thoroughly in my own projects. Despite the low semver version, this project couldn't be much further from "ready for serious use".
There may have been some bugs introduced during the C -> Rust transpilation and cleanup, but I've been diligent to keep changes to the original code minimal, and double check those that were necessary.