lib.rs 846 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #![cfg_attr(
  2. all(not(debug_assertions), target_os = "windows"),
  3. windows_subsystem = "windows"
  4. )]
  5. pub mod command;
  6. pub mod dir;
  7. pub mod file;
  8. pub mod rpc;
  9. pub mod version;
  10. pub mod tcp;
  11. pub use tauri_utils::*;
  12. use error_chain::error_chain;
  13. error_chain! {
  14. foreign_links {
  15. Io(::std::io::Error);
  16. ZipError(::zip::result::ZipError);
  17. SemVer(::semver::SemVerError);
  18. Platform(::tauri_utils::Error);
  19. }
  20. errors {
  21. Extract(t: String) {
  22. description("Extract Error")
  23. display("Extract Error: '{}'", t)
  24. }
  25. Command(t: String) {
  26. description("Command Execution Error")
  27. display("Command Error: '{}'", t)
  28. }
  29. File(t: String) {
  30. description("File function Error")
  31. display("File Error: {}", t)
  32. }
  33. }
  34. }