Skip to content

Version 0.7.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 18 Sep 13:52
· 3 commits to main since this release

Release Notes

Summary

This release contains some breaking changes for the library users, like the type change from u16 to u32 as part of a bug fix. Other than that, a current_percent method has been added to Device for convenience, and there's a minor CLI related change. The rest of the changes are all memory usage improvements and code refactoring for improved maintainability.

Added

  • Device::current_percent method that returns brightness percentage (in contrast with current which returns the raw current value)

Changed

  • All functions and methods that took and returned u16 now use u32 (breaking change)
  • device_path method now returns a PathBuf instead of &Path due to internal code changes (breaking change)
  • blight status now prints brightness percentage along with the raw value

Improved

  • Significant reduction of heap allocations
  • Reduced code duplication and code refactored for maintainability

Fixed

  • blight failing to work with devices that may use values larger than u16::MAX - #6 (Thanks pdamianik)

Download blight 0.7.0

target kind download
x86_64-unknown-linux-gnu tarball blight-x86_64-unknown-linux-gnu.tar.xz