- Run cargo fmt across the drosync workspace. - Fix clippy -D warnings failures (pedantic): collapse nested ifs with let-chains, replace wildcard imports, add #[must_use], use unsigned_abs() for clamped i64->u64 casts, rename Phase.phase field, and allow too_many_lines/too_many_arguments where the repo already does. - gofmt internal/lightweight/lightweight_test.go. - Prettier-format three frontend test files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
drosync Rust workspace
当前客户端 1.0.34 修复排队源文件缺失的统计/筛选,以及日志回退时旧路径阻塞同步的问题。见 修复验收 和 完整配置说明。
Workspace crates:
core: mapping policy, bounded stable-file hashing, manifest inputs.protocol: OpenAPI-derived state enums and wire DTOs.state: WAL SQLite migrations and crash/multipart journal.transfer: rustls HTTP client, bounded control requests and shared configurable PUT permits, integrity-bound streaming upload.platform: directories, OS credential store, and headless secret policy.cli: fixeddrosynccommand surface.daemon: IPC owner and scan/plan/upload/commit orchestration.updater: Ed25519 and artifact verification.
Development:
cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
Release packaging lives under packaging/; signing material is required from CI secrets.
Canonical commands and retired capabilities: CLI reference and single-entry contract. Web is read-only; no GUI package is built.
Historical 1.0.6 workflows and acceptance: closure manual. Release v2 separates immutable Ed25519 payloads from rollout policy; old manifests and user-startup/user-service delivery are retired.
Metadata/timeout/BOS repair evidence: 1.0.6 repair record.
Historical 1.0.7 daily-upload V1.1 requirements and usage: traceability and implementation. Runtime configuration is a shared literal file: all keys and retired inputs.
客户端日志(1.0.27)
默认 INFO 输出同步阶段、逐文件结果、恢复记录和一轮总结;DEBUG 增加控制请求与 BOS PUT 结果、分片和单文件哈希耗时,不逐块记录数据。启动配置文件可设置:
DROSYNC_LOG_LEVEL=info
DROSYNC_LOG_MAX_BYTES=33554432
DROSYNC_LOG_KEEP_FILES=3
临时排查可改为 DROSYNC_LOG_LEVEL=debug,在保留状态和源文件的前提下重启同一配置的客户端服务。日志级别在进程启动时生效。run_id 标识一次同步尝试,Session 可以跨多个 run 恢复;使用 Session 关联跨重启记录。配置说明、字段含义和排查示例见 客户端日志增强说明。
文件级日报(1.0.32)
1.0.33 新增实时扫描 / MD5 准备进度和当前同步阶段,包含处理字节、平均校验速度、耗时、预计剩余时间、等待原因以及 Run/Session 信息。生产或持续大文件运行请使用 Release 优化构建。见 详细阶段与真实文件验收。
drosync -c /path/environment web --mapping MAPPING_ID 打开只读日报。先选择采集日期,页面同时显示文件数与 Episode 批次数;默认优先定位缺失文件,其次失败或冲突文件。文件明细支持按状态及完整路径搜索,每页 50 个文件,使用首页/下一页浏览全部清单。
已完成、处理中、失败、缺失和已清理五种文件状态互斥,合计等于总文件数。缺失行给出完整相对路径与原因;本地源删除但有历史回执的文件仍可定位。云端确认大小来自本机回执,未知大小显示 —;文件明细沿用源文件身份校验,不增加额外文件哈希扫描或云端下载。批次明细仍使用 episodes,日报导出仍使用 report;没有新增业务命令。实现与本机真实收据验收见 文件级日报说明。