Migrate hero_service onto hero_rpc2 (hero_rpc#90 Phase 2) #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-90-phase2-hero-service"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
First OSIS service migrated off OServer onto hero_rpc2 per hero_rpc#90 Phase 2. This validates the migration path and becomes the template for Phase 3 (hero_logic / hero_compute / hero_db).
Mirrors
example/recipe_serverfrom Phase 1 — the hero_rpc2 transport reference. Smoke transcript is in the commit message; here's the short version:GET /health{status: ok, service: hero_service, version: 0.1.0}GET /.well-known/heroservice.jsonprotocol=openrpc,socket=rpcGET /openrpc.jsondocs/openrpc.jsonexactlyPOST /rpc rpc.health{status: ok, …, trusted: true}POST /rpc servicecatalog.list[](empty catalog, storage clean)lab infocheckDepends on hero_rpc PR #99 (
OpenRpcDocument::from_valueconstructor — merged). Otherwise the embeddeddocs/openrpc.jsoncan't be piped throughwith_discover.Changes
_server/src/main.rsrewritten toServerBuilder+rpc2_adapter+with_discover(OpenRpcDocument::from_value(parsed))._server/Cargo.toml: dropped deletedhero_rpc_server, addedhero_rpc2+jsonrpsee._server/service.toml: socket path nowhero_service/rpc.sock(canonicalhero_socketsshape)._sdk/Cargo.toml:hero_rpc_client→hero_rpc2 + jsonrpsee._sdk/src/catalog/{mod,osis_client_generated,types}.rsdeleted; replaced by codegen-generated_sdk/src/catalog.rs(the rpc2 trait file).Out of scope
sdk/{rust,rhai}/workspace layout (it still has sibling_sdk/_rhaicrates). Leave as-is for now — theclient_crate_dirpath keeps codegen pointed at the legacy location and everything still works. Lift the layout in a separate cleanup PR if/when desired.