burncloud_auto_update/lib.rs
1//! BurnCloud 自动更新库
2//!
3//! 提供从 GitHub 自动更新应用程序的功能,失败时提供手动下载链接。
4//!
5//! # 示例
6//!
7//! ```rust,no_run
8//! use burncloud_auto_update::{AutoUpdater, UpdateConfig, UpdateResult};
9//!
10//! fn main() -> UpdateResult<()> {
11//! let updater = AutoUpdater::with_default_config();
12//!
13//! // 使用同步 API 避免运行时冲突
14//! if updater.sync_check_for_updates()? {
15//! updater.sync_update()?;
16//! }
17//!
18//! Ok(())
19//! }
20//! ```
21
22pub mod config;
23pub mod updater;
24pub mod error;
25
26pub use config::UpdateConfig;
27pub use updater::AutoUpdater;
28pub use error::{UpdateError, UpdateResult};