Remove LinkType trait, use LinkReference from platform-num#31
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: #30
Unify the trait hierarchy by making LinkType a supertrait of LinkReference from platform-num 0.7.0, replacing the local funty() method with from_byte() and re-exporting LinkReference publicly. Fixes #30 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost: $4.146063📊 Context and tokens usage:Claude Opus 4.6:
Total: (95.3K + 5.7M cached) input tokens, 19.7K output tokens, $3.930576 cost Claude Haiku 4.5: Total: (93.8K + 623.2K cached) input tokens, 7.2K / 64K (11%) output tokens, $0.215487 cost 🤖 Models used:
📎 Log file uploaded as Gist (2883KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
This reverts commit 6f81ce7.
|
We must remove all mentions of |
|
🤖 AI Work Session Started Starting automated work session at 2026-04-14T12:14:03.784Z The PR has been converted to draft mode while work is in progress. This comment marks the beginning of an AI work session. Please wait for the session to finish, and provide your feedback. |
BREAKING CHANGE: LinkType trait has been removed. All trait bounds now use LinkReference from platform-num directly. Downstream code should replace T: LinkType with T: LinkReference. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Changes per feedbackPer your comment,
CI: ✅ All checks passing |
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost: $1.808517📊 Context and tokens usage:
Total: (96.6K + 1.9M cached) input tokens, 11.1K output tokens, $1.808517 cost 🤖 Models used:
📎 Log file uploaded as Gist (1219KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
|
After linksplatform/Numbers#147 is applied use latest version of https://crates.io/crates/platform-num, now we can fully support LinkReference, and also fully drop num_traits dependency, as https://crates.io/crates/platform-num reexports everything. If something is still missing - report bug at https://github.com/linksplatform/Numbers |
|
🤖 AI Work Session Started Starting automated work session at 2026-04-14T13:08:34.689Z The PR has been converted to draft mode while work is in progress. This comment marks the beginning of an AI work session. Please wait for the session to finish, and provide your feedback. |
platform-num 0.8.0 (Numbers PR #147) re-exports all num-traits traits, so downstream crates no longer need a direct num-traits dependency. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Changes per feedback (platform-num 0.8.0 upgrade)Per your comment, upgraded
The only dependency is now |
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost: $1.231742📊 Context and tokens usage:
Total: (44.8K + 1.6M cached) input tokens, 6.7K output tokens, $1.231742 cost 🤖 Models used:
📎 Log file uploaded as Gist (1015KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Summary
LinkTypetrait entirely — all trait bounds now useLinkReferencefromplatform-numdirectlysrc/link_type.rs(was a backward-compatible alias wrappingLinkReference)T: LinkTypebounds withT: LinkReferenceacross all traitsfunty()calls withfrom_byte()fromLinkReferenceLinkReferencepublicly fromplatform_treesnum-traitsdependency —platform-num0.8.0 re-exports all needed traits (per Numbers PR #147)platform-numfrom 0.6.0 to 0.8.0u128support viaLinkReferenceMigration guide
use platform_trees::LinkTypeuse platform_num::LinkReference(oruse platform_trees::LinkReference)T: LinkTypeT: LinkReferenceT::funty(n)T::from_byte(n)Test plan
cargo fmt --checkpassesLinkTypein source or testsu128now works as a link type viaLinkReferencenum-traitsdependency — everything comes throughplatform-num0.8.0Fixes #30
🤖 Generated with Claude Code