Skip to content

Commit 498cef5

Browse files
authored
Update book content to v0.4.0 release (#29)
* Update cgp to v0.4.0 * Fix chapters up to Associated Types * Fix errors in error handling chapters * Fix errors in field accessor chapters * Fix remaining chapters * Adding IsProviderFor section * Adding more writings for IsProviderFor * Add section for CanUseComponent * Finish updating debugging chapter * Finish updating Components Macros chapter * Rename HasProvider to HasCgpProvider * Use delegate_and_checks! to simplify examples * Add section for #[cgp_context] macro * Revise associated type sections * Revise field-accessors * AI-revise section * Revise introduction * AI-revise section * Update to published version of `cgp`
1 parent afc487f commit 498cef5

21 files changed

+1836
-1548
lines changed

.rustfmt.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
max_width = 80
2+
reorder_imports = true
3+
group_imports = "StdExternalCrate"
4+
imports_granularity = "Module"

Cargo.lock

Lines changed: 51 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
cgp = { version = "0.3.0" }
8-
cgp-error-anyhow = { version = "0.3.0" }
7+
cgp = { version = "0.4.0" }
8+
cgp-error-anyhow = { version = "0.4.0" }
99
serde = { version = "1", features = ["derive"] }
1010
reqwest = { version = "0.12.12", features = [ "blocking", "json" ] }
1111
itertools = { version = "0.14.0" }
@@ -21,12 +21,10 @@ sha1 = { version = "0.10.6" }
2121
# cgp-async = { git = "https://github.com/contextgeneric/cgp.git" }
2222
# cgp-async-macro = { git = "https://github.com/contextgeneric/cgp.git" }
2323
# cgp-component = { git = "https://github.com/contextgeneric/cgp.git" }
24-
# cgp-component-macro = { git = "https://github.com/contextgeneric/cgp.git" }
25-
# cgp-component-macro-lib = { git = "https://github.com/contextgeneric/cgp.git" }
24+
# cgp-macro = { git = "https://github.com/contextgeneric/cgp.git" }
25+
# cgp-macro-lib = { git = "https://github.com/contextgeneric/cgp.git" }
2626
# cgp-type = { git = "https://github.com/contextgeneric/cgp.git" }
2727
# cgp-field = { git = "https://github.com/contextgeneric/cgp.git" }
28-
# cgp-field-macro = { git = "https://github.com/contextgeneric/cgp.git" }
29-
# cgp-field-macro-lib = { git = "https://github.com/contextgeneric/cgp.git" }
3028
# cgp-error = { git = "https://github.com/contextgeneric/cgp.git" }
3129
# cgp-error-extra = { git = "https://github.com/contextgeneric/cgp.git" }
3230
# cgp-error-anyhow = { git = "https://github.com/contextgeneric/cgp.git" }

content/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
- [Provider Traits](provider-traits.md)
1616
- [Linking Consumers with Providers](consumer-provider-link.md)
1717
- [Provider Delegation](provider-delegation.md)
18+
- [Debugging Support](debugging-support.md)
1819
- [Component Macros](component-macros.md)
19-
- [Debugging Techniques](debugging-techniques.md)
2020

2121
# Design Patterns
2222

0 commit comments

Comments
 (0)