)]}'
{
  "commit": "5b9de8b6c0d2565a2add648f1a2088308f02f41c",
  "tree": "74acae0881f20c8bd2186d28b0ed8e871bce4c09",
  "parents": [
    "ea0a73d1683c50821867edcaf2d358b641b68ce9"
  ],
  "author": {
    "name": "Cameron Mulhern",
    "email": "csmulhern@gmail.com",
    "time": "Wed Feb 04 15:28:18 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Feb 04 15:28:18 2026 +0000"
  },
  "message": "Fixes Rust code generation for single file output when using namespaces (#8877)\n\n* Adds tests for Rust single file mode\n\nAll existing tests only compile Rust code using --rust-module-root-file.\n\n* Adds standalone include tests for Rust\n\nThe imports for these tests have been moved to their own file, as the existing intergration_test.rs file hides compilation issues from code generation due to symbols brought into scope outside of the generated code (e.g. `extern crate alloc`).\n\n* Declare alloc crate in every Rust namespace\n\nWhen performing code generation within a single file, extern crate alloc needs to be delcared to bring alloc into scope within every inner namespace.\n\n* Regenerates generated schemas",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bbdf831068e68776753c31f650aa607f7b3c6c94",
      "old_mode": 33188,
      "old_path": "goldens/rust/basic_generated.rs",
      "new_id": "aa251d1c09718a2d586ba67a7733c2a4440546de",
      "new_mode": 33188,
      "new_path": "goldens/rust/basic_generated.rs"
    },
    {
      "type": "modify",
      "old_id": "c89403efa8bd2dbfce15996681bab453d774c656",
      "old_mode": 33261,
      "old_path": "scripts/generate_code.py",
      "new_id": "713b3109e99707c49551af11c2dcd93eef61a8f1",
      "new_mode": 33261,
      "new_path": "scripts/generate_code.py"
    },
    {
      "type": "modify",
      "old_id": "d198a0723730fcc36b3c5b4160bb0dba768215e6",
      "old_mode": 33188,
      "old_path": "src/idl_gen_rust.cpp",
      "new_id": "b7a565d00cd7ccebcd9f54c6f49dfacef6bfa896",
      "new_mode": 33188,
      "new_path": "src/idl_gen_rust.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "c4575b88db23b3cb0dfda27b549b353155d6302b",
      "new_mode": 33188,
      "new_path": "tests/include_test1_generated.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "c4575b88db23b3cb0dfda27b549b353155d6302b",
      "new_mode": 33188,
      "new_path": "tests/include_test2_generated.rs"
    },
    {
      "type": "modify",
      "old_id": "bffb30074f8ca2171d8c0b64ae139e490612b740",
      "old_mode": 33188,
      "old_path": "tests/rust_usage_test/bin/flatbuffers_alloc_check.rs",
      "new_id": "a006831504b846b4acb00282eb29027ba57c0faa",
      "new_mode": 33188,
      "new_path": "tests/rust_usage_test/bin/flatbuffers_alloc_check.rs"
    },
    {
      "type": "modify",
      "old_id": "9b7620467e2247606abc302b63f61da1167858e4",
      "old_mode": 33188,
      "old_path": "tests/rust_usage_test/bin/monster_example.rs",
      "new_id": "0a1983ca0fe33a8d85d4acacc084afa974e96b23",
      "new_mode": 33188,
      "new_path": "tests/rust_usage_test/bin/monster_example.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "65391f3f5d9537265a242d576fcf51384765fdbc",
      "new_mode": 33188,
      "new_path": "tests/rust_usage_test/tests/include_test.rs"
    },
    {
      "type": "modify",
      "old_id": "d3dc731ceebcf4d997241856f38dafef74479b58",
      "old_mode": 33188,
      "old_path": "tests/rust_usage_test/tests/integration_test.rs",
      "new_id": "d97bf88cffb3105b54772476fddc264f90316a30",
      "new_mode": 33188,
      "new_path": "tests/rust_usage_test/tests/integration_test.rs"
    }
  ]
}
