dark-light 3.0.0

Detect if dark mode or light mode is enabled
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.78.0"
name = "dark-light"
version = "3.0.0"
authors = [
    "Corey Farwell <coreyf@rwell.org>",
    "Eduardo Flores <edflores@proton.me>",
]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Detect if dark mode or light mode is enabled"
readme = "README.md"
license = "MIT/Apache-2.0"
repository = "https://github.com/rust-dark-light/rust-dark-light"

[features]
async-io = [
    "zbus/async-io",
    "dep:futures-core",
    "dep:futures-channel",
]
default = ["async-io"]
tokio = [
    "zbus/tokio",
    "dep:futures-core",
    "dep:futures-channel",
]

[lib]
name = "dark_light"
path = "src/lib.rs"

[[example]]
name = "detect"
path = "examples/detect.rs"

[[example]]
name = "stream"
path = "examples/stream.rs"

[[example]]
name = "watch"
path = "examples/watch.rs"

[dependencies.futures-channel]
version = "0.3"
optional = true

[dependencies.futures-core]
version = "0.3"
optional = true

[dev-dependencies.futures-executor]
version = "0.3"

[dev-dependencies.futures-util]
version = "0.3"

[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "dragonfly", target_os = "netbsd", target_os = "openbsd"))'.dependencies.zbus]
version = "5.19.0"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
    "MediaQueryList",
    "Window",
    "EventTarget",
    "Event",
]

[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6.4"

[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3.2"
features = [
    "std",
    "NSObject",
    "NSString",
    "NSDictionary",
    "NSUserDefaults",
]
default-features = false

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61.2"
features = [
    "Win32_Foundation",
    "Win32_System_Registry",
]

[target."cfg(windows)".dependencies.winreg]
version = "0.56.0"