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

no-std agnostic-net

Agnostic abstraction layer of std::net for any async runtime

4 releases

new 0.2.2 Feb 24, 2025
0.2.1 Jan 31, 2025
0.2.0 Jan 30, 2025
0.1.0 Jan 27, 2025

#1253 in Network programming

Download history 449/week @ 2025-01-24 782/week @ 2025-01-31 342/week @ 2025-02-07 90/week @ 2025-02-14

1,663 downloads per month
Used in 13 crates (3 directly)

MIT/Apache

320KB
7.5K SLoC

Agnostic Network

Agnostic abstraction layer of std::net for any async runtime.

github LoC Build codecov

docs.rs crates.io crates.io license

Introduction

Agnostic 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
~325K SLoC