#run-time #async #abstraction-layer #agnostic #sansio #sans

no-std agnostic-net

Sans-I/O abstraction layer of std::net for any async runtime

2 unstable releases

new 0.2.0 Jan 30, 2025
0.1.0 Jan 27, 2025

#1737 in Network programming

Download history 115/week @ 2025-01-22

115 downloads per month
Used in 13 crates (3 directly)

MIT/Apache

315KB
7.5K SLoC

Agnostic Network

Sans-I/O abstraction layer of std::net for any async runtime.

github LoC Build codecov

docs.rs crates.io crates.io license

Introduction

Sans-I/O abstraction layer of std::net for any async runtime.

Builtin supports runtimes:

  • tokio
  • async-std
  • smol

Installation

[dependencies]
agnostic-net = "0.1"
  • tokio

    agnostic-net = { version = "0.1", features = ["tokio"] }
    
  • smol

    agnostic-net = { version = "0.1", features = ["smol"] }
    
  • async-std

    agnostic-net = { version = "0.1", features = ["async-std"] }
    

License

agnostic-net is under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE, LICENSE-MIT for details.

Copyright (c) 2025 Al Liu.

Dependencies

~9–22MB
~323K SLoC