| 1 |
[package] |
| 2 |
name = "notify-rust" |
| 3 |
version = "4.18.0" |
| 4 |
authors = ["Hendrik Sollich <[email protected]>"] |
| 5 |
description = "Show desktop notifications (linux, bsd, mac). Pure Rust dbus client and server." |
| 6 |
repository = "https://github.com/hoodie/notify-rust" |
| 7 |
documentation = "https://docs.rs/notify-rust/" |
| 8 |
edition = "2021" |
| 9 |
rust-version = "1.89.0" |
| 10 |
license = "MIT OR Apache-2.0" |
| 11 |
keywords = ["desktop", "notification", "notify", "linux", "macos"] |
| 12 |
readme = "README.md" |
| 13 |
include = [ |
| 14 |
"README.md", |
| 15 |
"History.md", |
| 16 |
"CHANGELOG.md", |
| 17 |
"LICENSE-*", |
| 18 |
"Cargo.toml", |
| 19 |
"src/**/*.rs", |
| 20 |
"tests/*.rs", |
| 21 |
] |
| 22 |
|
| 23 |
[features] |
| 24 |
default = [ |
| 25 |
"z", |
| 26 |
# "preview-macos-un" |
| 27 |
] |
| 28 |
preview-macos-un = ["dep:mac-usernotifications"] |
| 29 |
# server = [] |
| 30 |
d = ["dbus"] |
| 31 |
d_vendored = ["dbus/vendored"] |
| 32 |
z = ["zbus", "serde", "async"] |
| 33 |
z-with-tokio = ["zbus", "serde", "tokio"] |
| 34 |
async = ["zbus/async-io"] |
| 35 |
tokio = ["zbus/tokio"] |
| 36 |
debug_namespace = [] |
| 37 |
images = ["images_no_default_features", "image/rayon", "image/default-formats"] |
| 38 |
images_no_default_features = ["image", "lazy_static"] |
| 39 |
|
| 40 |
|
| 41 |
[dependencies] |
| 42 |
log = "0.4" |
| 43 |
|
| 44 |
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies] |
| 45 |
dbus = { version = "0.9", optional = true } |
| 46 |
lazy_static = { version = "1.5", optional = true } |
| 47 |
image = { version = "0.25", optional = true, default-features = false } |
| 48 |
zbus = { version = "5", optional = true, default-features = false } |
| 49 |
serde = { version = "1", features = ["derive"], optional = true } |
| 50 |
env_logger = { version = "0.11", optional = true } # TODO: remove from here |
| 51 |
futures-lite = { version = "2.6.1" } |
| 52 |
|
| 53 |
[target.'cfg(target_os="macos")'.dependencies] |
| 54 |
mac-notification-sys = "0.6.15" |
| 55 |
mac-usernotifications = { version = "0.3.1", optional = true } |
| 56 |
chrono = { version = "0.4", optional = true } |
| 57 |
|
| 58 |
[target.'cfg(target_os="windows")'.dependencies] |
| 59 |
winrt-notification = { package = "tauri-winrt-notification", version = "0.7" } |
| 60 |
|
| 61 |
[dev-dependencies] |
| 62 |
color-backtrace = "0.7" # wait for MSVR 1.70 to update |
| 63 |
env_logger = "0.11" |
| 64 |
maplit = "1.0" |
| 65 |
cfg-if = "1.0" |
| 66 |
|
| 67 |
[dev-dependencies.async-std] |
| 68 |
version = "1.13.2" |
| 69 |
features = ["attributes"] |
| 70 |
|
| 71 |
[target.'cfg(target_os="macos")'.dev-dependencies] |
| 72 |
oslog = "0.2" |
| 73 |
objc2-foundation = "0.3.2" |
| 74 |
|
| 75 |
|
| 76 |
[package.metadata.bundle] |
| 77 |
name = "notify-rust-example" |
| 78 |
identifier = "de.hoodie.notify-rust.example" |
| 79 |
version = "4" |
| 80 |
short_description = "notify-rust example" |
| 81 |
|
| 82 |
[[example]] |
| 83 |
name = "interruption_level" |
| 84 |
path = "examples/interruption_level.rs" |
| 85 |
required-features = ["preview-macos-un"] |
| 86 |
|
| 87 |
[[example]] |
| 88 |
name = "images" |
| 89 |
path = "examples/images.rs" |
| 90 |
required-features = ["images"] |
| 91 |
|
| 92 |
[[example]] |
| 93 |
name = "schedule" |
| 94 |
path = "examples/schedule.rs" |
| 95 |
required-features = ["chrono"] |
| 96 |
|
| 97 |
[[example]] |
| 98 |
name = "wait_for_closing_async" |
| 99 |
path = "examples/wait_for_closing_async.rs" |
| 100 |
required-features = ["async"] |
| 101 |
|
| 102 |
[[example]] |
| 103 |
name = "simple_async" |
| 104 |
path = "examples/simple_async.rs" |
| 105 |
required-features = ["async"] |