Add crate isolation of fail points #85
Open
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.
In reference to #69
Firstly, thank you for this crate, it is incredibly useful. For context, what I am currently doing is trying to put a set of fail points behind feature flags within my crates to allow for easier testing of downstream libraries that use it.
This PR is similar to the idea mentioned in #69 but does not make it the default, instead it makes this an opt-in decision for the end user to prevent this being a breaking change of behaviour (as confirmed by testing.)
I've tested this more verbosely by creating a chain of crates that depend on fail points from within each other; however, it is quite bulky, so I'm not sure if you'd like me to include them in this PR or continue to leave them out.