feat(macros): auto-generate get_info and default router (#785)

* feat(macros): auto-generate get_info and default router

* docs: simplify examples and docs with new defaults

* feat(macros): add tool_router(server_handler) to elide separate #[tool_handler] impl

* docs: add Tools section to README and simplify calculator examples with server_handler
This commit is contained in:
Dale Seo 2026-04-08 15:06:26 -04:00 • committed by GitHub
commit be321a4abe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,10 +112,7 @@ impl wasi::exports::cli::run::Guest for TokioCliRunner {
.with_writer(std::io::stderr)
.with_ansi(false)
.init();
let server = calculator::Calculator::new()
.serve(wasi_io())
.await
.unwrap();
let server = calculator::Calculator.serve(wasi_io()).await.unwrap();
server.waiting().await.unwrap();
});
Ok(())