Skip to content

Commit 155b997

Browse files
committed
docs: standardize agent instructions
1 parent 384070e commit 155b997

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type: project
66

77
## Design Decisions
88

9-
**Single-file API (~140 lines in main.rs):**
9+
**Single-file API (173 total lines in main.rs):**
1010
- All routes, DTOs, validation, and DB calls in one file
1111
- Intentionally minimal — the challenge rewards simplicity and performance, not abstractions
1212

CLAUDE.md renamed to AGENTS.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
# Rinha de Backend 2024/Q1 — Rust Implementation
1+
# Rinha de Backend 2024/Q1 — Rust Implementation Agent Guide
22

33
High-performance banking API built with Rust/Actix-web for the Rinha de Backend challenge. Handles concurrent transactions under strict resource constraints (1.5 CPU, 550MB RAM).
44

5+
This repository uses the standardized `AGENTS.md` + `.agents/` agent-instrumentation layout. Do not recreate legacy tool-specific instruction files.
6+
57
---
68

79
## Tech Stack
810

911
| Technology | Purpose |
1012
|-----------|---------|
11-
| Rust 1.94 | Language |
13+
| Rust 1.95 builder / Cargo edition 2024 | Language |
1214
| Actix-web 4 | Async HTTP framework |
1315
| SQLx 0.8 | Compile-time checked PostgreSQL queries |
1416
| PostgreSQL 16.7 | Database with stored procedures |
@@ -40,7 +42,7 @@ NGINX (:9999, least_conn)
4042
└── GetSaldoClienteById() — statement with JSONB aggregation
4143
```
4244

43-
**Single-file API** (~140 lines in `src/WebApi/main.rs`). All business logic in PostgreSQL stored procedures.
45+
**Single-file API** (173 total lines in `src/WebApi/main.rs`). All business logic in PostgreSQL stored procedures.
4446

4547
---
4648

@@ -80,9 +82,9 @@ NGINX (:9999, least_conn)
8082
```
8183
rinha2-back-end-rust/
8284
├── src/WebApi/
83-
│ ├── main.rs # Complete API (~140 lines)
85+
│ ├── main.rs # Complete API (173 total lines)
8486
│ ├── Cargo.toml # Dependencies
85-
│ ├── Dockerfile # Multi-stage: rust:1.94 → debian:bookworm-slim
87+
│ ├── Dockerfile # Multi-stage: rust:1.95 → debian:bookworm-slim
8688
│ └── .sqlx/ # SQLx offline query cache
8789
├── docker-entrypoint-initdb.d/
8890
│ └── rinha.dump.sql # Schema + stored procedures + seed data

0 commit comments

Comments
 (0)