walkthrough: write output to a stable on-disk path + gitignore it #110
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_rpc!110
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "walkthrough-persistent"
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?
Drops the TempDir + auto-cleanup. The walkthrough now writes its full scaffolded workspace into
<repo>/examples/walkthrough_demo/so you cancdin and browse the generated files after the example exits.The path is gitignored (new
/examples/walkthrough_demo/entry in.gitignore) and wiped + recreated on every run — output always reflects current scaffolder + codegen behaviour and never accidentally gets committed.Also: codegen anchor fix
OschemaBuilderresolves every path relative to itsmanifest_dir(mirroring howbuild.rsruns from a specific crate's root). The previous draft anchored at the workspace root, which leaked spurioussrc/andtarget/dirs into the top-level demo tree. Anchor atcrates/hero_demo/instead — same shape asexamples/recipe_server/crates/hero_recipes/build.rs— so codegen lands in the right siblings.Closing message
Now prints the demo dir path and a small index of paths to peek at:
Drops the
tempfiledependency.Test plan
cargo run --manifest-path examples/recipe_server/Cargo.toml --example 01_walkthroughproduces a clean tree atexamples/walkthrough_demo/.git check-ignoreconfirms the directory is excluded.