added rust server
Build Unsigned iOS and macOS Apps / Build Unsigned iOS IPA (push) Canceled after 0s
Build Unsigned iOS and macOS Apps / Build macOS ZIP (push) Canceled after 0s

This commit is contained in:
wt committed 2026-10-29 18:05:24 +07:00
1 parent a2aa714a83
commit b32eabcd12
21 files changed
+5199 -143

No files matched your search

+14 -2
View File
@@ -8,7 +8,12 @@
## Быстрая карта проекта
Проект написан на Go 1.25.0.
Production-сервер написан на Rust 1.90+. Go 1.25.0+ сохранён как
эталон совместимости API/SQLite и вариант отката.
Основные Rust-модули: `src/main.rs`, `runtime.rs`, `config.rs`,
`database.rs`, `auth.rs`, `server.rs`, `sync.rs`, `go_json.rs`.
Веб-клиент из `internal/httpapi/web` встроен в Rust executable.
Основные Go-файлы:
@@ -77,7 +82,7 @@
### 5. Конкурентность
Go server должен быть безопасен при одновременных запросах от нескольких устройств.
Сервер должен быть безопасен при одновременных запросах от нескольких устройств.
Особое внимание:
- генерации sequence;
@@ -97,6 +102,11 @@ HTTP API должен возвращать стабильную структур
Перед PR:
```bash
cargo fmt --check
cargo test --locked
cargo clippy --locked --all-targets -- -D warnings
cargo build --locked --release
python3 tools/compatibility.py --rust-binary target/release/balance-server
go test ./...
go vet ./...
go build ./...
@@ -121,5 +131,7 @@ go build ./...
- [ ] DB migration учтена.
- [ ] Concurrent requests безопасны.
- [ ] `go test ./...` проходит.
- [ ] Rust tests, fmt, clippy и release build проходят.
- [ ] Differential HTTP/JSON и Go ↔ Rust SQLite takeover проходят.
- [ ] `go vet ./...` проходит.
- [ ] Документация обновлена.