You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replace funty dependency with platform-num (Numbers) for LinkType trait #16
Replace funty::Unsigned and FuntyPart in the LinkType trait definition with LinkReference from platform-num (Numbers), eliminating the funty dependency entirely.
Current state
platform-data 1.0.0 defines LinkType as:
pubtraitLinkType:Unsigned// from funty 2.0.0
+ FuntyPart// local trait wrapping TryFrom<u8>
+ TryFrom<i8,Error:Debug>
+ TryFrom<u8,Error:Debug>// ... all integer TryFrom/TryInto bounds{}
This depends on funty 2.0.0 for the Unsigned trait. Meanwhile, platform-trees uses num_traits::Unsigned (via platform-num::Number), which is a different trait from a different crate. This creates incompatibility at the generic level — you can't write T: data::LinkType + trees::LinkType without dual bounds because neither implies the other.
Proposed change
Once linksplatform/Numbers#144 is implemented (adding TryFrom/TryInto bounds and funty() method to LinkReference), refactor LinkType to:
pubtraitLinkType:LinkReference{}
Or simply replace LinkType with LinkReference throughout the crate.
This would:
Remove funty from dependencies — Unsigned from num_traits (included in LinkReference via Number) replaces funty::Unsigned
Remove FuntyPart trait — the funty() method will be on LinkReference directly
Remove all explicit TryFrom/TryInto bounds — they'll be part of LinkReference
Unify with platform-trees — both crates will use the same base trait
Impact on downstream crates
doublets-rs can use a single T: LinkReference bound instead of T: data::LinkType + trees::LinkType
Any crate depending on platform-data for LinkType would get the same concrete type support
We need to download all logs and data related about the issue to this repository, make sure we compile that data to ./docs/case-studies/issue-{id} folder, and use it to do deep case study analysis (also make sure to search online for additional facts and data), in which we will reconstruct timeline/sequence of events, list of each and all requirements from the issue, find root causes of the each problem, and propose possible solutions and solution plans for each requirement (we should also check known existing components/libraries, that solve similar problem or can help in solutions).
If there is not enough data to find actual root cause, add debug output and verbose mode if not present, that will allow us to find root cause on next iteration.
If issue related to any other repository/project, where we can report issues on GitHub, please do so. Each issue must contain reproducible examples, workarounds and suggestions for fix the issue in code.
Activity
konard commentedon Apr 14, 2026
Update from Numbers#144 (platform-num)
LinkReferenceinplatform-numnow includes all bounds needed bydata::LinkType:LinkTyperequirementLinkReferencestatusUnsignednum_traits::Unsigned(replacesfunty::Unsigned)FuntyPart(TryFrom<u8> + funty method)from_byte(n: u8) -> SelfTryFrom<T>for all integer typesError: DebugTryInto<T>for all integer typesError: DebugKey decisions
funtyeliminated:num_traits::Unsignedreplacesfunty::Unsigned. Thefrom_byte(n: u8)method replacesFuntyPart::funty().u128support:LinkReferenceis now explicitly supported foru8, u16, u32, u64, u128, usize.T: data::LinkTypewithT: LinkReference, replaceT::funty(n)withT::from_byte(n), and remove thefuntydependency.See: linksplatform/Numbers#145
We need to download all logs and data related about the issue to this repository, make sure we compile that data to
./docs/case-studies/issue-{id}folder, and use it to do deep case study analysis (also make sure to search online for additional facts and data), in which we will reconstruct timeline/sequence of events, list of each and all requirements from the issue, find root causes of the each problem, and propose possible solutions and solution plans for each requirement (we should also check known existing components/libraries, that solve similar problem or can help in solutions).If there is not enough data to find actual root cause, add debug output and verbose mode if not present, that will allow us to find root cause on next iteration.
If issue related to any other repository/project, where we can report issues on GitHub, please do so. Each issue must contain reproducible examples, workarounds and suggestions for fix the issue in code.
Initial commit with task details
feat!: replace funty with platform-num LinkReference