#run-time #async #traits #agnostic

agnostic-net

An async runtime agnostic version std::net

1 unstable release

new 0.1.0 Jan 27, 2025

#1966 in Network programming


Used in agnostic-dns

MIT/Apache

310KB
7.5K SLoC

Agnostic Network

agnostic-net is an async runtime agnostic version std::net.

github LoC Build codecov

docs.rs crates.io crates.io license

Introduction

agnostic-net is an async runtime agnostic version std::net.

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
~326K SLoC