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.
Add this to your Cargo.toml:
[dependencies]
channel-protocol = "*"
oneshot = { version = "0.1", features = ["std"], default-features = false } # Used for returned values- std sync channel
- async channel (contribution are welcomed)
Check the examples folder for examples.