)]}'
{
  "commit": "76e7eb9a63ad2de414707b00af7ab0e9e912684f",
  "tree": "1dfd5253d6db9cdcc7a21c6995da8a0a910e016a",
  "parents": [
    "baf1cf3b4a8474b3cd6d94a50697b8a862f9d6f9"
  ],
  "author": {
    "name": "Filip Niksic",
    "email": "fniksic@google.com",
    "time": "Tue Aug 25 09:12:58 2026 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Tue Aug 25 09:13:36 2026 -0700"
  },
  "message": "Safely modify environment variables in Rust tests using scoped `with_env_var`/`with_env_vars` utilities.\n\nModifying process environment variables (`std::env::set_var` / `std::env::remove_var`)\nis inherently `unsafe` because it affects the global process environment.\n\nThis change introduces:\n1. `assert_single_threaded_test_environment`: dynamically verifies at test runtime that the test harness is running single-threaded (via `--test-threads\u003d1` or `RUST_TEST_THREADS\u003d1`) and rejects any conflicting multi-threaded flags.\n2. `with_env_var` / `with_env_vars`: scoped closure RAII utilities that apply temporary environment modifications for the duration of a closure and automatically restore original environment values in reverse order upon closure completion or panic.\n\nAll environment tests across `fuzztest_options` and `fuzztest` options have been updated to use these scoped utilities with explicit safety rationales.\n\nPiperOrigin-RevId: 970593870\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "01a06047ec94c1589cbe7f96750c917e2f3b5a17",
      "new_mode": 33188,
      "new_path": "rust/options/src/env_vars.rs"
    },
    {
      "type": "modify",
      "old_id": "52d5a3b69bbca71024465293389669ed0530f85a",
      "old_mode": 33188,
      "old_path": "rust/options/src/lib.rs",
      "new_id": "d84bb4a36d9642c8afba3660f054eb8c2989b8e8",
      "new_mode": 33188,
      "new_path": "rust/options/src/lib.rs"
    },
    {
      "type": "modify",
      "old_id": "cb636a1392da71f55b88d058b5f5c8105f481fb6",
      "old_mode": 33188,
      "old_path": "rust/src/options.rs",
      "new_id": "82415571d414383c7ec44ff16f8485eeaf2be79a",
      "new_mode": 33188,
      "new_path": "rust/src/options.rs"
    }
  ]
}
