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

Dependency instant is unmaintained #483

Closed
gaojiaqi7 opened this issue Jan 17, 2025 · 3 comments · Fixed by #484
Closed

Dependency instant is unmaintained #483

gaojiaqi7 opened this issue Jan 17, 2025 · 3 comments · Fixed by #484
Assignees

Comments

@gaojiaqi7
Copy link

cargo deny check advisories
2025-01-17 02:39:06 [WARN] unable to find a config path, falling back to default config
error[unmaintained]: `instant` is unmaintained
   ┌─ /home/env/source/bootloader/Cargo.lock:60:1
   │
60 │ instant 0.1.13 registry+https://github.com/rust-lang/crates.io-index
   │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ unmaintained advisory detected
   │
   ├ ID: RUSTSEC-2024-0384
   ├ Advisory: https://rustsec.org/advisories/RUSTSEC-2024-0384
   ├ This crate is no longer maintained, and the author recommends using the maintained [`web-time`] crate instead.
     
     [`web-time`]: https://crates.io/crates/web-time
   ├ Solution: No safe upgrade is available!
   ├ instant v0.1.13
     └── fastrand v1.9.0
         └── futures-lite v1.13.0
             ├── async-io v1.13.0
             │   └── async-process v1.8.1
             │       └── (build) bootloader v0.11.9
             │           └── bootloader_test_runner v0.1.0
             │               └── (dev) bootloader v0.11.9 (*)
             ├── async-process v1.8.1 (*)
             └── futures-concurrency v7.6.2
                 └── (build) bootloader v0.11.9 (*)
@bjorn3
Copy link
Contributor

bjorn3 commented Jan 17, 2025

Updating futures-lite to 2.6 would remove the dependency on instant. Unfortunately futures-concurrency doesn't have a version which depends on futures-lite 2.6. Only async-process has an updated version available.

@gaojiaqi7
Copy link
Author

Thanks @bjorn3 @Freax13 ! The instant crate is still present in the dependency tree because it is indirectly referenced by tempfile:

error[unmaintained]: `instant` is unmaintained
   ┌─ /home/env/source/bootloader/Cargo.lock:26:1
   │
26 │ instant 0.1.12 registry+https://github.com/rust-lang/crates.io-index
   │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ unmaintained advisory detected
   │
   ├ ID: RUSTSEC-2024-0384
   ├ Advisory: https://rustsec.org/advisories/RUSTSEC-2024-0384
   ├ This crate is no longer maintained, and the author recommends using the maintained [`web-time`] crate instead.
     
     [`web-time`]: https://crates.io/crates/web-time
   ├ Solution: No safe upgrade is available!
   ├ instant v0.1.12
     └── fastrand v1.9.0
         └── tempfile v3.6.0
             └── bootloader v0.11.9
                 └── bootloader_test_runner v0.1.0
                     └── (dev) bootloader v0.11.9 (*)

I have submitted a PR #485 to upgrade the version of tempfile, so instant will be completely removed.

@Freax13
Copy link
Member

Freax13 commented Jan 20, 2025

Oops, my bad, that's embarrassing 🙈

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