)]}'
{
  "commit": "df8c833da61ec3098e928e2e37d2eacadc6215fc",
  "tree": "3db505a2b96329a43e3a4a3bcbad93e749931d14",
  "parents": [
    "ca5c131b9275634b2ada8f41f43357cf4ab640c4"
  ],
  "author": {
    "name": "Austin Schuh",
    "email": "AustinSchuh@users.noreply.github.com",
    "time": "Wed Aug 19 13:17:13 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Aug 19 13:17:13 2026 +0000"
  },
  "message": "Fix rust_bindgen\u0027s clang include path and dep wiring (#4218)\n\nrust_bindgen rebuilds clang\u0027s command line from the cc_toolchain, but\nonly keeps flags from an allowlist, and -idirafter isn\u0027t on it.\ntoolchains_llvm passes every sysroot and builtin include directory that\nway (together with -nostdinc, so clang won\u0027t rediscover them on its\nown), which leaves bindgen parsing headers against a truncated include\npath.\n\nWhatever survives that filter is still a C++ compile\u0027s flags being\nhanded to a C parse, so clang warns \"argument unused during compilation\"\nfor each one, burying the real output. Add\n-Wno-unused-command-line-argument the same way the rule already adds\n-Wno-unknown-warning-option; both are clang-only, which is fine since\neverything after `--` goes to the clang bindgen forcibly uses.\n\nFinally, rules_rust now warns that a CcInfo-only target in a\nrust_library\u0027s \u0027deps\u0027 should be in \u0027link_deps\u0027. Two of the targets the\nmacro generates trip that: the thunks cc_library, and the bindgen target\nitself when merge_cc_lib_objects_into_rlib is off. Move those.\n\nThe bindgen target has to stay in \u0027deps\u0027 when that flag is on (the\ndefault). There it links cc_lib into the rlib through a BuildInfo\ncarrying -lstatic\u003d/-Lnative\u003d flags, and deliberately withholds cc_lib\u0027s\nlibraries from its CcInfo so nothing downstream links them twice.\ntransform_link_deps keeps only CcInfo, so routing it through \u0027link_deps\u0027\ndrops the objects and the binary fails to link. It also never warned,\nsince BuildInfo already marks it as a Rust target.\n\nSigned-off-by: Austin Schuh \u003caustin.linux@gmail.com\u003e\nCo-authored-by: Krasimir Georgiev \u003ckrasimir@google.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "988d356e0e0d34720dbbdffba0323fa8fe176add",
      "old_mode": 33188,
      "old_path": "extensions/bindgen/private/bindgen.bzl",
      "new_id": "59c9aa6f8bb8ce749c29f167d2bb1cfb8e272aa3",
      "new_mode": 33188,
      "new_path": "extensions/bindgen/private/bindgen.bzl"
    }
  ]
}
