Conversation
Greptile SummaryThis PR adds official Rust SDK support to the Appwrite website, including a quick-start guide, blog post, changelog entry, icon/asset additions, syntax highlighting registration, and Rust code examples across all major documentation pages (Auth, Databases, Storage, Functions, Messaging, and more). Key changes:
Confidence Score: 4/5Safe to merge after fixing the two Option<> type-safety issues in the session and user-agent snippets; the functions endpoint omission is minor. Two P1 issues exist: passing an unwrapped Option<> from req.cookie() directly to set_session in references/quick-start, and passing an unwrapped Option<> from req.header() to add_header in the SSR page. Both would cause compile errors for users copying the snippets. All other ~50 documentation files look correct and consistent. src/routes/docs/references/quick-start/+page.markdoc (session Option unwrap) and src/routes/docs/products/auth/server-side-rendering/+page.markdoc (user-agent Option unwrap)
|
| Filename | Overview |
|---|---|
| src/routes/docs/references/quick-start/+page.markdoc | Adds Rust client snippets for JWT, admin, and session clients; session snippet passes req.cookie() result (an Option<>) directly to set_session without unwrapping, which is a type error. |
| src/routes/docs/products/auth/server-side-rendering/+page.markdoc | Adds Rust snippets for all SSR auth patterns; req.header("user-agent") returns an Option<> that is passed directly to add_header without unwrapping; otherwise patterns are consistent with the framework-agnostic placeholder approach. |
| src/routes/docs/products/functions/execute/+page.markdoc | Adds Rust execution snippets; both omit .set_endpoint() call on the client, inconsistent with every other Rust example in the PR. |
| src/routes/docs/quick-starts/rust/+page.markdoc | New Rust quick-start guide; uses clean builder pattern with tokio async, creates database/table/rows, demonstrates queries with filters and pagination; no issues found. |
| src/lib/utils/code.ts | Adds Rust language support for syntax highlighting and platform alias mapping; straightforward addition following existing patterns. |
| src/lib/utils/references.ts | Adds ServerRust: 'server-rust' to the Platform enum and platformMap; correctly follows established patterns. |
| src/routes/docs/sdks/+page.markdoc | Adds Rust SDK entry (v0.2.0) to both the server SDKs table and enums table; includes correct dark/light logo variants and crates links. |
| src/routes/blog/post/announcing-appwrite-rust-sdk/+page.markdoc | New blog post announcing the Rust SDK with working code examples; content is accurate and well-structured. |
| src/routes/docs/products/databases/queries/+page.markdoc | Comprehensive addition of Rust query examples covering all filter types, geo-spatial queries, and compound and/or logic; patterns are consistent throughout. |
| src/routes/docs/products/databases/transactions/+page.markdoc | Adds Rust transaction examples (create, stage operations, bulk operations, commit/rollback); code is well-structured and consistent. |
Reviews (10): Last reviewed commit: "more greptile fixes" | Re-trigger Greptile
No description provided.