-
Notifications
You must be signed in to change notification settings - Fork 56
feat(platform-wallet)!: shared ThreadRegistry for coordinator lifecycle + shutdown UAF/data-loss fixes #3954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Claudius-Maginificent
wants to merge
6
commits into
v4.1-dev
Choose a base branch
from
feat/platform-wallet-shutdown-join
base: v4.1-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
22043fa
feat(platform-wallet)!: join coordinator threads at shutdown via shar…
lklimek 82d4a43
fix(platform-wallet): close start/shutdown races and surface teardown…
lklimek 855828b
refactor(dash-async): drop unused AtomicFlagGuard/RefcountedFlagGuard…
lklimek 84ce35b
Merge remote-tracking branch 'origin/v4.1-dev' into claudius/3954-mer…
lklimek 84e8d0a
feat(swift-sdk): mirror ErrorShutdownIncomplete = 22 in PlatformWalle…
lklimek c1d86d9
refactor(platform-wallet): migrate sync coordinators to registry-owne…
lklimek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: dashpay/platform
Length of output: 146
🏁 Script executed:
Repository: dashpay/platform
Length of output: 12483
🏁 Script executed:
Repository: dashpay/platform
Length of output: 248
🏁 Script executed:
Repository: dashpay/platform
Length of output: 899
🌐 Web query:
rustdoc intra-doc link cfg-gated item unresolved on target_arch wasm32 warnings denied💡 Result:
When
rustdocencounters intra-doc links to items that are "cfg-gated" (hidden behind configuration flags liketarget_arch = "wasm32"), it frequently triggers therustdoc::broken_intra_doc_linkslint because the items are not available in the current documentation build environment [1][2]. Sincerustdocgenerates documentation based on the current configuration, it cannot resolve links to items that have been filtered out [3]. If you have configured your project to treat these warnings as errors (e.g.,#![deny(rustdoc::broken_intra_doc_links)]), the documentation build will fail [4][5]. To address this, you can use the following common approaches: 1. Usecfg(doc)to expose the item to rustdoc: You can use#[cfg(any(doc, target_arch = "wasm32"))]on your item. This ensures that the item is visible torustdocduring documentation generation, regardless of the target architecture, while remaining restricted during normal compilation [3]. 2. Build with the relevant flags: If you are using Cargo, you can runcargo docwith the necessary flags to ensure all items are included. For feature gates, this is oftencargo doc --all-features. However, for target-specific code, this may be more complex as standardcargo doconly documents for the host target [1][3]. 3. Allow or suppress the warning: If you cannot or do not wish to expose the item, you can specifically allow the lint in the module where the broken link occurs:#[allow(rustdoc::broken_intra_doc_links)][4][5]. Note that there is no automatic mechanism forrustdocto "intelligently" resolve these links or know that an item is intentionally cfg-ed out; it currently relies on the provided environment's configuration [1][2].Citations:
Avoid the unconditional [
ThreadRegistry] link here.ThreadRegistryis cfg-gated out onwasm32, so this crate-level doc link can break awasm32rustdoc build with broken intra-doc links denied. Use plain code formatting or gate the link behind the same cfg.🤖 Prompt for AI Agents