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

chore: move from tempdir to tempfile #710

Merged
merged 1 commit into from
Jan 9, 2025
Merged

Conversation

decathorpe
Copy link
Contributor

The tempdir crate is obsolete - it has not been updated since 2017, and it has been officially marked as deprecated in RUSTSEC-2018-0017, with the tempfile crate being an obvious replacement.

It looks like only the "manufacturing-server" component still depends on tempdir, everything else already depends on the tempfile crate. Moving this workspace member to tempfile too eliminates a lot of cruft from the lockfile, too.

From what I can tell, tempfile::TempDir::with_prefix(prefix) is a drop-in replacement for tempdir::TempDir::new(prefix).


For context, I'm trying to drop the package for the tempdir crate from Fedora Linux, and fido-device-onboard is one of the few remaining packages that pull it in.

The tempdir crate is obsolete - it has not been updated since 2017,
and it has been officially marked as deprecated in RUSTSEC-2018-0017.
@nullr0ute
Copy link
Contributor

Thanks, we had been tracking this via #684 but no one had got to it yet.

@nullr0ute
Copy link
Contributor

Builds fine locally

Copy link
Contributor

@nullr0ute nullr0ute left a comment

Choose a reason for hiding this comment

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

Looks fine, builds locally

@nullr0ute nullr0ute merged commit 8ee05ed into fdo-rs:main Jan 9, 2025
14 of 24 checks passed
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