0xMiden / 0xMiden/docs

[Docs] Missing Rust code examples in Accounts quickstart page

Đang mở
#162 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
10
Fork
50
Merge trung bình
22 ngày 23 giờ
Pull request đã merge (30 ngày)
1

Mô tả

## Summary

The Accounts quickstart page (`docs/builder/quick-start/accounts.md`) provides Rust environment setup instructions but then only includes TypeScript code examples, leaving Rust developers with a dead end.

## Problem

The page instructs Rust users to set up their environment:

```bash
touch src/bin/demo.rs
cargo run --bin demo --release
```

It then presents tabbed code examples (TypeScript/Rust) for "Creating Accounts Programmatically" and "Creating a Token Faucet." However, the Rust tab appears to be empty or missing actual code, while the TypeScript tab has complete working examples.

A developer following the Rust path would:
1. Set up their Rust binary as instructed
2. Click the "Rust" tab for the code example
3. Find no code to put in the file they just created

## Suggested Fix

Add complete Rust code examples for the "Creating Accounts Programmatically" and "Creating a Token Faucet" sections, matching the pattern already used in the Notes & Transactions page (`notes.md`) which does include full Rust examples using `AccountBuilder`, `ClientBuilder`, etc.

The Rust examples in `notes.md` (mint.rs, consume.rs, send.rs) already demonstrate the same account creation flow and could serve as a reference for the missing code.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.