datrs / random-access-disk

Continuously read/write to disk using random offsets and lengths .
Apache License 2.0
27 stars 13 forks source link

replace tempdir crate (deprecated) with tempfile crate, using tempfile::Builder to create a tempdir #12

Closed jakeburden closed 6 years ago

jakeburden commented 6 years ago

this is a 🙋 feature

Checklist

Context

I noticed the tests were using the tempdir crate which had been deprecated recently: rust-lang-deprecated/tempdir#45. So this is really just a small clean up to replace tempdir with it's new home, the tempfile crate.

The api for tempdir has been merged into the tempfile. I'm using the Builder struct to create the tempdir with a prefix of "random-access-disk".

I hope this PR isn't too obtrusive, I know it doesn't add much but I'm hoping it helps a little in the grand scheme 😄

Semver Changes

patch

p.s., thank you for making this crate! It's been wonderful seeing Dat be made in rust, and it's inspired me to try to learn rust as well!