Skip to content

Commit

Permalink
Update Field Accessors chapter with use of accessor component macros (#…
Browse files Browse the repository at this point in the history
…25)

* Add section for cgp_auto_getter

* AI-revise section

* Add sections for UseFields cgp_getter

* Add example use of multiple accessor methods

* AI-revise sections

* Simplify code with new cgp APIs

* Add section for deriving UseField with cgp_getter

* AI-revise section
  • Loading branch information
soareschen authored Jan 8, 2025
1 parent 6bc410c commit c3c5cac
Show file tree
Hide file tree
Showing 5 changed files with 368 additions and 391 deletions.
37 changes: 19 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 18 additions & 18 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ reqwest = { version = "0.12.12", features = [ "blocking", "json" ] }


[patch.crates-io]
cgp = { git = "https://github.com/contextgeneric/cgp.git" }
cgp-core = { git = "https://github.com/contextgeneric/cgp.git" }
cgp-extra = { git = "https://github.com/contextgeneric/cgp.git" }
cgp-async = { git = "https://github.com/contextgeneric/cgp.git" }
cgp-async-macro = { git = "https://github.com/contextgeneric/cgp.git" }
cgp-component = { git = "https://github.com/contextgeneric/cgp.git" }
cgp-component-macro = { git = "https://github.com/contextgeneric/cgp.git" }
cgp-component-macro-lib = { git = "https://github.com/contextgeneric/cgp.git" }
cgp-type = { git = "https://github.com/contextgeneric/cgp.git" }
cgp-field = { git = "https://github.com/contextgeneric/cgp.git" }
cgp-field-macro = { git = "https://github.com/contextgeneric/cgp.git" }
cgp-field-macro-lib = { git = "https://github.com/contextgeneric/cgp.git" }
cgp-error = { git = "https://github.com/contextgeneric/cgp.git" }
cgp-error-extra = { git = "https://github.com/contextgeneric/cgp.git" }
cgp-error-anyhow = { git = "https://github.com/contextgeneric/cgp.git" }
cgp-run = { git = "https://github.com/contextgeneric/cgp.git" }
cgp-runtime = { git = "https://github.com/contextgeneric/cgp.git" }
cgp-inner = { git = "https://github.com/contextgeneric/cgp.git" }
cgp = { git = "https://github.com/contextgeneric/cgp.git", branch = "getter-component" }
cgp-core = { git = "https://github.com/contextgeneric/cgp.git", branch = "getter-component" }
cgp-extra = { git = "https://github.com/contextgeneric/cgp.git", branch = "getter-component" }
cgp-async = { git = "https://github.com/contextgeneric/cgp.git", branch = "getter-component" }
cgp-async-macro = { git = "https://github.com/contextgeneric/cgp.git", branch = "getter-component" }
cgp-component = { git = "https://github.com/contextgeneric/cgp.git", branch = "getter-component" }
cgp-component-macro = { git = "https://github.com/contextgeneric/cgp.git", branch = "getter-component" }
cgp-component-macro-lib = { git = "https://github.com/contextgeneric/cgp.git", branch = "getter-component" }
cgp-type = { git = "https://github.com/contextgeneric/cgp.git", branch = "getter-component" }
cgp-field = { git = "https://github.com/contextgeneric/cgp.git", branch = "getter-component" }
cgp-field-macro = { git = "https://github.com/contextgeneric/cgp.git", branch = "getter-component" }
cgp-field-macro-lib = { git = "https://github.com/contextgeneric/cgp.git", branch = "getter-component" }
cgp-error = { git = "https://github.com/contextgeneric/cgp.git", branch = "getter-component" }
cgp-error-extra = { git = "https://github.com/contextgeneric/cgp.git", branch = "getter-component" }
cgp-error-anyhow = { git = "https://github.com/contextgeneric/cgp.git", branch = "getter-component" }
cgp-run = { git = "https://github.com/contextgeneric/cgp.git", branch = "getter-component" }
cgp-runtime = { git = "https://github.com/contextgeneric/cgp.git", branch = "getter-component" }
cgp-inner = { git = "https://github.com/contextgeneric/cgp.git", branch = "getter-component" }
Loading

0 comments on commit c3c5cac

Please sign in to comment.