26 Commits

Author SHA1 Message Date
renovate[bot]
f32f183d97 chore(deps): update rust crate quick-xml to 0.38 (#49)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <github@fabianlars.de>
2025-06-29 11:10:57 +02:00
rctlmk
daeb2631ab chore: Add unpackaged-app example (#45) 2025-03-01 14:56:37 +01:00
Fabian-Lars
3ab4d1867b chore(deps): Update windows to 0.60. Raise MSRV to 1.74 (#43) 2025-02-27 13:04:44 +01:00
iKineticate
987f44fe47 feat: add progress bar support (#37) 2024-10-29 17:19:04 +03:00
Atif Chowdhury
36f6b6bccc feat: better error handling (#29) 2024-05-30 21:13:05 +03:00
Atif Chowdhury
5cf720a71c feat: add on_dismissed support (#27) 2024-05-28 02:50:43 +03:00
Vladimir Stoilov
c0b9b2fc14 feat: add button support (#25) 2024-05-15 20:41:03 +03:00
amrbashir
7aa27850c2 chore(deps): update windows-rs to 0.51 2023-10-17 18:37:46 +03:00
tyush
7c19ca4541 feat: add on_activated (#9)
* Expose Activated event

Allows users to set an ToastNotification.Activated callback. Currently requires the callback to be 'static; this likely can be fixed by some lifetime and boxing trickery at the cost of readability.

* Show callback functionality in example.

* Revert "Show callback functionality in example."

This reverts commit 62fc7a0bc6.

* Simplify callback in example.

May be a candidate for a new example instead of polluting the "simple" example.

* Change FnMut requirement to FnOnce

Loosens the requirements on `on_activated.` Turns out I had my Fn trait hierarchies wrong :(

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>

* Change callback back to FnMut, don't send params to callback

* Whoops that's not how closures move

* Remove callback params from simple.rs

* cargo fmt

* Create on-activated.md

* Update examples/simple.rs
2023-07-01 20:26:45 +03:00
Amr Bashir
2387db87b0 fix: parse loopbable sounds from str as well (#7)
* fix: parse loopbable sounds from str as well

* Update .changes/sound_str.md
2023-06-15 17:12:20 +03:00
Amr Bashir
f478395d84 chore: license headers (#3) 2022-08-28 14:52:15 -03:00
amrbashir
b61d2523b2 Use quick-xml instead of xml-rs, closes #2 2022-08-16 02:56:48 +02:00
amrbashir
c3265a230a More clippy 2022-08-13 23:04:06 +02:00
amrbashir
9a0e79e507 Fix formatting 2022-08-13 23:00:24 +02:00
amrbashir
c6296757e6 Use new crate name 2022-08-13 22:54:24 +02:00
amrbashir
4b1b2c3dba Update windows-rs to 0.39 2022-08-13 22:29:58 +02:00
allenbenz
a855669225 Update windows-rs and strum dependencies.
Fix/Enable the windows gnu target.
2021-11-02 20:43:23 -07:00
Jalal El Mansouri
d6b56dcb81 Update dependencies 2021-10-03 19:13:07 -04:00
Kenny Kerr
7d32ad3263 0.8.0 2021-04-27 10:55:41 -07:00
allenbenz
fcb02d998a Remove action stuff out of without_library 2021-02-21 20:36:13 -08:00
allenbenz
fe9cbe734d Added an example that shows how to make a toast without using this library. 2021-02-21 12:24:57 -08:00
allenbenz
15f0a60258 Derive copy and clone for all the enums 2021-02-18 22:05:17 -08:00
allenbenz
b24853dfb7 switch to microsoft windows crate 2021-02-16 00:16:55 -08:00
allenbenz
7deb63315b 0.1.5 - reexport winrt::Error and make the powershell api key easy to use. 2017-11-19 21:40:28 -08:00
allenbenz
8aca53b503 Added metadata so doc.rs build documentation
Added link to docs.rs in readme
Corrected image path in examples
2017-09-24 11:04:22 -07:00
allenbenz
495fff4a37 Initial commit 2017-09-23 22:11:37 -07:00