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

no-std agnostic-net

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

5 releases

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

#1405 in Network programming

Download history 833/week @ 2025-01-26 568/week @ 2025-02-02 228/week @ 2025-02-09 588/week @ 2025-02-16 779/week @ 2025-02-23 1188/week @ 2025-03-02

2,915 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–23MB
~338K SLoC