Skip to main content

corundum_framework_package/
lib.rs

1//! A desktop app as a Velopack package.
2//!
3//! [`start`] is the first thing an app's `main` runs: Velopack's own start, the Windows
4//! install and uninstall hooks, and which [`Start`] this is (the first, the first after an
5//! update, or neither), told from the version the app last ran with. [`Updater`] finds and
6//! downloads updates by itself and applies one only when asked, after the app's
7//! `before_apply`.
8//!
9//! Velopack packages the desktops only; on iOS and Android the crate is empty.
10
11#[cfg(not(any(target_os = "ios", target_os = "android")))]
12mod backend;
13#[cfg(not(any(target_os = "ios", target_os = "android")))]
14pub mod cli_path;
15#[cfg(not(any(target_os = "ios", target_os = "android")))]
16pub mod console;
17#[cfg(not(any(target_os = "ios", target_os = "android")))]
18mod error;
19#[cfg(not(any(target_os = "ios", target_os = "android")))]
20mod services;
21#[cfg(not(any(target_os = "ios", target_os = "android")))]
22mod start;
23#[cfg(not(any(target_os = "ios", target_os = "android")))]
24mod updater;
25
26#[cfg(not(any(target_os = "ios", target_os = "android")))]
27pub use cli_path::CliSpec;
28#[cfg(not(any(target_os = "ios", target_os = "android")))]
29pub use error::Error;
30#[cfg(not(any(target_os = "ios", target_os = "android")))]
31pub use semver::Version;
32#[cfg(not(any(target_os = "ios", target_os = "android")))]
33pub use services::Services;
34#[cfg(not(any(target_os = "ios", target_os = "android")))]
35pub use start::{PackageSpec, Start, start};
36#[cfg(not(any(target_os = "ios", target_os = "android")))]
37pub use updater::{After, Source, Updater};