Skip to content

Split cli and lib somehow #100

Description

@epage

For anyone using the library, they have to pull in clap, env_logger, etc.

Options

  • Separate packages
  • clifeature (on or off by default)

See also https://blog.rust-lang.org/inside-rust/2024/02/13/this-development-cycle-in-cargo-1-77/#when-to-use-packages-or-workspaces which discusses some of the trade offs

For context, I noticed this when reading a blog post complaining about dependency counts and tried to reproduce their setup.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions