diff --git a/.changes/fix-dialog-export-dialog.md b/.changes/fix-dialog-export-dialog.md new file mode 100644 index 000000000..3b8ec6f69 --- /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 9a36c317b..2ef1c1ead 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";