lib.rs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #![doc = include_str!("readme.md")]
  2. #![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
  3. #![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
  4. #![deny(missing_docs)]
  5. #![cfg_attr(docsrs, feature(doc_cfg))]
  6. mod app;
  7. mod assets;
  8. mod config;
  9. mod desktop_context;
  10. mod document;
  11. mod edits;
  12. mod element;
  13. mod event_handlers;
  14. mod events;
  15. mod file_upload;
  16. mod hooks;
  17. mod ipc;
  18. mod menubar;
  19. mod protocol;
  20. mod query;
  21. mod shortcut;
  22. mod waker;
  23. mod webview;
  24. // mobile shortcut is only supported on mobile platforms
  25. #[cfg(any(target_os = "ios", target_os = "android"))]
  26. mod mobile_shortcut;
  27. /// The main entrypoint for this crate
  28. pub mod launch;
  29. // Reexport tao and wry, might want to re-export other important things
  30. pub use tao;
  31. pub use tao::dpi::{LogicalPosition, LogicalSize};
  32. pub use tao::event::WindowEvent;
  33. pub use tao::window::WindowBuilder;
  34. pub use wry;
  35. // Reexport muda only if we are on desktop platforms that support menus
  36. #[cfg(not(any(target_os = "ios", target_os = "android")))]
  37. pub use muda;
  38. // Public exports
  39. pub use assets::AssetRequest;
  40. pub use config::{Config, WindowCloseBehaviour};
  41. pub use desktop_context::{window, DesktopContext, DesktopService};
  42. pub use event_handlers::WryEventHandler;
  43. pub use hooks::*;
  44. pub use shortcut::{ShortcutHandle, ShortcutRegistryError};
  45. pub use wry::RequestAsyncResponder;