mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
50 lines
1.2 KiB
Rust
50 lines
1.2 KiB
Rust
#![cfg_attr(
|
|
all(not(debug_assertions), target_os = "windows"),
|
|
windows_subsystem = "windows"
|
|
)]
|
|
|
|
pub mod command;
|
|
pub mod dir;
|
|
pub mod file;
|
|
pub mod rpc;
|
|
pub mod version;
|
|
pub mod tcp;
|
|
pub mod dialog;
|
|
pub mod path;
|
|
pub mod http;
|
|
|
|
pub use tauri_utils::*;
|
|
|
|
use error_chain::error_chain;
|
|
|
|
error_chain! {
|
|
foreign_links {
|
|
Io(::std::io::Error);
|
|
ZipError(::zip::result::ZipError);
|
|
SemVer(::semver::SemVerError);
|
|
Platform(::tauri_utils::Error);
|
|
Json(::serde_json::Error);
|
|
Http(::attohttpc::Error);
|
|
HttpMethod(::http::method::InvalidMethod);
|
|
HttpHeaderName(::http::header::InvalidHeaderName);
|
|
}
|
|
errors {
|
|
Extract(t: String) {
|
|
description("Extract Error")
|
|
display("Extract Error: '{}'", t)
|
|
}
|
|
Command(t: String) {
|
|
description("Command Execution Error")
|
|
display("Command Error: '{}'", t)
|
|
}
|
|
File(t: String) {
|
|
description("File function Error")
|
|
display("File Error: {}", t)
|
|
}
|
|
Path(t: String) {
|
|
description("Path function Error")
|
|
display("Path Error: {}", t)
|
|
}
|
|
}
|
|
}
|