Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use tempfile crate to make tempfiles #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

n8henrie
Copy link

@n8henrie n8henrie commented Jan 2, 2019

Fixes #7

Removes dependency on nix
Adds dependency on tempfile

Fixes build failure on MacOS due to absence of `O_TMPFILE`

Fixes kevincox#7
@CLAassistant
Copy link

CLAassistant commented Jan 2, 2019

CLA assistant check
All committers have signed the CLA.

{ use nix::sys::stat::*; S_IRUSR | S_IWUSR })?;
let file = unsafe { std::fs::File::from_raw_fd(fd) };

let file = tempfile::tempfile().expect("Error opening tempfile");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error should be returned like it was previously instead of panicking.

Cargo.toml Outdated Show resolved Hide resolved
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.

Cannot build on MacOS
3 participants