Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Need to have structopt/serde as peer dependency #9

Open
@killercup

Description

@killercup

The structopt derive macro doesn't work unless the current project allows extern crate structopt;.

This means, user of quicli must cargo add structopt, which is not that cool.

This is part of this code which expands to something like:

const _IMPL_STRUCTOPT_FOR_Cli: () = {
    extern crate structopt as _structopt;
    use structopt::StructOpt;
    impl _structopt::StructOpt for Cli {

Maybe we can add a feature to either suppress or customize this upstream?


Same is also true for serde! (Thanks to this code)

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions