Skip to content

0.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 25 Feb 16:59
· 40 commits to main since this release

馃帀 This release is a major milestone for DWYU 馃帀

This is the first release without a leading 0.0. While DWYU is not yet ready for 1.0.0, its overall feature set is now mostly stable. No bug reports with major gaps in functionality have been reported and thus we are confident to leave the "beta testing" phase.

This is also the first release supporting bzlmod. Also we added examples demonstrating DWYU usage.

Please note this release has some breaking changes as defined below.

Using Bzlmod (Recommended)

Add to your MODULE.bazel file:

bazel_dep(name = "depend_on_what_you_use", version = "0.1.0")

Using WORKSPACE (Legacy)

Add to your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "depend_on_what_you_use",
    sha256 = "746de76cb6a8d5e0d6e60c91bcc73ffd6088fff4152552c3e0aee6219c1d809d",
    strip_prefix = "depend_on_what_you_use-0.1.0",
    url = "https://github.com/martis42/depend_on_what_you_use/releases/download/0.1.0/depend_on_what_you_use-0.1.0.tar.gz",
)

load("@depend_on_what_you_use//:setup_step_1.bzl", dwyu_setup_step_1 = "setup_step_1")
dwyu_setup_step_1()

load("@depend_on_what_you_use//:setup_step_2.bzl", dwyu_setup_step_2 = "setup_step_2")
dwyu_setup_step_2()

Breaking Changes

  • The minimum Bazel version is now 5.4.0
  • The output group has been renamed. Replace --output_groups=cc_dwyu_output with --output_groups=dwyu in your DWYU commands #170
  • The name for the DWYU aspect option to provide a config file for ignored include paths changed from config = "//<your_config_file>.json" to ignored_includes = "//<your_config_file>.json" #181
  • Renamed the --bazel-bin apply_fixes CLI option to --search-path to make it more obvious how flexibly it can be used #221

Noteworthy Changes

  • Windows and macOS are now explicitly tested in the CI to ensure DWYU behaves on those platforms as expected.
  • You can now specify a custom list of tags to make DWYU skip analyzing targets #159
  • Support depending on DWYU via bzlmod
  • Ensure code quality with ruff (most checks are active)
  • There is now a set of examples
  • Add verbosity option to the aspect #209

What's Changed

New Contributors

Full Changelog: 0.0.13...0.1.0