)]}'
{
  "commit": "9eab28fb27dc90e0913bb82c62cfc49741bc494c",
  "tree": "24c7e7dc4e6e8c076e4134a94ab3279672f3f4f4",
  "parents": [
    "e1cfbf1898d77e851f2d9adb9b1f950f918f8e7e"
  ],
  "author": {
    "name": "David Benjamin",
    "email": "davidben@google.com",
    "time": "Thu Apr 25 16:23:32 2024 -0400"
  },
  "committer": {
    "name": "Boringssl LUCI CQ",
    "email": "boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Thu Apr 25 22:44:28 2024 +0000"
  },
  "message": "Add an OUT_DIR option for finding bindgen output for Android\n\nAndroid are currently using a sed line to replace our include! to a\nmodule import. As those don\u0027t quite behave the same, and we don\u0027t want\nto carry patches (even as sed lines) downstream like this, we need to\nfind a convention that works for everyone.\n\nMost of the Rust world uses environment variables to communicate between\nthe build system and source. However, rather than principled convention,\nwhere each target was passed in a separate environment variable, Rust\npicked an inflexible convention of setting an OUT_DIR variable, and then\nhardcoding everything else relative to it. It simply assumes the build\nplaced everything in that directory.\n\nThis is problematic for more complex build systems, which would now take\non I/O costs to copy files around into where Rust wants. It\u0027s also less\nconvenient for the build file author. So, instead we went with an\nenvironment variable that carries the entire path. This has worked out,\nexcept that Android\u0027s build tool, Soong, cannot express this! It has no\nway to specify that some build product\u0027s path should be passed in via\nsome environment variable.\n\nSoong does, however, have some (less preferred, less efficient) way to\nemulate the OUT_DIR behavior, by copying files around until it\u0027s in the\nplace that the Rust convention expects. So introduce that option too,\ngated on cfg(soong).\n\nUpdate-Note: When this rolls into Android, remove the sed logic from\nAndroid.bp and instead set up the OUT_DIR cargo emulation.\n\nBug: b:291253039\nChange-Id: Id0afe9259f15f041c953dc5ad945cb9eda24ffc7\nReviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/68048\nCommit-Queue: David Benjamin \u003cdavidben@google.com\u003e\nReviewed-by: Adam Langley \u003cagl@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fa52ec77c77b09e1b0249291ce4e773aa2e33fc5",
      "old_mode": 33188,
      "old_path": "rust/bssl-sys/src/lib.rs",
      "new_id": "e7f5fc48da32bea929e3fb08362b74ca233bcbdc",
      "new_mode": 33188,
      "new_path": "rust/bssl-sys/src/lib.rs"
    }
  ]
}
