Skip to content

Commit d90ccd2

Browse files
alexeyzimarevclaude
andcommitted
Update CLAUDE.md: fix drift and add cross-link to agents.md
- List missing test/benchmark projects in Repository Layout - Correct IAuthenticator signature (async with CancellationToken) - Link to agents.md for deep-dive developer reference - Add find one-liner for inspecting generated source files Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9b2fe0a commit d90ccd2

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

CLAUDE.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
44

5+
For deep-dive details (build props hierarchy, source-generator internals, CI matrix, MinVer/packaging, troubleshooting), see [`agents.md`](agents.md) — it's the long-form developer reference.
6+
57
## Build & Test Commands
68

79
```bash
@@ -38,6 +40,10 @@ RestSharp is a lightweight HTTP API client library for .NET that wraps `HttpClie
3840
- `test/RestSharp.Tests/` — Unit tests
3941
- `test/RestSharp.Tests.Integrated/` — Integration tests (WireMock-based)
4042
- `test/RestSharp.Tests.Serializers.*/` — Serializer-specific tests
43+
- `test/RestSharp.Tests.DependencyInjection/` — DI extension tests
44+
- `test/RestSharp.Tests.Shared/` — Shared test utilities
45+
- `test/RestSharp.InteractiveTests/` — Manual/interactive tests
46+
- `benchmarks/RestSharp.Benchmarks/` — BenchmarkDotNet performance tests
4147

4248
## Architecture
4349

@@ -62,14 +68,15 @@ Abstract `Parameter` record base with concrete types: `HeaderParameter`, `QueryP
6268

6369
### Authentication (`Authenticators/`)
6470

65-
`IAuthenticator` with single `Authenticate(IRestClient, RestRequest)` method. Built-in: `HttpBasicAuthenticator`, `JwtAuthenticator`, OAuth1/OAuth2 authenticators. Set via `RestClientOptions.Authenticator`.
71+
`IAuthenticator` with single async method `ValueTask Authenticate(IRestClient, RestRequest, CancellationToken)`. Built-in: `HttpBasicAuthenticator`, `JwtAuthenticator`, OAuth1/OAuth2 authenticators. Set via `RestClientOptions.Authenticator`.
6672

6773
### Source Generators (`gen/SourceGenerator/`)
6874

6975
- `[GenerateImmutable]` — Creates read-only wrapper (used on `RestClientOptions`)
7076
- `[GenerateClone]` — Creates static factory clone methods (used on `RestResponse<T>`)
7177
- `[Exclude]` — Excludes properties from immutable generation
7278
- Generator target must be `netstandard2.0`. Inspect output in `obj/<Config>/<TFM>/generated/SourceGenerator/`.
79+
- Quick listing: `find src/RestSharp/obj/Debug -name "*.g.cs" -o -name "ReadOnly*.cs"`
7380

7481
## Multi-Targeting
7582

0 commit comments

Comments
 (0)