Skip to content

migration: switch internal deps to pinned GitHub git sources - #2

Merged
thedancingdeveloper merged 33 commits into
mainfrom
migration/github-native-source
Jul 23, 2026
Merged

migration: switch internal deps to pinned GitHub git sources#2
thedancingdeveloper merged 33 commits into
mainfrom
migration/github-native-source

Conversation

@thedancingdeveloper

Copy link
Copy Markdown
Collaborator

Rebased onto main, resolving conflicts against the historical Forgejo-registry commit (kept the version bump, replaced the Forgejo registry deps with pinned GitHub git sources) and a workflow-file delete/modify conflict (kept the delete). Also removes the now-redundant [patch] blocks pointing legacy AusAgentSmith-org git URLs at Forgejo, since dependencies now point directly at TheDancingDeveloper-org. Verified with a clean cargo check --all-targets. Part of the Forgejo registry deprecation sequence.

AusAgentSmith and others added 30 commits July 23, 2026 22:50
Add 5 tests: handshake encode/decode, request serialization,
keepalive, choke, and interested message deserialization.
The bencode crate cannot represent Option::None (no nil/null in bencode), so
serializing a PeerExtendedMessageIds with any Option<u8> field set to None
errored with "bencode doesn't support None".

In practice this affected callers that hand-construct the struct — for tests,
mock peers, or peers advertising a partial extension set (e.g. ut_metadata-only
peers that don't implement ut_pex / ut_holepunch). The standard
PeerExtendedMessageIds::my() path was unaffected because it sets all three Some.

Add #[serde(skip_serializing_if = "Option::is_none")] to all three fields and
a regression test covering the partial + fully-empty cases.

Bumps version to 0.1.2 (additive, backwards-compatible — fully-Some structs
serialize identically to before).
@thedancingdeveloper
thedancingdeveloper force-pushed the migration/github-native-source branch 3 times, most recently from 2d67906 to 379aba1 Compare July 23, 2026 23:16

@AusAgentSmith AusAgentSmith left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed: source content verified with cargo check/--all-targets before push; migration policy and rust CI both green.

@thedancingdeveloper
thedancingdeveloper force-pushed the migration/github-native-source branch from 379aba1 to 2b1986e Compare July 23, 2026 23:22

@AusAgentSmith AusAgentSmith left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed: rebased onto current main, resolved conflicts (Forgejo-registry version bump kept, replaced with GitHub git sources; workflow delete/modify resolved), removed stale [patch] blocks, restored ci.yml that a bad conflict resolution had deleted. Migration policy and rust CI both green.

@thedancingdeveloper
thedancingdeveloper merged commit f91f079 into main Jul 23, 2026
2 checks passed
@thedancingdeveloper
thedancingdeveloper deleted the migration/github-native-source branch July 23, 2026 23:23
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.

2 participants