Ethan Pailes

Results 39 comments of Ethan Pailes

It may be worth looking at https://crates.io/crates/regex_generate when I get around to generating matching strings from a regex.

I'll try to find time to do some more thorough testing of my changes before I open a PR.

Adding stable support required making very minimal code changes, so I don't think implementation complexity is much of an issue. With respect to pinning nixpkgs, I'm not familiar with the...

If anyone is interested, I forked this crate and fixed some warnings / a test along with adding the feature I wanted (exposing the child pid to the parent process)....

Actually, I see now that there is already a `keep` method for NamedTempFile, so just adding keep support to TempDir would cover this request.

It looks like `path()/keep()` is not quite equivalent to `into_path()` because ``` { let p = temp_dir.path().clone(); temp_dir.keep(); p } ``` requires a copy while `temp_dir.into_path()` does not.

I'll leave any deprecation marker up to you since it seems like they are not quite equivilant.

You can still dynamically do that using into_path, though it might be a little clunky. At the very least you can just keep a PathBuf that you either copy from...

I’m not the maintainer, I just opened this fr. If I was the maintainer I would probably add a keep method that mutates the strict in place, but the functionality...

A per temp file keep flag makes the most sense to me. A global toggle seems like a bad idea however it is controlled. On Fri, Mar 15, 2024 at...