Skip to content

0.3.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 26 May 17:29
· 10 commits to main since this release

Using Bzlmod (Recommended)

Add to your MODULE.bazel file:

bazel_dep(name = "depend_on_what_you_use", version = "0.3.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 = "b56cdfaed0d74967fefb54bdd3f05bd167c4c4ebaa2a67af962d969e6a51962b",
    strip_prefix = "depend_on_what_you_use-0.3.0",
    url = "https://github.com/martis42/depend_on_what_you_use/releases/download/0.3.0/depend_on_what_you_use-0.3.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

  • Automatic fixes: Change how arguments are forwarded to buildozer. This is done to achieve a consistent API to how arguments are forwarded to the bazel commands. #251

Noteworthy Changes

  • Analysis: Update standard library headers which are ignored by DWYU #248
  • Automatic fixes: Support cquery to find missing dependencies. Also we allow now forwarding arguments to the bazel commands which are executed by the apply_fixes script #249, #252
  • Analysis: Fix bug for analyzing implementation_deps when using target mappings #254
  • Automatic fiixes: Add a new method for discovering DWYU report files which should be more efficient for large workspaces. This is based on creating an execution log for the analysis done by the DWYU aspect and then forwarding this log to the apply_fixes script #255

What's Changed

New Contributors

Full Changelog: 0.2.0...0.3.0