1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Compile-time visibility pin for md-codec public BCH surface.
//!
//! Promoted in v0.34.0 to authorize downstream-codec consumers
//! (toolkit + ms-codec) per plan §2.B.1. The six symbols below were
//! promoted from bare-private or `pub(crate)` to `pub`:
//!
//! - `GEN_REGULAR` (bch.rs:7) bare-private → pub
//! - `MD_REGULAR_CONST` (bch.rs:17) bare-private → pub
//! - `polymod_run` (bch.rs:34) bare-private → pub
//! - `hrp_expand` (bch.rs:43) bare-private → pub
//! - `bch_create_checksum_regular` (bch.rs:57) pub(crate) → pub
//! - `bch_verify_regular` (bch.rs:70) pub(crate) → pub
//!
//! Catches accidental visibility regression: if a future refactor
//! drops `pub` on any of these (or on `pub mod bch;` in lib.rs) this
//! file stops compiling.
//!
//! ## Intentionally NOT promoted (per plan Q3 lock)
//!
//! The following remain bare-private inside `bch.rs` because B.2's
//! vendored `bch_decode.rs` re-declares them locally and external
//! consumers have no use for them:
//!
//! - `POLYMOD_INIT` (bch.rs:19)
//! - `REGULAR_SHIFT` (bch.rs:20)
//! - `REGULAR_MASK` (bch.rs:21)
//! - `polymod_step` (bch.rs:23)
//!
//! These cannot be exercised by an integration test (bare-private
//! items aren't reachable from outside the crate); this comment block
//! documents the deliberate non-promotion so future PRs don't drift.
use ;