{"id":15013161,"url":"https://github.com/tauri-apps/winrt-notification","last_synced_at":"2025-10-06T07:30:26.808Z","repository":{"id":56744877,"uuid":"524505557","full_name":"tauri-apps/winrt-notification","owner":"tauri-apps","description":"An incomplete wrapper over the WinRT toast api written in rust","archived":false,"fork":true,"pushed_at":"2024-10-29T14:23:41.000Z","size":140,"stargazers_count":15,"open_issues_count":0,"forks_count":14,"subscribers_count":4,"default_branch":"dev","last_synced_at":"2025-01-15T00:28:21.677Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"allenbenz/winrt-notification","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tauri-apps.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.spdx","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null},"funding":{"github":null,"patreon":null,"open_collective":"tauri","ko_fi":null,"tidelift":null,"custom":null}},"created_at":"2022-08-13T20:52:20.000Z","updated_at":"2025-01-02T07:01:39.000Z","dependencies_parsed_at":"2023-01-30T22:40:14.173Z","dependency_job_id":null,"html_url":"https://github.com/tauri-apps/winrt-notification","commit_stats":{"total_commits":68,"total_committers":8,"mean_commits":8.5,"dds":0.5,"last_synced_commit":"e717979f824b8906f56a5a5484da2bf8e49c8fdd"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauri-apps%2Fwinrt-notification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauri-apps%2Fwinrt-notification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauri-apps%2Fwinrt-notification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauri-apps%2Fwinrt-notification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tauri-apps","download_url":"https://codeload.github.com/tauri-apps/winrt-notification/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235262997,"owners_count":18962065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T19:43:50.200Z","updated_at":"2025-10-06T07:30:21.493Z","avatar_url":"https://github.com/tauri-apps.png","language":"Rust","funding_links":["https://opencollective.com/tauri"],"categories":[],"sub_categories":[],"readme":"# winrt-notification\n\n[![license](https://img.shields.io/crates/l/tauri-winrt-notification.svg)](https://crates.io/crates/tauri-winrt-notification/)\n[![documentation](https://img.shields.io/crates/v/tauri-winrt-notification?style=flat-square)](https://docs.rs/tauri-winrt-notification)\n\n\nAn incomplete wrapper over the WinRT toast api\n\nTested in Windows 10 and 8.1. Untested in Windows 8, might work.\n\nTodo:\n* Add support for Adaptive Content\n\nKnown Issues:\n* Will not work for Windows 7.\n\nLimitations:\n* Windows 8.1 only supports a single image, the last image (icon, hero, image) will be the one on the toast\n\n## Usage\n\n```toml\n#Cargo.toml\n[dependencies]\ntauri-winrt-notification = \"0.5.1\"\n```\n\n## Examples\n\n```rust\nextern crate winrt_notification;\nuse tauri_winrt_notification::{Duration, Sound, Toast};\n\nfn main() {\n    Toast::new(Toast::POWERSHELL_APP_ID)\n        .title(\"Look at this flip!\")\n        .text1(\"(╯°□°）╯︵ ┻━┻\")\n        .sound(Some(Sound::SMS))\n        .duration(Duration::Short)\n        .show()\n        .expect(\"unable to toast\");\n}\n```\n\n```rust\nextern crate winrt_notification;\nuse std::path::Path;\nuse tauri_winrt_notification::{IconCrop, Toast};\n\nfn main() {\n    Toast::new(\"Your AppUserModeId\")\n        .hero(\u0026Path::new(\"C:\\\\absolute\\\\path\\\\to\\\\image.jpeg\"), \"alt text\")\n        .icon(\n            \u0026Path::new(\"c:/this/style/works/too/image.png\"),\n            IconCrop::Circular,\n            \"alt text\",\n        )\n        .title(\"Lots of pictures here\")\n        .text1(\"One above the text as the hero\")\n        .text2(\"One to the left as an icon, and several below\")\n        .image(\u0026Path::new(\"c:/photos/sun.png\"), \"the sun\")\n        .image(\u0026Path::new(\"c:/photos/moon.png\"), \"the moon\")\n        .sound(None) // will be silent\n        .show()\n        .expect(\"unable to toast\");\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftauri-apps%2Fwinrt-notification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftauri-apps%2Fwinrt-notification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftauri-apps%2Fwinrt-notification/lists"}