Skip to content

Replace deprecated cargo_bin function with cargo_bin! macro#858

Closed
ghost wants to merge 1 commit intomasterfrom
unknown repository
Closed

Replace deprecated cargo_bin function with cargo_bin! macro#858
ghost wants to merge 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Mar 21, 2026

CommandCargoExt::cargo_bin and the cargo_bin function from assert_cmd were deprecated because they're incompatible with custom cargo build directories. The cargo_bin! macro is the recommended replacement.

This fixes the deprecation warning when running cargo clippy --all-targets. All 58 tests still pass.

The cargo_bin function and CommandCargoExt trait were deprecated in
assert_cmd because they're incompatible with custom cargo build
directories. The cargo_bin! macro is the recommended replacement.
@ghost ghost closed this by deleting the head repository Mar 26, 2026
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants