lib.rs 917 B

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