https://github.com/wick3dr0se/wrym
Cross-platform, lightweight networking
https://github.com/wick3dr0se/wrym
cross-platform laminar networking rudp rust udp webtransport
Last synced: about 2 months ago
JSON representation
Cross-platform, lightweight networking
- Host: GitHub
- URL: https://github.com/wick3dr0se/wrym
- Owner: wick3dr0se
- License: agpl-3.0
- Created: 2025-02-02T21:16:25.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-03-08T00:26:12.000Z (3 months ago)
- Last Synced: 2025-03-08T01:24:01.697Z (3 months ago)
- Topics: cross-platform, laminar, networking, rudp, rust, udp, webtransport
- Language: Rust
- Homepage:
- Size: 47.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wrym
**Wrym** is a cross-platform, lightweight and flexible networking library, designed to simplify the development of networked applications. It provides a unified interface for various transport layers and networking protocols, making it easy to build scalable and adaptable systems## Features
- **Unified Transport Interface**: Supports multiple transport layers through a common `Transport` trait, enabling seamless integration with different protocols
- **Extensible and Modular**: Easily extend the library to support new protocols, features, or use cases, making it adaptable to a wide range of networking scenarios
- **Cross-Platform**: Works seamlessly in both native and web environments (e.g., WebAssembly)## Getting Started
Get **wrym**
`cargo add --git https://github.com/wick3dr0se/wrym wrym`Example: Basic server
```rust
use wrym::{server::{Server, ServerConfig}, transport::SomeTransport};fn main() {
let transport = SomeTransport::new("127.0.0.1:8080").unwrap();
let mut server = Server::new(transpor, ServerConfig::default()t);loop {
server.poll();while let Some(event) = server.recv_event() {
// handle events
}
}
}
```See more examples in [examples/](examples/)
## Contributing
If you have a feature request, bug report, or want to contribute code, please open an issue or submit a pull requestContributions are much appreciated!