Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ repository = "https://github.com/ThinkWatchProject/ThinkWatch-Core"

# 二进制走 CalVer,crate 走 SemVer —— 两者是两回事,卖给不同的人。
# 这里是 crate 的版本。
version = "0.9.1"
version = "0.10.0"

[workspace.dependencies]
# ── 内部 crate ───────────────────────────────────────────
Expand Down
6 changes: 5 additions & 1 deletion crates/tw-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ pub use tw_types::Msg;

/// 控制面协议版本。UI 和 CLI 连上来时检查,不匹配就明确提示「请升级
/// 客户端」,而不是以奇怪的方式失败。
pub const CONTROL_API_VERSION: u32 = 1;
///
/// **2 起,凡是给人看的一句话都是 [`Msg`],不是 `String`。**错误响应的
/// 响应体也从纯文本变成了 JSON。照 1 写的客户端会把这些当字符串显示,
/// 屏幕上是一坨 JSON —— 所以这里要跳号,让它在连上的那一刻就失败。
pub const CONTROL_API_VERSION: u32 = 2;

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Status {
Expand Down
Loading