Expand description
§comfund
: WCF-like Service Contracts in Rust
Ever stumbled upon the routine of setting up/modyfying endpoints for your REST Api
for both Rust client and Rust server code? Then comfund
is what you need.
Define your service contracts in one place and use auto generated clients and server services accordingly.
§How does it work
The cornerstone of comfund
is a #[contract]
attribute proc macro,
that generates feature-gated client and server code, that will be depent on by consuming front- and back-end.
As both client and server code are generated from the same place, synchronization of endporint URLs, methods, parameters, etc. is guaranteed. And only one place in code should be modified manually, if needed.
Attribute Macros§
- contract
contract
attribute macro