structopt is obsolete #22

Open
opened 2026-03-15 17:55:32 +00:00 by decathorpe · 6 comments
Owner

The structopt crate is obsolete, its functionality was integrated into version 3 of clap. It depends on clap v2, which is itself very old and obsolete. Porting from structopt to clap/derive is usually straightforward.

Dependent packages:

The `structopt` crate is obsolete, its functionality was integrated into version 3 of `clap`. It depends on `clap` v2, which is itself very old and obsolete. Porting from `structopt` to `clap/derive` is usually straightforward. Dependent packages: - [x] gap-pkg-vole: <https://bugzilla.redhat.com/show_bug.cgi?id=2554591> - [ ] rust-mdsh: <https://bugzilla.redhat.com/show_bug.cgi?id=2554590> - [ ] rust-rustcat: <https://bugzilla.redhat.com/show_bug.cgi?id=2118417>
Author
Owner

A RUSTSEC advisory was published for structopt: https://rustsec.org/advisories/RUSTSEC-2022-0104.html

A RUSTSEC advisory was published for `structopt`: <https://rustsec.org/advisories/RUSTSEC-2022-0104.html>

It seems that as of mdsh version 0.9.2, it is using clap 4. This change does not appear to have made its way to crates.io, which is still at version 0.7.0.

As for rustcap, the latest version on crates.io uses clap, but it has not been updated in 2 years according to GitHub.

It seems that as of [mdsh version 0.9.2](https://github.com/zimbatm/mdsh/blob/main/Cargo.toml), it is using clap 4. This change does not appear to have made its way to [crates.io](https://crates.io/crates/mdsh/0.7.0/code/Cargo.toml), which is still at version 0.7.0. As for rustcap, the latest version on [crates.io](https://crates.io/crates/rustcat/3.0.0) uses clap, but it has not been updated in 2 years according to [GitHub](https://github.com/robiot/rustcat).

This is a link to the issue opened for mdsh: https://github.com/zimbatm/mdsh/issues/105

This is a link to the issue opened for mdsh: https://github.com/zimbatm/mdsh/issues/105
Author
Owner

Wow, a new package has started depending on structopt (gap-pkg-vole) ...

Wow, a new package has started depending on structopt (gap-pkg-vole) ...
Member

mdsh can be orphaned or even retired if you ask me. I never used it, only packaged it for someone who I don't even remember who it was.

mdsh can be orphaned or even retired if you ask me. I never used it, only packaged it for someone who I don't even remember who it was.
Member

@decathorpe wrote in #22 (comment):

Wow, a new package has started depending on structopt (gap-pkg-vole) ...

Linking https://bugzilla.redhat.com/show_bug.cgi?id=2554591 and noting that @jjames fixed this via https://github.com/peal/vole/pull/89, currently carried as a downstream patch.

@decathorpe wrote in https://forge.fedoraproject.org/rust/backlog/issues/22#issuecomment-1366850: > Wow, a new package has started depending on structopt (gap-pkg-vole) ... Linking https://bugzilla.redhat.com/show_bug.cgi?id=2554591 and noting that @jjames fixed this via https://github.com/peal/vole/pull/89, currently carried as a downstream patch.
Sign in to join this conversation.
No description provided.