1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
#![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) } } }