keelrun 0.4.1

Keel as a Rust front end: #[keel::wrap] plus a reqwest-middleware adapter, routing calls through the keel-core Engine chain (cache/rate/breaker/timeout/retry) from one `keel.toml`. No import hook (Rust has none to hang off of) — call `keel::init()` once from your own `main`. Published as `keelrun` (plain `keel` is taken on crates.io); add it as `cargo add keelrun --rename keel` so `#[keel::wrap]` resolves — see README.md.
Documentation
1
2
3
4
5
6
7
8
9
// v1 scope: the target is explicit-only (crates/keel-macros/src/lib.rs doc
// comment explains why signature/host inference was deferred).

#[keel::wrap]
async fn fetch_order(id: u32) -> Result<u32, std::io::Error> {
    Ok(id)
}

fn main() {}