zsync

Crates.iozsync
lib.rszsync
version0.1.1
created_at2025-02-13 10:32:46.70985+00
updated_at2025-02-13 10:36:19.283241+00
descriptionA Zero Dependency async net runtime thats truly cross-platform, including Windows, Linux, and MacOS.
homepagehttps://zsync-rs.vercel.app
repositoryhttps://github.com/voltageddebunked/zsync
max_upload_size
id1554052
size29,917
Voltaged (VoltagedDebunked)

documentation

README

ZSync

Rust License Edition Tests

A zero-dependency, cross-platform async runtime for Rust.

Features

  • Zero external dependencies
  • Cross-platform (Linux/macOS/Windows)
  • Native async I/O (epoll/kqueue/IOCP)
  • Efficient task scheduling
  • Full TCP support
  • Thread-safe executor

Usage

use zsync::{Runtime, TcpListener};

fn main() {
    let runtime = Runtime::new().unwrap();
    
    runtime.block_on(async {
        let listener = TcpListener::bind("127.0.0.1:8080").await.unwrap();
        
        while let Ok((mut socket, _)) = listener.accept().await {
            // Handle connection
        }
    });
}

Requirements

  • Rust 1.74 or higher
  • Rust 2021 edition

License

Licensed under Apache License, Version 2.0 (LICENSE or http://www.apache.org/licenses/LICENSE-2.0)

Commit count: 0

cargo fmt