2 unstable releases

0.2.0 Nov 17, 2024
0.1.0 Oct 23, 2024

#2136 in Network programming

Download history 116/week @ 2024-10-19 25/week @ 2024-10-26 2/week @ 2024-11-02 106/week @ 2024-11-16 8/week @ 2024-11-23 8/week @ 2024-11-30 2/week @ 2024-12-07

124 downloads per month

MIT license

120KB
2K SLoC

yosemite

License Crates.io docs.rs

yosemite is a SAMv3 client library for interacting with the I2P network.

It provides both synchronous and asynchronous APIs which are configurable via sync and async feature flags, respectively.

Supported features

  • Streams
    • Forwarding
    • Read/Write for synchronous streams
    • AsyncRead/AsyncWrite for asynchronous streams
  • Datagrams
    • Repliable
    • Anonymous

Usage

async is enabled by default, giving access to asynchronous APIs:

yosemite = "0.1.0"

sync enables synchronous APIs:

yosemite = { version = "0.1.0", default-features = false, features = ["sync"] }

sync and async are mutually exclusive, only one or the other can be enabled. The APIs are otherwise the same but async requires blocking calls to .await.

See examples for instructions on how to use yosemite.

Copying

MIT

Dependencies

~2–10MB
~110K SLoC