As this crate is now a dupicate, this change removes the version under brave and checks out the one by upstream. Chromium changes: https://chromium.googlesource.com/chromium/src/+/07ca6337c2f714ba0477202414bd2b1692e70594 commit 07ca6337c2f714ba0477202414bd2b1692e70594 Author: Frank Li <frankli@microsoft.com> Date: Fri Apr 11 10:05:58 2025 -0700 [ChromeML] Import of llguidance Rust crate This CL is to import the llguidance Rust crate. llguidance is going to be used by the Prompt API to reduce the compatibility risk of having browsers returning results of different format due to different ML models or different versions of the same ML model. Design Doc: Guidance/Structured output with Prompt API | https://docs.google.com/document/d/1gS2o0OTknAdB6M73ByuLGqHs7sC6RTmX6kahOqwSUEM Security Audit Review Doc: https://docs.google.com/document/d/1e8KY8onjPpoPIpbIVGN72KCR0Q5yXedPx-LdPFzo4tY/edit?tab=t.0#heading=h.26q3g69izomh Most of the changes are automatically generated by tools mentioned in: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/rust.md#importing-a-crate-from-crates_io When adding llguidance, the lark feature is added to avoid lark reference build errors. ./tools/crates/run_gnrt.py add llguidance -- --no-default-features -F lark Some changes edited manually: - remove group = 'test' entries for '[crate.anyhow]' from third_party\rust\chromium_crates_io\gnrt_config.toml. This is to avoid 'testonly = true' entries in generated BUILD.gn files since llguidance is not for testonly - replace CRLF by LF in third_party/rust/chromium_crates_io/vendor/derivre-v0_3/SUPPORT.md - infra\inclusive_language_presubmit_exempt_dirs.txt is updated to add exception for third_party\rust\chromium_crates_io\vendor\serde_json-v1\.github\workflows\ci.yml:58 Bug: 391919456 Change-Id: Iec3c0e6066e464363e27f0906c47fc7acbc4fa1e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6272323 Commit-Queue: Frank Li <frankli@microsoft.com> Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org> Reviewed-by: Clark DuVall <cduvall@chromium.org> Cr-Commit-Position: refs/heads/main@{#1445948}