From 51d9d0d9e82fd537a1ad2eeeec000b6d61eeae03 Mon Sep 17 00:00:00 2001 From: Chummy Date: Tue, 24 Feb 2026 10:38:57 +0000 Subject: [PATCH] fix(channels): enable matrix+lark in default build features --- Cargo.toml | 2 +- docs/channels-reference.md | 14 +++++++------- docs/i18n/vi/channels-reference.md | 14 ++++++++++---- docs/vi/channels-reference.md | 14 ++++++++++---- 4 files changed, 28 insertions(+), 16 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 700aabaf1..a317439ff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -180,7 +180,7 @@ rppal = { version = "0.22", optional = true } landlock = { version = "0.4", optional = true } [features] -default = [] +default = ["channel-matrix", "channel-lark"] hardware = ["nusb", "tokio-serial"] channel-matrix = ["dep:matrix-sdk"] channel-lark = ["dep:prost"] diff --git a/docs/channels-reference.md b/docs/channels-reference.md index 0614fe6d2..caa9ad449 100644 --- a/docs/channels-reference.md +++ b/docs/channels-reference.md @@ -76,23 +76,23 @@ Operational notes: Matrix and Lark support are controlled at compile time. -- Default builds are lean (`default = []`) and do not include Matrix/Lark. -- Typical local check with only hardware support: +- Default builds include Matrix and Lark/Feishu (`default = ["channel-matrix", "channel-lark"]`). +- For a lean local build without these channels: ```bash -cargo check --features hardware +cargo check --no-default-features --features hardware ``` -- Enable Matrix explicitly when needed: +- Enable Matrix explicitly in a custom feature set: ```bash -cargo check --features hardware,channel-matrix +cargo check --no-default-features --features hardware,channel-matrix ``` -- Enable Lark explicitly when needed: +- Enable Lark explicitly in a custom feature set: ```bash -cargo check --features hardware,channel-lark +cargo check --no-default-features --features hardware,channel-lark ``` If `[channels_config.matrix]`, `[channels_config.lark]`, or `[channels_config.feishu]` is present but the corresponding feature is not compiled in, `zeroclaw channel list`, `zeroclaw channel doctor`, and `zeroclaw channel start` will report that the channel is intentionally skipped for this build. diff --git a/docs/i18n/vi/channels-reference.md b/docs/i18n/vi/channels-reference.md index 5d7ca2840..2996980e0 100644 --- a/docs/i18n/vi/channels-reference.md +++ b/docs/i18n/vi/channels-reference.md @@ -69,11 +69,11 @@ Lưu ý vận hành: ## Channel Matrix -### Tùy chọn Build Feature (`channel-matrix`) +### Tùy chọn Build Feature (`channel-matrix`, `channel-lark`) -Hỗ trợ Matrix được kiểm soát tại thời điểm biên dịch bằng Cargo feature `channel-matrix`. +Hỗ trợ Matrix và Lark/Feishu được kiểm soát tại thời điểm biên dịch bằng Cargo features. -- Các bản build mặc định đã bao gồm hỗ trợ Matrix (`default = ["hardware", "channel-matrix"]`). +- Các bản build mặc định đã bao gồm Matrix và Lark/Feishu (`default = ["channel-matrix", "channel-lark"]`). - Để lặp lại nhanh hơn khi không cần Matrix: ```bash @@ -86,7 +86,13 @@ cargo check --no-default-features --features hardware cargo check --no-default-features --features hardware,channel-matrix ``` -Nếu `[channels_config.matrix]` có mặt nhưng binary được build mà không có `channel-matrix`, các lệnh `zeroclaw channel list`, `zeroclaw channel doctor`, và `zeroclaw channel start` sẽ ghi log rằng Matrix bị bỏ qua có chủ ý trong bản build này. +- Để bật tường minh hỗ trợ Lark/Feishu trong feature set tùy chỉnh: + +```bash +cargo check --no-default-features --features hardware,channel-lark +``` + +Nếu `[channels_config.matrix]`, `[channels_config.lark]`, hoặc `[channels_config.feishu]` có mặt nhưng binary được build mà không có feature tương ứng, các lệnh `zeroclaw channel list`, `zeroclaw channel doctor`, và `zeroclaw channel start` sẽ ghi log rằng channel đó bị bỏ qua có chủ ý trong bản build này. --- diff --git a/docs/vi/channels-reference.md b/docs/vi/channels-reference.md index 246b64a7f..15b4c989c 100644 --- a/docs/vi/channels-reference.md +++ b/docs/vi/channels-reference.md @@ -69,11 +69,11 @@ Lưu ý vận hành: ## Channel Matrix -### Tùy chọn Build Feature (`channel-matrix`) +### Tùy chọn Build Feature (`channel-matrix`, `channel-lark`) -Hỗ trợ Matrix được kiểm soát tại thời điểm biên dịch bằng Cargo feature `channel-matrix`. +Hỗ trợ Matrix và Lark/Feishu được kiểm soát tại thời điểm biên dịch bằng Cargo features. -- Các bản build mặc định đã bao gồm hỗ trợ Matrix (`default = ["hardware", "channel-matrix"]`). +- Các bản build mặc định đã bao gồm Matrix và Lark/Feishu (`default = ["channel-matrix", "channel-lark"]`). - Để lặp lại nhanh hơn khi không cần Matrix: ```bash @@ -86,7 +86,13 @@ cargo check --no-default-features --features hardware cargo check --no-default-features --features hardware,channel-matrix ``` -Nếu `[channels_config.matrix]` có mặt nhưng binary được build mà không có `channel-matrix`, các lệnh `zeroclaw channel list`, `zeroclaw channel doctor`, và `zeroclaw channel start` sẽ ghi log rằng Matrix bị bỏ qua có chủ ý trong bản build này. +- Để bật tường minh hỗ trợ Lark/Feishu trong feature set tùy chỉnh: + +```bash +cargo check --no-default-features --features hardware,channel-lark +``` + +Nếu `[channels_config.matrix]`, `[channels_config.lark]`, hoặc `[channels_config.feishu]` có mặt nhưng binary được build mà không có feature tương ứng, các lệnh `zeroclaw channel list`, `zeroclaw channel doctor`, và `zeroclaw channel start` sẽ ghi log rằng channel đó bị bỏ qua có chủ ý trong bản build này. ---