Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 16, 2025

Bumps dark-light from 1.1.1 to 2.0.0.

Release notes

Sourced from dark-light's releases.

v2.0.0

We’re thrilled to announce the release of version 2.0.0! 🚀

After much hard work, testing, and listening to your feedback, this update brings exciting changes to the API, performance improvements, and a much needed addition, error management! We hope that this release fixes the issues that prevented many libraries from using this crate.

[!IMPORTANT] Earlier this year, I proposed a feature for this library that would notify users when the theme changes. After several iterations, we developed a polished implementation specifically for FreeDesktop systems. Unfortunately, providing this functionality on other platforms proved challenging due platform specific limitations. After careful consideration, we decided not to pursue support for this feature. Instead, we are encouraging window creation libraries to take on this responsibility, ensuring a more seamless experience.

Breaking changes

This version brings breaking changes, the most important one being that dark_light::detect() now returns Result<Mode, Error>:

pub fn detect() -> Result<Mode, Error>;

dark-light is now capable of reporting issues during the attempt to detect the current Mode.

pub enum Error {
    /// If an I/O error occurs.
    Io(std::io::Error),
    /// If the XDG Desktop Portal could not be communicated with.
    XdgDesktopPortal(String),
    /// If the timeout is reached.
    Timeout,
    /// Failed to get persistent domain for Apple Global Domain.
    PersistentDomainFailed,
    /// If the window could not be found.
    WindowNotFound,
    /// If the media query could not be executed.
    MediaQueryFailed,
    /// If the media query is not supported.
    MediaQueryNotSupported,
}

We've also managed to close all issues, with only one remaining feature, maybe in our next release.

What's Changed

... (truncated)

Commits

Dependabot compatibility score

You can trigger a rebase of this PR 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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Oct 16, 2025
@github-actions github-actions bot enabled auto-merge (squash) October 16, 2025 23:12
@dependabot dependabot bot force-pushed the dependabot/cargo/dark-light-2.0.0 branch 3 times, most recently from 8b068a7 to 059c0cc Compare October 20, 2025 23:28
Bumps [dark-light](https://github.com/rust-dark-light/rust-dark-light) from 1.1.1 to 2.0.0.
- [Release notes](https://github.com/rust-dark-light/rust-dark-light/releases)
- [Commits](rust-dark-light/dark-light@1.1.1...2.0.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/cargo/dark-light-2.0.0 branch from 059c0cc to 142b7fe Compare October 29, 2025 23:18
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 13, 2025

Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting @dependabot recreate.

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.

1 participant