apigate 1.0.0

Macro-driven API gateway for Rust: declarative routing, request transformation, and reverse proxying built on axum
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[test]
fn macro_param_expansion() {
    let t = trybuild::TestCases::new();
    t.pass("tests/ui/pass/bare_special_generics.rs");
    t.pass("tests/ui/pass/service_routes.rs");
    t.pass("tests/ui/pass/hook_map_scope_params.rs");
    t.compile_fail("tests/ui/fail/hook_not_async.rs");
    t.compile_fail("tests/ui/fail/ctx_not_mut.rs");
    t.compile_fail("tests/ui/fail/scope_with_ref_param.rs");
    t.compile_fail("tests/ui/fail/map_without_owned_input.rs");
    t.compile_fail("tests/ui/fail/map_without_data.rs");
    t.compile_fail("tests/ui/fail/route_outside_service.rs");
    t.compile_fail("tests/ui/fail/route_unknown_arg.rs");
}