Merged
Conversation
- Bump version to 0.5.1 in Cargo.toml, injectorpp-macros/Cargo.toml, README.md - Add CHANGELOG entry for 0.5.1 with new_global() and bug fix for #121 - Add 'Thread-local vs Global mode' section to README with usage guide and rayon example Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Release 0.5.1
Changes
InjectorPP::new_global()constructor — opt-in global (0.4.0-style) code patching that makes fakes visible to all threads, including background threads, timers, and thread pools like rayon.Migration from 0.5.0
If you have tests that broke in 0.5.0 because faked functions are called from background threads (rayon, timers, etc.), change
InjectorPP::new()toInjectorPP::new_global():new()remains the default for thread-local dispatch with parallel test execution.new_global()acquires an exclusive lock, serializing tests that use it.Files changed
Cargo.toml— version bump to 0.5.1injectorpp-macros/Cargo.toml— version bump to 0.5.1CHANGELOG.md— added 0.5.1 release notesREADME.md— added "Thread-local vs Global mode" section with usage guide and rayon example, updated versiontests/global.rs— minor comment update