From db85ef0547aff8453aef6a392da4dea34ce12ba6 Mon Sep 17 00:00:00 2001 From: zarzet <42882290+zarzet@users.noreply.github.com> Date: Sun, 18 Oct 2026 21:56:15 +0700 Subject: [PATCH] docs(rust): mark the Unicode case table as frozen and generated The table is pinned to Unicode 15.0.0 for matching parity and its generator is no longer in the repository. Say so in the header and mark the file as generated for linguist. --- .gitattributes | 3 +++ .../crates/core/src/metadata/musicbrainz/case_data.rs | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index 03098508..a4cdddbf 100644 --- a/.gitattributes +++ b/.gitattributes @@ -27,6 +27,9 @@ rust_backend/vendor/rustix-1.1.5/ORG_CODE_OF_CONDUCT.md whitespace=-blank-at-eol # Preserve libusb's upstream sources, license whitespace, and source hashes. rust_backend/vendor/libusb1-sys-0.7.0/** -whitespace +# Frozen Unicode 15.0.0 case table; its generator is no longer in the repository. +rust_backend/crates/core/src/metadata/musicbrainz/case_data.rs linguist-generated=true + # Binary files *.png binary *.jpg binary diff --git a/rust_backend/crates/core/src/metadata/musicbrainz/case_data.rs b/rust_backend/crates/core/src/metadata/musicbrainz/case_data.rs index e64e31ae..098ec739 100644 --- a/rust_backend/crates/core/src/metadata/musicbrainz/case_data.rs +++ b/rust_backend/crates/core/src/metadata/musicbrainz/case_data.rs @@ -1,5 +1,7 @@ -// Generated by docs/internal/legacy-go/rust_backend/tools/generate_case_data.go. DO NOT EDIT. -// Unicode 15.0.0, golang.org/x/text v0.41.0; see NOTICE. +// Generated and frozen. DO NOT EDIT. +// Pinned to Unicode 15.0.0 (golang.org/x/text v0.41.0; see NOTICE) for matching +// parity with the retired Go backend. It was generated once by a tool that is no +// longer in the repository, and must not be regenerated with newer std tables. // Flags: cased=1, case-ignorable=2, word break=4, mid punctuation=8. #[rustfmt::skip] pub(super) const RANGES: &[(u32, u32, u8)] = &[