RDMA-Rust / sideway

A better wrapper for using RDMA programming APIs in Rust flavor
Mozilla Public License 2.0
2 stars 0 forks source link

[RFC] Use `trybuild` to test against some invariants #27

Open dragonJACson opened 1 month ago

dragonJACson commented 1 month ago

There are a lot of invariants we need to take into account in our implementation, such as, only one PostSendGuard should exist at the same time, WorkRequestHandle and any OpHandle should also be consumed before creating another one. We can use trybuild to create some illegal programs to test against these. With these programs + CI, we can make our implementation keep working as expected, and show users what usage is not possible.