Skip to content

discv5: experimental topic wire flag, CI, manual v0.1.0 release#35

Merged
ch4r10t33r merged 1 commit into
mainfrom
feat/issue-24-ci-release
May 10, 2026
Merged

discv5: experimental topic wire flag, CI, manual v0.1.0 release#35
ch4r10t33r merged 1 commit into
mainfrom
feat/issue-24-ci-release

Conversation

@ch4r10t33r
Copy link
Copy Markdown
Owner

Issue #24

Non-final topic advertisement wire (REGTOPIC / TICKET / REGCONFIRMATION / TOPICQUERY) is now controlled by a build option:

  • -Dexperimental_topic_wire (default true): current behavior — decode accepts 0x07–0x0a; wire.MessageKind.parse recognizes those kinds.
  • -Dexperimental_topic_wire=false: inbound decodePlaintext returns UnknownKind for experimental types; MessageKind.parse returns null for 0x07–0x0a. Encode helpers remain available for tooling.

CI

  • .github/workflows/ci.yml — on push/PR to main: zig fmt --check, zig build test, and tests with experimental topic wire disabled.

Release

  • .github/workflows/release.ymlworkflow_dispatch with tag input (default v0.1.0). Verifies the tag (without v) matches build.zig.zon version, runs the same checks as CI, then creates a GitHub Release with generated notes.

Also: zig-pkg/ in .gitignore for stray local package trees.

Closes #24.

- Add -Dexperimental_topic_wire (default true); when false, decodePlaintext
  rejects 0x07-0x0a and wire.MessageKind.parse hides those kinds.
- Tests: skip topic roundtrip when off; assert UnknownKind when off.
- CI: format + tests on main PR/push, including experimental_topic_wire=false.
- Release: workflow_dispatch creates GitHub Release; verifies tag matches
  build.zig.zon version (default v0.1.0).
- README: document option and workflows; gitignore zig-pkg/.

Closes #24.
@ch4r10t33r ch4r10t33r merged commit 6fcc1f7 into main May 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

discv5: experimental topic wire (REGTOPIC / etc.)

1 participant