docs(types): record that the codec macros must precede the mod declarations - #303
mehmetkr-31 wants to merge 1 commit into
Conversation
…ations `network` and `wal` reach `impl_versioned_codec!` and `impl_versioned_codec_with_legacy_fallback!` through textual scope — there is no path import and no `pub(crate) use` re-export. Hoisting the `pub mod` block above the macros, or alphabetising the file, breaks all 11 invocation sites with `cannot find macro`, and nothing at those sites hints at the dependency. Comments only; no behaviour change.
|
Verified all of it against
For the record, the sturdier alternative from the #232 review thread is still available if this ever bites: reinstate a |
|
Hi @mehmetkr-31, Thank you for your interest in contributing to Arc Node, and apologies for the delay in getting back to this PR. We're closing out the pull request backlog that predates our current contribution policy. This PR is being closed because the number it references is a pull request, not an issue. All PRs must reference an existing issue using the format This is not a judgement on the change itself. If you'd still like to land it:
Please see CONTRIBUTING.md for details. Thanks again for taking the time to contribute. |
networkandwalreachimpl_versioned_codec!andimpl_versioned_codec_with_legacy_fallback!through textual scope — there is no path import and nopub(crate) usere-export onmain. Hoisting thepub modblock above the macros, or alphabetisingcodec/mod.rs, breaks all 11 invocation sites withcannot find macro, and nothing at those sites hints at the dependency.Two comment lines, one per macro, so moving either one alone still surfaces the constraint. No behaviour change;
cargo check -p arc-consensus-typesandcargo fmt --all --checkclean.Context: @osr21 raised this while reviewing #232, which proposed removing the imports that made the ordering irrelevant. The v0.8.0 sync (#285) removed them upstream instead, so #232 is superseded — but the fragility it would have introduced now exists on
mainundocumented, and with a second macro depending on it. Closing #232 in favour of this.