Martin Pool
Martin Pool
Met some people who are using Rust with Bazel, so I will at least reopen this. Apparently there is a realistic example in the Bazel Rust rules repo, and there...
I would start by reading https://github.com/sourcefrog/cargo-mutants/blob/main/DESIGN.md which gives an overview of the code structure, and https://github.com/sourcefrog/cargo-mutants/blob/main/CONTRIBUTING.md. `walk_package` https://github.com/sourcefrog/cargo-mutants/blob/c07ee283d907ab6c5ab2a5925db3b88493eebda3/src/visit.rs#L84 should be more or less able to generate mutants from any Rust...
Yes, I think that framing > In the case you mention, isn't this at least possible? > > ```rust > let mut r = { > #[cfg_attr(test, mutants::skip)] > {...
There are alternatives that don't add a (tiny) dev dependency: * https://mutants.rs/attrs.html * https://mutants.rs/filter_mutants.html
#315 proposes to skip calls to functions/methods matching a string, which is perhaps more precise than a regexp of the statement.
Thanks, Also, I think I added a workaround for the "binary files differ" failure, which should be removed as it will no longer be necessary. Martin On Tue, Apr 15,...
Yes, I'm in favor of updating to a maintained fork, I'm just adding a note (maybe for myself) to remove the obsolete workaround. > Message ID: ***@***.***> >
Specifically 78b7e313a4f3cc9bab504ca5d643c0ce3d9ce7a9 could be partially reverted, leaving the test in place, and the changelog entry.
If you can do it that would be great
Thanks, removal of the workaround looks good. Let's wait and see about `patch` vs `gitpatch` in https://github.com/uniphil/patch-rs/issues/29#issuecomment-2848209412. No need to bifurcate if upstream is actually still maintained.