feignhttp-codegen 0.5.2

FeignHTTP macro support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use feignhttp_codegen::post;

// error: request must have only one of body or form
//    |  pub async fn send_post(#[body] b: S, #[form] f: S) -> Result<String> {}
//    |                                 ^^^^^^^^^^^^^^^^^^

struct S;

#[post("http://xxx")]
pub async fn send_post(#[body] b: S, #[form] f: S) -> Result<String> {}

fn main() {}