fix(channels): enable matrix+lark in default build features
This commit is contained in:
parent
0083aece57
commit
51d9d0d9e8
@ -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"]
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user