Skip to content

Bump dark-light from 2.0.0 to 3.0.0 - #11

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/dark-light-3.0.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/dark-light-3.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 27, 2026

Copy link
Copy Markdown

Bumps dark-light from 2.0.0 to 3.0.0.

Release notes

Sourced from dark-light's releases.

v3.0.0

We're thrilled to announce the release of version 3.0.0! 🚀

After listening to your feedback, this update brings exciting changes to the API.

Consumers can now react to system theme changes instead of only polling detect(). Two new entry points are available:

  • dark_light::subscribe() -> Result<Watcher, Error> — a blocking watcher for any thread or event-loop poll, no async runtime required.
  • dark_light::stream() -> Result<impl Stream<Item = Mode>, Error> — an async adapter over the same watcher. Enabled by default via the async-io feature, or tokio.

This works across all supported platforms: the XDG portal's SettingChanged D-Bus signal on Linux/BSD, RegNotifyChangeKeyValue on Windows, and the native MediaQueryList change event on WASM.

On macOS, changes are currently detected via a 1-second polling thread rather than a native notification. Observing NSDistributedNotificationCenter requires a hand-rolled Objective-C delegate that isn't yet safely exposed by the objc2 bindings we use, so we're shipping this version now and may revisit it later.

We had originally removed this feature entirely over the macOS limitation, but Linux, Windows, and WASM all had working implementations, and macOS was the only blocker. Dropping the feature for everyone over one platform's rough edges didn't sit right, so we're reintroducing it here.

What's Changed

New Contributors

Full Changelog: rust-dark-light/dark-light@2.0.0...3.0.0

Commits
  • ff54a35 v3.0.0
  • fd942aa chore: bump dependencies
  • 0fd8fa2 fix: correct broken doctest on stream() re-export
  • 5ed59e2 feat: add async stream() adapter over Watcher
  • 750aeae feat: add subscribe() to react to theme changes
  • 0f18d2f Bumped winreg to 0.55.0
  • 954630a Update objc2 to 0.6.3 and objc2-foundation to 0.3.2.
  • bd47860 chore: fix typo and modify as adjust
  • 05cb5e5 feat: expose zbus's async-io and tokio features
  • f3cda09 feat: remove ashpd use zbus directly
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [dark-light](https://github.com/rust-dark-light/rust-dark-light) from 2.0.0 to 3.0.0.
- [Release notes](https://github.com/rust-dark-light/rust-dark-light/releases)
- [Commits](rust-dark-light/dark-light@2.0.0...3.0.0)

---
updated-dependencies:
- dependency-name: dark-light
  dependency-version: 3.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants