rustsec / rustsec/rustsec

Make lock timeout configurable

Open
#974 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

cargo-audit crate enhancement
Dominant language
Rust
Stars
2k
Forks
198
Avg merge
2d 6h
Merged PRs (30d)
8

Description

cargo audit currently hardcodes how long it will wait to acquire a filesystem lock:
https://github.com/rustsec/rustsec/blob/7c05b2ec0104a1a7c38322d90baf7627add73a11/cargo-audit/src/auditor.rs#L17-L18

It would be nice to make it configurable through the configuration file and/or the command-line arguments.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in cargo-audit/src/auditor.rs at the hardcoded filesystem lock timeout around lines 17–18. Trace how configuration files and command-line arguments are defined and loaded, then make the timeout configurable through the supported interface and verify that the selected value controls lock acquisition.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.