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
#![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 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); } 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) } } }