UnmaintainedRUSTSEC-2022-0104 · structopt
RUSTSEC-2022-0104: `structopt` is in maintenance mode
Short answerNot a bug report: structopt is no longer maintained, so future security issues will not be fixed. Plan to move to a maintained alternative.
| Crate | structopt |
|---|---|
| Type | Unmaintained |
| Affected versions | Every version. |
| Fixed in | not applicable (the crate is unmaintained) |
| Severity | not scored |
| Published | 2022-02-08 |
| Last changed | 2026-06-22 |
| Also known as | none |
What to do
- Look for a maintained fork or alternative crate.
- If you cannot move yet, acknowledge it in your audit config so CI stays green while you plan: add
"RUSTSEC-2022-0104"toignorein.cargo/audit.tomlordeny.toml, with a comment saying why. - Find who pulls it in:
cargo tree -i structopt.
Details from the advisory
structopt has been in maintenance mode, with no new development planned, since at least February of 2022.
The status of structopt is discussed in a pinned issue.
Recommended alternative
The structopt derive wrapper was incorporated into clap v3. There is a migration guide for switching from structopt to clap.
References
- Package: crates.io/crates/structopt
- Advisory: rustsec.org/advisories/RUSTSEC-2022-0104.html
- Web: github.com/TeXitoi/structopt#maintenance
- Report: github.com/TeXitoi/structopt/issues/525
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Same cratestructopt: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?