Some checks failed
p2p-intel / engine (push) Waiting to run
p2p-intel / notifications (push) Waiting to run
p2p-intel / coverage (push) Waiting to run
p2p-intel / makepad-app (push) Waiting to run
p2p-intel / exchange-tab (push) Waiting to run
Payment domain, storage, platform and UI / isolated-payment-tests (push) Waiting to run
Payment domain, storage, platform and UI / payment-ui-tests (push) Waiting to run
repo hygiene / hygiene (push) Has been cancelled
PDF engine / engine (push) Has been cancelled
PDF engine / makepad-integration (push) Has been cancelled
PDF engine / fuzz (push) Has been cancelled
nigig-build (CAD) / supply-chain (push) Has been cancelled
nigig-build (CAD) / cad-module (push) Has been cancelled
nigig-build (CAD) / full-crate-check (push) Has been cancelled
nigig-build (CAD) / cad-engine-coverage (push) Has been cancelled
nigig-build (CAD) / doc-workspace-coverage (push) Has been cancelled
nigig-build (CAD) / cad-widget-coverage (push) Has been cancelled
traffic / gates (push) Has been cancelled
traffic / nigig-traffic (push) Has been cancelled
traffic / supply-chain (push) Has been cancelled
doc-engine / engine (push) Has been cancelled
doc-engine / coverage (push) Has been cancelled
doc-engine / consumer (push) Has been cancelled
email / gates (push) Has been cancelled
email / email-domain (push) Has been cancelled
email / nigig-email (push) Has been cancelled
email / supply-chain (push) Has been cancelled
nigig-map / test (push) Has been cancelled
sms / gates (push) Has been cancelled
sms / robius-sms (push) Has been cancelled
sms / android (push) Has been cancelled
sms / nigig-sms (push) Has been cancelled
sms / supply-chain (push) Has been cancelled
spreadsheet / engine-coverage (push) Has been cancelled
spreadsheet / ui-controller-coverage (push) Has been cancelled
Whole-tree sync: cad-core/cad-ui split sources, nigig-build construction_frame migration, pdf port progress, mpesa/pay/uikit/doc updates, workspace members/profiles/lock, CI workflows and reviews. See individual file history for details.
53 lines
2 KiB
TOML
53 lines
2 KiB
TOML
[package]
|
|
name = "robius-notification"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
authors = ["Project Robius Maintainers"]
|
|
description = "Rust abstractions for multi-platform native notifications."
|
|
documentation = "https://docs.rs/robius-notification"
|
|
keywords = ["robius", "notification", "toast", "android", "dbus"]
|
|
license = "MIT OR Apache-2.0"
|
|
readme = "README.md"
|
|
|
|
[dependencies]
|
|
# Deliberately empty on Linux and every unsupported target.
|
|
#
|
|
# The freedesktop notification call is one D-Bus method, and the crates that
|
|
# would make it are either a C library (libdbus-sys, which breaks the Android
|
|
# and iOS cross-compile) or 169 crates including an async executor. src/sys/
|
|
# linux/wire.rs writes the wire format out instead. `robius-sms` deleted
|
|
# polkit and gio for the same reason (its E9 note); adding a large tree back
|
|
# into this crate family for one method call would reverse that decision.
|
|
cfg-if = "1.0.0"
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
|
jni = { version = "0.21.1", default-features = false }
|
|
robius-android-env = "0.2.0"
|
|
|
|
[target.'cfg(target_vendor = "apple")'.dependencies]
|
|
block2 = "0.6.1"
|
|
objc2 = "0.6.1"
|
|
objc2-foundation = { version = "0.3.1", default-features = false, features = ["std", "NSString", "NSDate"] }
|
|
|
|
# iOS only: macOS deliberately uses NSUserNotification instead, because
|
|
# UNUserNotificationCenter raises an Objective-C exception -- which aborts --
|
|
# in a process with no app bundle. See src/sys/apple.rs.
|
|
[target.'cfg(all(target_vendor = "apple", not(target_os = "macos")))'.dependencies]
|
|
objc2-user-notifications = { version = "0.3.2", default-features = false, features = [
|
|
"std",
|
|
"alloc",
|
|
"block2",
|
|
"UNUserNotificationCenter",
|
|
"UNNotificationRequest",
|
|
"UNNotificationContent",
|
|
"UNNotificationTrigger",
|
|
] }
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
windows-core = { version = "0.56.0", default-features = false }
|
|
windows = { version = "0.56.0", default-features = false, features = [
|
|
"Data_Xml_Dom",
|
|
"UI_Notifications",
|
|
"Foundation",
|
|
] }
|