https://github.com/sub07/channel-protocol
https://github.com/sub07/channel-protocol
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sub07/channel-protocol
- Owner: sub07
- Created: 2025-11-03T00:54:00.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-11-11T20:23:23.000Z (7 months ago)
- Last Synced: 2025-11-11T22:21:16.650Z (7 months ago)
- Language: Rust
- Size: 39.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Channel Protocol
[
](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.