Skip to content

Conversation

MiSawa
Copy link
Contributor

@MiSawa MiSawa commented Apr 1, 2022

This patch makes file writes use "create a temp file in the same directory, write to it, and move the it to the final location" pattern. This makes no other process trying to read Cargo.toml/metadata.json get a half-written state, so concurrent run of rust-script will be a bit safer.

@fornwall
Copy link
Owner

Thanks! Will be included in version 0.21.0, to be released shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants