Appease cargo-audit#73
Closed
genos wants to merge 6 commits intos-arash:masterfrom
genos:appease-cargo-audit
Closed
Appease cargo-audit#73genos wants to merge 6 commits intos-arash:masterfrom genos:appease-cargo-audit
genos wants to merge 6 commits intos-arash:masterfrom
genos:appease-cargo-audit
Conversation
Hello! And thanks for `ascent`, it's really interesting. According to [`cargo-audit`](https://crates.io/crates/cargo-audit), and as mentioned in #65, there are a pair of unmaintained dependencies that trigger RUSTSEC warnings: ``` $ cargo audit Fetching advisory database from `https://github.com/RustSec/advisory-db.git` Loaded 820 security advisories (from /Users/graham/.cargo/advisory-db) Updating crates.io index Scanning Cargo.lock for vulnerabilities (107 crate dependencies) Crate: instant Version: 0.1.13 Warning: unmaintained Title: `instant` is unmaintained Date: 2024-09-01 ID: RUSTSEC-2024-0384 URL: https://rustsec.org/advisories/RUSTSEC-2024-0384 Dependency tree: instant 0.1.13 └── ascent 0.8.0 ├── ascent_macro 0.8.0 │ └── ascent 0.8.0 └── ascent-byods-rels 0.8.0 Crate: paste Version: 1.0.15 Warning: unmaintained Title: paste - no longer maintained Date: 2024-10-07 ID: RUSTSEC-2024-0436 URL: https://rustsec.org/advisories/RUSTSEC-2024-0436 Dependency tree: paste 1.0.15 ├── ascent_base 0.8.0 │ ├── ascent_macro 0.8.0 │ │ └── ascent 0.8.0 │ │ ├── ascent_macro 0.8.0 │ │ └── ascent-byods-rels 0.8.0 │ └── ascent 0.8.0 ├── ascent-byods-rels 0.8.0 └── ascent 0.8.0 warning: 2 allowed warnings found ``` This tiny PR replaces `instant` with the recommended [`web-time`](https://crates.io/crates/web-time) and `paste` with its successor [`pastey`](https://crates.io/crates/pastey).
s-arash
reviewed
Sep 22, 2025
Owner
There was a problem hiding this comment.
Please remove this one from the PR too!
Contributor
Author
There was a problem hiding this comment.
It was a whitespace change, vim's :wq added a newline at the end
Owner
There was a problem hiding this comment.
The file needs to remain in the repo unchanged. Let's not delete it!
Contributor
Author
There was a problem hiding this comment.
Yup, sorry! Already added it back in. I'm sure you weren't planning on this much open source babysitting today, my apologies.
Contributor
Author
|
Sorry, I've made such a hash of this one. I'll close this PR and open a cleaner version. |
github-merge-queue bot
pushed a commit
to Quantinuum/hugr
that referenced
this pull request
Sep 22, 2025
…2572) According to [`cargo-audit`](https://crates.io/crates/cargo-audit), there are a few RUSTSEC advisories lurking in `hugr` due to unmaintained dependencies: - `fxhash`, both directly and transitively via `relrc` - `instant`, transitively via `ascent` - `paste`, both directly and transitively via `ascent` This PR replaces local `fxhash` usage with the suggested [`rustc-hash`](https://crates.io/crates/rustc-hash) and `paste` with the successor [`pastey`](https://crates.io/crates/pastey). **Of note:** switching to `rustc-hash` changed a couple of the testing snapshots. I think everything is still in there, but the ordering has shuffled a bit. Of course, the transitive dependencies require updates to `ascent` and `relrc`; see [this `ascent`](s-arash/ascent#73) PR and [this `relrc`](lmondada/relrc#8) one. If/when those get merged and released, we'd want to bump the versions of those packages here, too. <details> <summary>Output of cargo audit</summary> ``` $ cargo audit Fetching advisory database from `https://github.com/RustSec/advisory-db.git` Loaded 820 security advisories (from /Users/graham/.cargo/advisory-db) Updating crates.io index Scanning Cargo.lock for vulnerabilities (416 crate dependencies) Crate: fxhash Version: 0.2.1 Warning: unmaintained Title: fxhash - no longer maintained Date: 2025-09-05 ID: RUSTSEC-2025-0057 URL: https://rustsec.org/advisories/RUSTSEC-2025-0057 Dependency tree: fxhash 0.2.1 ├── relrc 0.4.6 │ ├── hugr-persistent 0.2.3 │ │ └── hugr 0.22.3 │ │ ├── hugr-core 0.22.3 │ │ │ ├── hugr-persistent 0.2.3 │ │ │ ├── hugr-passes 0.22.3 │ │ │ │ └── hugr 0.22.3 │ │ │ ├── hugr-llvm 0.22.3 │ │ │ │ ├── hugr-llvm 0.22.3 │ │ │ │ └── hugr 0.22.3 │ │ │ └── hugr 0.22.3 │ │ └── hugr-cli 0.22.3 │ └── hugr-core 0.22.3 ├── hugr-model 0.22.3 │ ├── hugr-py 0.1.0 │ ├── hugr-core 0.22.3 │ └── hugr 0.22.3 └── hugr-core 0.22.3 Crate: instant Version: 0.1.13 Warning: unmaintained Title: `instant` is unmaintained Date: 2024-09-01 ID: RUSTSEC-2024-0384 URL: https://rustsec.org/advisories/RUSTSEC-2024-0384 Dependency tree: instant 0.1.13 └── ascent 0.8.0 └── hugr-passes 0.22.3 └── hugr 0.22.3 ├── hugr-core 0.22.3 │ ├── hugr-persistent 0.2.3 │ │ └── hugr 0.22.3 │ ├── hugr-passes 0.22.3 │ ├── hugr-llvm 0.22.3 │ │ ├── hugr-llvm 0.22.3 │ │ └── hugr 0.22.3 │ └── hugr 0.22.3 └── hugr-cli 0.22.3 Crate: paste Version: 1.0.15 Warning: unmaintained Title: paste - no longer maintained Date: 2024-10-07 ID: RUSTSEC-2024-0436 URL: https://rustsec.org/advisories/RUSTSEC-2024-0436 Dependency tree: paste 1.0.15 ├── hugr-py 0.1.0 ├── hugr-passes 0.22.3 │ └── hugr 0.22.3 │ ├── hugr-core 0.22.3 │ │ ├── hugr-persistent 0.2.3 │ │ │ └── hugr 0.22.3 │ │ ├── hugr-passes 0.22.3 │ │ ├── hugr-llvm 0.22.3 │ │ │ ├── hugr-llvm 0.22.3 │ │ │ └── hugr 0.22.3 │ │ └── hugr 0.22.3 │ └── hugr-cli 0.22.3 ├── hugr-core 0.22.3 ├── ascent_base 0.8.0 │ ├── ascent_macro 0.8.0 │ │ └── ascent 0.8.0 │ │ └── hugr-passes 0.22.3 │ └── ascent 0.8.0 └── ascent 0.8.0 warning: 3 allowed warnings found ``` </details> BREAKING CHANGE: replaced `fxhash` and `paste` with `rustc-hash` and `pastey`, respectively.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello! And thanks for
ascent, it's really interesting.According to
cargo-audit, and as mentioned in #65, there are a pair of unmaintained dependencies that trigger RUSTSEC warnings:This tiny PR replaces
instantwith the recommendedweb-timeandpastewith its successorpastey.