accio_rs 0.1.2

macros for sync and async runtime
Documentation
// #[cfg(test)]
// mod tests {
//     use super::*;
//     struct RawReq{}
//     struct RawRsp{}
//     struct OrigReq{}
//     struct OrigResp{}

//     impl Into<RawReq> for OrigReq {
//         fn into(self) -> RawReq {
//             RawReq {}
//         }
//     }

//     impl Into<OrigResp> for RawRsp {
//         fn into(self) -> OrigResp {
//             OrigResp {}
//         }
//     }

//     #[test]
//     fn test_a() {
//         let req = OrigReq{};
//         fn ec(_: *const (), _: *const (), _: *const ()) {}
//         let f = async {
//             let ret = accioe!(req,RawReq,OrigResp,RawRsp,ec,cb);
//             ret
//         };
//     }
// }