Skip to content

docs(connectivity): expand thin module headers (psc, transit_gateway, vpc_peering)#93

Merged
joshrotenberg merged 1 commit into
mainfrom
docs/connectivity-module-headers
May 19, 2026
Merged

docs(connectivity): expand thin module headers (psc, transit_gateway, vpc_peering)#93
joshrotenberg merged 1 commit into
mainfrom
docs/connectivity-module-headers

Conversation

@joshrotenberg
Copy link
Copy Markdown
Contributor

Summary

psc.rs, transit_gateway.rs, and vpc_peering.rs had three-line module headers despite each hosting 9–19 public methods. This PR brings them up to the same depth as private_link.rs (which already has a multi-paragraph Overview).

What each module header now carries

  • A one-paragraph summary of what the module is for
  • A "When to use this module" section distinguishing it from the three sibling connectivity modules (so a reader picking between VPC peering / PSC / Transit Gateway / PrivateLink has a single place to disambiguate)
  • The full REST endpoint surface (standard + Active-Active variants)
  • A blanket # Errors note pointing at CloudError
  • A runnable example on vpc_peering using the for_aws constructor from fix(connectivity): vpc_peering create sends wrong JSON keys (awsRegion vs region) #75

private_link.rs is left untouched — its header was already fine.

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace — all pass; 71 doctests (was 70: the new vpc_peering example)

Refs #80

… vpc_peering)

The headers on psc.rs, transit_gateway.rs, and vpc_peering.rs were
three lines each despite each module hosting 9-19 public methods. Now
each header carries:

- A one-paragraph summary of what the module is for
- A 'When to use this module' section that distinguishes it from the
  three sibling connectivity modules (vpc_peering vs psc vs
  transit_gateway vs private_link)
- The full REST endpoint surface (standard + Active-Active)
- A blanket 'Errors' note pointing at CloudError
- A runnable example on vpc_peering using the for_aws constructor

private_link.rs already has a multi-paragraph Overview section and is
left as-is.

71 doctests pass (was 70 — the new vpc_peering example).

Refs #80 (rustdoc umbrella — P2 thin-module-headers slice)
@joshrotenberg joshrotenberg merged commit f2ee063 into main May 19, 2026
8 checks passed
@joshrotenberg joshrotenberg deleted the docs/connectivity-module-headers branch May 19, 2026 18:29
joshrotenberg added a commit that referenced this pull request May 19, 2026
…nks (#98)

All 368 missing-docs errors surfaced by the 2026-05 review are now
closed across the cloud crate (#90, #91, #92, #93, #94, #95, #96).
This commit promotes those lints to compile errors so the bar
cannot regress without a deliberate decision.

- Adds #![deny(missing_docs)] to lib.rs — every public item must
  carry a docstring.
- Adds #![deny(rustdoc::broken_intra_doc_links)] — the intra-doc
  links added throughout the rustdoc pass (TaskStateUpdate ↔
  TaskStatus, ConnectivityHandler delegation pointers, etc.) stay
  valid going forward.

No source-level behavior changes. cargo fmt, cargo clippy
--workspace --all-targets -- -D warnings, cargo test --workspace,
and cargo doc --no-deps all pass.

Closes #80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant