Skip to content

Commit 0dab876

Browse files
committed
Minor fixes
1 parent 639fe3e commit 0dab876

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

blog/2026-02-28-v0.7.0-release.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ tags: [release]
66

77
# Supercharge Rust functions with implicit arguments using CGP v0.7.0
88

9-
[CGP v0.7.0](https://crates.io/crates/cgp) has been released, bringing a major expansion to the CGP macro toolkit. The centerpiece of this release is a suite of new annotations — `#[cgp_fn]`, `#[implicit]`, `#[uses]`, `#[extend]`, `#[use_provider]`, and `#[use_type]` — that let you write context-generic code in plain function syntax with dramatically less boilerplate than before.
9+
[**CGP v0.7.0**](https://crates.io/crates/cgp) has been released, bringing a major expansion to the CGP macro toolkit. The centerpiece of this release is a suite of new annotations — `#[cgp_fn]`, `#[implicit]`, `#[uses]`, `#[extend]`, `#[use_provider]`, and `#[use_type]` — that let you write context-generic code in plain function syntax with dramatically less boilerplate than before.
1010

1111
<!-- truncate -->
1212

@@ -344,11 +344,11 @@ The word "implicit" may raise a flag for developers familiar with Scala's implic
344344

345345
## New area calculation tutorials
346346

347-
To accompany this release, two new **area calculation tutorials** have been published that build up the full CGP feature set from first principles.
347+
To accompany this release, two new [**area calculation tutorials**](/docs/tutorials/area-calculation/) have been published that build up the full CGP feature set from first principles.
348348

349-
The **Context-Generic Functions** tutorial starts from plain Rust and introduces `#[cgp_fn]`, `#[implicit]`, and `#[uses]`. It walks through the full desugaring of `rectangle_area` into Rust traits and blanket implementations, explains the `HasField`-based zero-cost field access model, and compares CGP's implicit arguments to Scala's implicit parameters for readers coming from other ecosystems.
349+
The [**Context-Generic Functions**](/docs/tutorials/area-calculation/context-generic-functions) tutorial starts from plain Rust and introduces `#[cgp_fn]`, `#[implicit]`, and `#[uses]`. It walks through the full desugaring of `rectangle_area` into Rust traits and blanket implementations, explains the `HasField`-based zero-cost field access model, and compares CGP's implicit arguments to Scala's implicit parameters for readers coming from other ecosystems.
350350

351-
The **Static Dispatch** tutorial introduces a second shape — the circle — to motivate a unified `CanCalculateArea` interface. It demonstrates Rust's coherence restrictions as a concrete problem, then resolves them using `#[cgp_component]` and named providers defined with `#[cgp_impl]`. Finally, it covers `delegate_components!` for configurable static dispatch and `#[use_provider]` for composing higher-order providers.
351+
The [**Static Dispatch**](/docs/tutorials/area-calculation/static-dispatch) tutorial introduces a second shape — the circle — to motivate a unified `CanCalculateArea` interface. It demonstrates Rust's coherence restrictions as a concrete problem, then resolves them using `#[cgp_component]` and named providers defined with `#[cgp_impl]`. Finally, it covers `delegate_components!` for configurable static dispatch and `#[use_provider]` for composing higher-order providers.
352352

353353
Both tutorials are designed to be read sequentially and assume no prior knowledge of CGP beyond basic Rust familiarity.
354354

src/css/custom.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
.theme-announcement-bar {
2626
font-size: 1.2em;
27-
--docusaurus-announcement-bar-height: 2em;
2827
}
2928

3029
[data-theme='light'] {

0 commit comments

Comments
 (0)