4 releases

0.1.5 Jul 17, 2025
0.1.4 Jul 13, 2025

#471 in HTTP client

Download history

217 downloads per month

MIT/Apache

52KB
1K SLoC

../README.md


lib.rs:

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.

Dependencies

~3–18MB
~201K SLoC