Skip to content

Adjust docs for deprecation of Command::cargo_bin #265

Description

@SRv6d

The docs contain lots of examples suggesting to use Command::cargo_bin which was deprecated in 2.1.0.

Activity

  1. epage commented on Dec 31, 2025

    @epage
    Contributor

    This was an intentional choice. cargo_bin! cannot compile in doctests which leads to situations like #264.

    FYI the deprecation will go away if the Cargo team approves rust-lang/cargo#16421

  2. SRv6d commented on Jan 1, 2026

    @SRv6d
    Author

    So it sounds like the best course of action as a user of assert_cmd is to ignore the deprecation for now?

  3. epage commented on Jan 1, 2026

    @epage
    Contributor

    Depends on

    • if the feature gets approved
    • you are ok with your project being broken with build-dir set for the Rust versions since introduced and the feature being mergedd
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