An open API service indexing awesome lists of open source software.

https://github.com/sub07/channel-protocol


https://github.com/sub07/channel-protocol

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# Channel Protocol

[crates.io](https://crates.io/crates/channel-protocol)

## What is it ?

A procedural macro to generate channel protocol clients.

You can use function oriented communication between threads instead of communicating by sending messages through channels.

This is an abstraction over channels that makes inter-thread communication easier to use and read.

## Installation

Add this to your `Cargo.toml`:

```toml
[dependencies]
channel-protocol = "*"
oneshot = { version = "0.1", features = ["std"], default-features = false } # Used for returned values
```

## Features

- [x] std sync channel
- [ ] async channel (contribution are welcomed)

## Example

Check the [examples](./examples) folder for examples.