Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Switch from tempdir to tempfile #110

Merged
merged 2 commits into from
Jan 28, 2019
Merged

Switch from tempdir to tempfile #110

merged 2 commits into from
Jan 28, 2019

Conversation

erickt
Copy link
Contributor

@erickt erickt commented Oct 23, 2018

According to the tempdir repository, tempdir has been deprecated
and replaced with tempfile:

https://github.com/rust-lang-deprecated/tempdir#deprecation-note

The current api publicly exposes the tempdir::TempDir type,
so this patch is a breaking change to the public api, so I bumped
the major version in the Cargo.toml file.

@erickt
Copy link
Contributor Author

erickt commented Oct 23, 2018

The test failure is coming from a dependency on slice-deque, which is using std::ptr::NonNull, which was stablized in 1.25. Would you like me to bump your minimum version in travis?

@abonander
Copy link
Owner

Blocking on #111

Before this patch, multipart got into an impossible sitation with
it's dependencies. It errs with:

```
error: failed to select a version for `lazy_static`.
    ... required by package `multipart v0.15.4`
versions that meet the requirements `>= 1.0, < 1.2.0` are: 1.1.0, 1.0.2, 1.0.1, 1.0.0

all possible versions conflict with previously selected packages.

  previously selected package `lazy_static v1.2.0`
    ... which is depended on by `ring v0.13.5`
    ... which is depended on by `cookie v0.11.0`
    ... which is depended on by `rocket_http v0.4.0`
    ... which is depended on by `rocket v0.4.0`
    ... which is depended on by `multipart v0.15.4
```

This is due to ring 0.13.3 bumping lazy_static to 1.2.0 to avoid
a [soundness bug](rust-lang-nursery/lazy-static.rs#117).
This patch fixes this problem by requiring at least rust 1.24.1.

In addition, I noticed that the feature sse4 was depending on
`twoway/pcmp`, but that has been [removed](bluss/twoway#8).
According to the tempdir repository, tempdir has been deprecated
and replaced with tempfile:

https://github.com/rust-lang-deprecated/tempdir#deprecation-note

The current api publicly exposes the `tempdir::TempDir` type,
so this patch is a breaking change to the public api, so I bumped
the major version in the Cargo.toml file.
@erickt
Copy link
Contributor Author

erickt commented Jan 19, 2019

Sorry for the delay! I rebased this on master (and on #118) so it should pass tests again.

@erickt erickt mentioned this pull request Jan 25, 2019
@abonander abonander merged commit d9a1d7b into abonander:master Jan 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants