yosemite
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/Writefor synchronous streamsAsyncRead/AsyncWritefor asynchronous streams
- Datagrams
- Repliable
- Anonymous
Usage
async is enabled by default, giving access to asynchronous APIs:
= "0.4.0"
sync enables synchronous APIs:
= { = "0.4.0", = false, = ["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.
Example usage of the API:
use AsyncReadExt;
use ;
async
See examples for instructions on how to use yosemite.
Copying
MIT