openlark_bot/lib.rs
1#![allow(clippy::module_inception)]
2//! # OpenLark 机器人模块
3//!
4//! OpenLark SDK 的机器人模块,提供飞书机器人搜索 API。
5//!
6//! ## 功能特性
7//!
8//! - **机器人搜索**: 按关键词搜索当前用户可见的机器人
9
10mod service;
11
12// bot 模块
13#[cfg(feature = "v4")]
14/// 机器人 API 模块。
15pub mod bot;
16
17// 重新导出核心服务
18/// 机器人服务统一入口。
19pub use service::BotService;
20
21/// 机器人服务客户端类型别名(统一命名为 `XxxClient`)。
22pub type BotClient = BotService;
23
24/// 机器人模块版本信息
25/// 当前 crate 版本号。
26pub const VERSION: &str = env!("CARGO_PKG_VERSION");
27
28#[cfg(test)]
29#[allow(unused_imports)]
30mod tests {
31 use super::*;
32
33 #[test]
34 fn test_version() {
35 assert_ne!(VERSION, "");
36 }
37}