From 76f99ce999a2ff9e40235c1675e3eb6570b5e1e2 Mon Sep 17 00:00:00 2001 From: Fabian-Lars Date: Wed, 27 Nov 2024 11:59:55 +0100 Subject: [PATCH] fix(dialog): pub export `Dialog` (#2108) fixes #2107 --- .changes/fix-dialog-export-dialog.md | 5 +++++ plugins/dialog/src/lib.rs | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 .changes/fix-dialog-export-dialog.md diff --git a/.changes/fix-dialog-export-dialog.md b/.changes/fix-dialog-export-dialog.md new file mode 100644 index 00000000..3b8ec6f6 --- /dev/null +++ b/.changes/fix-dialog-export-dialog.md @@ -0,0 +1,5 @@ +--- +dialog: patch +--- + +The `Dialog` struct is now correctly exported, primarily to fix the documentation on `docs.rs`. \ No newline at end of file diff --git a/plugins/dialog/src/lib.rs b/plugins/dialog/src/lib.rs index 9a36c317..2ef1c1ea 100644 --- a/plugins/dialog/src/lib.rs +++ b/plugins/dialog/src/lib.rs @@ -39,6 +39,11 @@ use desktop::*; #[cfg(mobile)] use mobile::*; +#[cfg(desktop)] +pub use desktop::Dialog; +#[cfg(mobile)] +pub use mobile::Dialog; + pub(crate) const OK: &str = "Ok"; pub(crate) const CANCEL: &str = "Cancel"; pub(crate) const YES: &str = "Yes";