• v0.3.2 f6cf583cd7

    v0.3.2: Cargo features 拆分

    xt released this 2026-07-19 13:07:39 +08:00 | 12 commits to main since this release

    通过 Cargo features 拆分让下游按需选择模块,跳过不需要的编译单元和重型依赖。

    主要内容:

    • 16 个 features(10 模块级 + 5 provider + 1 工具)+ 4 个快捷组合(full/light/chat/multi)
    • 12 个重型依赖 optional 化(tokio/reqwest/rusqlite 等)
    • tokio features 从 full 拆细为 rt/sync/time/macros/process/io-util
    • 全模块 cfg 门控(llm-types/document/prompt/llm/tools/mcp/memory/sqlite/agent/engine)
    • LlmProvider trait 移至 provider_trait.rs,归属 llm feature
    • CI 测试矩阵:6 种 feature 组合 + clippy + format + examples
    • 18 个 example 添加 required-features 声明
    • README 添加 feature 表格 + 快捷组合 + 升级指南

    向后兼容:default = ["full"] 保持 v0.3 行为不变。

    Downloads