docs(hero_service_scaffold): per-domain generated/ layout (#96) #280
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_skills!280
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-96-generated-folders"
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?
Summary
Updates the
hero_service_scaffoldskill docs (skills/hero/service/hero_service_scaffold.md) to reflect hero_rpc#96, which lands the per-domaingenerated/codegen-output separation.What changed in the docs
generated/subfolder under every per-domain dir, with the contributor-facing scaffolded-once files (mod.rs,types.rs,rpc.rs,.gitignore) called out separately from the codegen output.generated/separation: why it exists (git statusclean aftercargo build, sub-30-second readability), what stays committed vs ignored, and where customimplblocks live (below theinclude!()intypes.rs).[build-dependencies] hero_<name>plus a tinybuild.rsshim onhero_<name>_sdkandhero_<name>_adminso cargo runs the core crate'sbuild.rs(which writes both crates' codegen output) before either is compiled..gitignorefor cross-crate codegen (docs/,sdk/js/src/,sdk/python/*/with!pyproject.tomlexception), per-domain.gitignorefiles containing justgenerated/.osis_server_generated.rscallout in thedocs/openrpc.jsonsection to point at the newgenerated/server.rsfilename and note the include_str ordering guarantee.Why
Friend feedback on the
hero_servicetemplate: it was hard to tell what is codegen vs hand-written. The new layout makes it obvious at a glance. This skill is the canonical reference for anyone scaffolding a new service, so the docs have to match the new shape before anyone copies the old layout.Related PRs
hero_rpc#101(merged) — the generator + recipe_server changes.hero_service#6(merged) — applies the new layout to the hero_service template repo.Test plan
_generated.rsfilenames or stale pathshero_servicerepo tree post-#6Generated with Claude Code.
generated/subfolders + gitignore #96