[package]
edition = "2024"
rust-version = "1.90"
name = "mac-usernotifications"
version = "0.3.1"
authors = ["Hendrik Sollich <hendrik@hoodie.de>"]
build = false
include = [
"Cargo.toml",
"README.md",
"src/*.rs",
"examples/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Thin wrapper around macOS UserNotifications."
homepage = "https://github.com/hoodie/mac-usernotifications"
documentation = "https://docs.rs/mac-usernotifications"
readme = "README.md"
keywords = [
"notification",
"macOS",
"osx",
"notify",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hoodie/mac-usernotifications"
[package.metadata.docs.rs]
targets = ["aarch64-apple-darwin"]
[package.metadata.bundle]
name = "mac-usernotifications-example"
icon = ["examples/ferris-flat-happy.png"]
identifier = "de.hoodie.mac-usernotifications.example"
version = "0.1.0"
short_description = "mac-usernotifications example"
[features]
blocking-wrappers = []
default = ["blocking-wrappers"]
[lib]
name = "mac_usernotifications"
path = "src/lib.rs"
[[example]]
name = "actions_async"
path = "examples/actions_async.rs"
[[example]]
name = "actions_blocking"
path = "examples/actions_blocking.rs"
[[example]]
name = "all_sounds"
path = "examples/all_sounds.rs"
[[example]]
name = "badge"
path = "examples/badge.rs"
[[example]]
name = "close"
path = "examples/close.rs"
[[example]]
name = "get_settings"
path = "examples/get_settings.rs"
[[example]]
name = "image_path"
path = "examples/image_path.rs"
[[example]]
name = "interruption_level"
path = "examples/interruption_level.rs"
[[example]]
name = "on_close"
path = "examples/on_close.rs"
[[example]]
name = "reply"
path = "examples/reply.rs"
[[example]]
name = "simple"
path = "examples/simple.rs"
[[example]]
name = "simple_blocking"
path = "examples/simple_blocking.rs"
[[example]]
name = "simple_tokio"
path = "examples/simple_tokio.rs"
[[example]]
name = "thread_id"
path = "examples/thread_id.rs"
[[example]]
name = "timeout"
path = "examples/timeout.rs"
[[example]]
name = "update_notification"
path = "examples/update_notification.rs"
[dependencies.block2]
version = "0.6"
[dependencies.futures-channel]
version = "0.3.32"
[dependencies.futures-lite]
version = "2.6.1"
[dependencies.futures-timer]
version = "3.0.4"
[dependencies.log]
version = "0.4.32"
[dependencies.objc2]
version = "0.6"
[dependencies.objc2-core-foundation]
version = "0.3.2"
features = ["CFRunLoop"]
[dependencies.objc2-foundation]
version = "0.3"
features = [
"NSEnumerator",
"NSValue",
]
[dependencies.objc2-user-notifications]
version = "0.3"
features = [
"UNNotificationAction",
"UNNotificationAttachment",
"UNNotificationCategory",
"UNNotificationContent",
"UNNotificationRequest",
"UNNotificationResponse",
"UNNotificationSettings",
"UNNotificationTrigger",
"UNNotification",
"UNUserNotificationCenter",
]
[dependencies.thiserror]
version = "2.0.18"
[dev-dependencies.oslog]
version = "0.2"
[dev-dependencies.tokio]
version = "1.52.3"
features = [
"rt-multi-thread",
"macros",
]
[lints.clippy]
doc_markdown = "warn"
inconsistent_struct_constructor = "warn"
map_unwrap_or = "warn"
match_same_arms = "warn"
semicolon_if_nothing_returned = "warn"
single_match_else = "warn"
[lints.rust]
missing_copy_implementations = "deny"
missing_debug_implementations = "deny"
trivial_casts = "deny"
trivial_numeric_casts = "forbid"
unstable_features = "warn"
unused_import_braces = "forbid"
unused_qualifications = "deny"