)]}'
{
  "commit": "be25c76ecdfe7c92b1b2cbf1e2e80d2c59f799fe",
  "tree": "4560379100fb42b11a0bddbb8ee19ca66589bdaf",
  "parents": [
    "0d0db1d93674238c7a7675e49a0499a8d41fd4d5"
  ],
  "author": {
    "name": "Lukasz Anforowicz",
    "email": "lukasza@google.com",
    "time": "Tue Jan 17 12:43:52 2023 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Tue Jan 17 12:44:35 2023 -0800"
  },
  "message": "Introduce `bindings::Input` struct.\n\nThis CL introduces the `bindings::Input` struct that (for now) wraps the\nonly input for bindings generation - the `TyCtxt` compilation context.\nIn the future `Input` will likely gain additional fields (for now just\ncovered with TODO comments). In particular a follow-up CL will add the\nCrubit support path as an input - it will need to be used by\n`format_ty_for_cc` to generate an appropriate `#include` when\ntranslating Rust\u0027s `char` type into a C++ type provided by Crubit\u0027s\nruntime support headers.\n\nThis CL also opportunistically renamed `GeneratedBindings` into\n`bindings::Output` and `GeneratedBindings::new` into the\n`generate_bindings` free function.\n\nThe CL also plumbs the `bindings::Input` struct from the public\n`generate_bindings` function to `format_ty_for_cc` where it will be\nneeded by the follow-up CL.  A standalone `tcx: TyCtxt` parameter\ncontinues to be taken by other, remaining `format_foo` functions.\n\nPiperOrigin-RevId: 502661624\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "cbdc7c435b9759e277ffb45dd8912ed31be732ea",
      "old_mode": 33188,
      "old_path": "cc_bindings_from_rs/bindings.rs",
      "new_id": "35237cc962869abc2dddf7bc3d80b78435b7a47a",
      "new_mode": 33188,
      "new_path": "cc_bindings_from_rs/bindings.rs"
    },
    {
      "type": "modify",
      "old_id": "6ff6962a00442b5faf643d579a0964b75a1d1b08",
      "old_mode": 33188,
      "old_path": "cc_bindings_from_rs/cc_bindings_from_rs.rs",
      "new_id": "7469e5dcf56eb788bb47554f04ab6194b2c7d5af",
      "new_mode": 33188,
      "new_path": "cc_bindings_from_rs/cc_bindings_from_rs.rs"
    }
  ]
}
