Skip to content

A procedural macro to generate channel protocol clients.

Notifications You must be signed in to change notification settings

sub07/channel-protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Channel Protocol

crates.io

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:

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

Features

  • std sync channel
  • async channel (contribution are welcomed)

Example

Check the examples folder for examples.

About

A procedural macro to generate channel protocol clients.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages