yosemite
yosemite is a SAMv3 client library for interacting with the I2P network.
It provides synchronous and asynchronous APIs and supports both tokio and smol.
Supported features
- Streams
- Forwarding
Read/Writefor synchronous streamsAsyncRead/AsyncWritefortokiostreamsAsyncRead/AsyncWriteforsmolstreams
- Datagrams
- Repliable
- Anonymous
- Primary sessions
Usage
tokio is enabled by default:
= "0.7.0"
sync enables synchronous APIs:
= { = "0.7.0", = false, = ["sync"] }
smol enables asynchronous APIs implemented with smol:
= { = "0.7.0", = false, = ["smol"] }
tokio, smol, and sync are all mutually exclusive and only one them can be enabled. The APIs are otherwise the same but tokio and smol require blocking calls to .await.
Example usage of the API:
use AsyncReadExt;
use ;
async
See examples for instructions on how to use yosemite.
Copying
MIT