From e30da2d1e38ec9b98a3fcd5314a073c4ef32baed Mon Sep 17 00:00:00 2001 From: Dani Akash Date: Fri, 23 Oct 2026 12:01:49 +0530 Subject: [PATCH 1/2] feat(website): lead the homepage with a one-prompt agent setup Try it now becomes two tabs that share the quick start's synced choice. The default tab, Let your agent do it, sits in an accent-framed panel marked Recommended: copy the prompt, paste it into Claude Code, Codex, Cursor or another agent, and review the diff. Do it yourself keeps the curl one-liner. The hero's primary action now jumps to the agent setup, with the quick start as the secondary action. --- website/src/content/docs/index.mdx | 44 +++++++++++++++++++++++++++--- website/src/styles/theme.css | 18 ++++++++++++ 2 files changed, 58 insertions(+), 4 deletions(-) diff --git a/website/src/content/docs/index.mdx b/website/src/content/docs/index.mdx index 42f3da3..e11a1b3 100644 --- a/website/src/content/docs/index.mdx +++ b/website/src/content/docs/index.mdx @@ -6,15 +6,16 @@ head: - tag: title content: "Google Rust Style Guide Kit: rustfmt, Clippy and AGENTS.md Configs" hero: - tagline: Drop-in rustfmt, clippy and cargo-deny configuration, AGENTS.md for coding agents, and a human review guide for Google's Rust style guide. Adopt it in five minutes. + tagline: Drop-in rustfmt, clippy and cargo-deny configuration, AGENTS.md for coding agents, and a human review guide for Google's Rust style guide. Hand one prompt to your coding agent, or set it up yourself in five minutes. image: file: ../../assets/logo.svg actions: + - text: Set up with your agent + link: /Google-Rust-Style-Guide/#try-it-now + icon: rocket - text: Quick start link: /Google-Rust-Style-Guide/quick-start/ icon: right-arrow - - text: What gets enforced - link: /Google-Rust-Style-Guide/coverage/ variant: minimal - text: GitHub link: https://github.com/DaniAkash/Google-Rust-Style-Guide @@ -22,10 +23,42 @@ hero: variant: minimal --- -import { Aside, Card, CardGrid, LinkCard } from '@astrojs/starlight/components'; +import { Aside, Badge, Card, CardGrid, LinkCard, Steps, TabItem, Tabs } from '@astrojs/starlight/components'; ## Try it now + + + +
+ + + +**One prompt, zero config work.** Your coding agent downloads the configs, turns on the lints, runs fmt, clippy and cargo-deny, and fixes your code until everything is green. + + + +1. **Copy the prompt** + + ```text title="Prompt" wrap + Apply the Google Rust Style Guide kit to this repository. + Follow the instructions at + https://daniakash.github.io/Google-Rust-Style-Guide/_llms-txt/for-coding-agents.txt + Then run cargo +nightly fmt, cargo clippy --workspace --all-targets -- -D warnings, + and cargo deny check bans, and fix what they report without editing the lint configuration. + ``` + +2. **Paste it into your agent** from your project root. Works with Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot and any agent that can run commands. + +3. **Review the diff.** Expect new config files, lint tables in `Cargo.toml`, and fixes in your code. The lint configuration itself should match the [downloaded files](/Google-Rust-Style-Guide/config/cargo-lints/) exactly. + + + +
+ +
+ + Run this in a single-crate Cargo project. It adds five files, turns on the lints, and shows you what the guide flags. Existing files are never overwritten. ```sh title="Terminal" @@ -39,6 +72,9 @@ cargo clippy --all-targets Using a workspace, or want each step explained? The [quick start](/Google-Rust-Style-Guide/quick-start/) walks through it in four steps with the expected output. + +
+ ## Every rule has exactly one home [Google's Rust style guide](https://google.github.io/styleguide/rustguide.html) mixes mechanical rules with design judgment. The kit gives each rule to the cheapest layer that can hold it. diff --git a/website/src/styles/theme.css b/website/src/styles/theme.css index 2786d5c..753bf61 100644 --- a/website/src/styles/theme.css +++ b/website/src/styles/theme.css @@ -15,3 +15,21 @@ starlight-file-tree .comment { color: var(--sl-color-gray-2); } + +/* Homepage: the agent path is the recommended way in, so it gets an accent-framed panel. */ +.agent-panel { + border: 1px solid var(--sl-color-accent); + border-radius: 0.75rem; + background: color-mix(in srgb, var(--sl-color-accent-low) 45%, transparent); + padding: 1.25rem 1.5rem; +} + +.agent-panel > :first-child { + margin-top: 0; +} + +@media (max-width: 50rem) { + .agent-panel { + padding: 1rem; + } +} From 80db98ddbf3f3db41c3937966c6bdec19845387c Mon Sep 17 00:00:00 2001 From: Dani Akash Date: Fri, 23 Oct 2026 12:02:32 +0530 Subject: [PATCH 2/2] style(website): frame the agent panel with a neutral outline The orange border and tinted fill looked heavy against both themes. The panel now uses a plain gray outline with no fill, and the Recommended badge is the only accent. --- website/src/styles/theme.css | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/website/src/styles/theme.css b/website/src/styles/theme.css index 753bf61..e507b31 100644 --- a/website/src/styles/theme.css +++ b/website/src/styles/theme.css @@ -16,11 +16,10 @@ starlight-file-tree .comment { color: var(--sl-color-gray-2); } -/* Homepage: the agent path is the recommended way in, so it gets an accent-framed panel. */ +/* Homepage: a quiet card frames the recommended agent path; the badge carries the accent. */ .agent-panel { - border: 1px solid var(--sl-color-accent); + border: 1px solid var(--sl-color-gray-5); border-radius: 0.75rem; - background: color-mix(in srgb, var(--sl-color-accent-low) 45%, transparent); padding: 1.25rem 1.5rem; }