We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c7d8aa commit 08bc111Copy full SHA for 08bc111
src/error.rs
@@ -0,0 +1,21 @@
1
+use thiserror::Error;
2
+
3
+#[derive(Error, Debug)]
4
+pub enum Error {
5
+ #[error("IO error: {0}")]
6
+ Io(#[from] std::io::Error),
7
8
+ #[error("Invalid update information: {0}")]
9
+ InvalidUpdateInfo(String),
10
11
+ #[error("HTTP error: {0}")]
12
+ Http(String),
13
14
+ #[error("GitHub API error: {0}")]
15
+ GitHubApi(String),
16
17
+ #[error("AppImage error: {0}")]
18
+ AppImage(String),
19
+}
20
21
+pub type Result<T> = std::result::Result<T, Error>;
src/lib.rs
@@ -0,0 +1,7 @@
+pub mod appimage;
+pub mod error;
+pub mod update_info;
+pub mod updater;
+pub use error::Error;
+pub use updater::Updater;
0 commit comments