[GH-ISSUE #545] Tests rely on deprecated assert_cmd::cargo_bin which will break on future Cargo versions #240

Closed
opened 2026-06-08 11:26:17 +03:00 by zhus · 1 comment
Owner

Originally created by @epage on GitHub (Dec 19, 2025).
Original GitHub issue: https://github.com/bootandy/dust/issues/545

https://github.com/bootandy/dust/blob/62bf1e14de73b14bdf5c691be29e6dcc4de352aa/tests/tests_symlinks.rs#L47

cargo_bin relies on implementation details of cargo that will soon break (rust-lang/cargo#16147, rust-lang/cargo#15010).

You can test this by running:

CARGO_BUILD_BUILD_DIR="{cargo-cache-home}/build/{workspace-path-hash}" cargo test

The replacement is assert_cmd::cargo_bin!

Originally created by @epage on GitHub (Dec 19, 2025). Original GitHub issue: https://github.com/bootandy/dust/issues/545 https://github.com/bootandy/dust/blob/62bf1e14de73b14bdf5c691be29e6dcc4de352aa/tests/tests_symlinks.rs#L47 `cargo_bin` relies on implementation details of cargo that will soon break (rust-lang/cargo#16147, rust-lang/cargo#15010). You can test this by running: ``` CARGO_BUILD_BUILD_DIR="{cargo-cache-home}/build/{workspace-path-hash}" cargo test ``` The replacement is `assert_cmd::cargo_bin!`
zhus closed this issue 2026-06-08 11:26:17 +03:00
Author
Owner

@bootandy commented on GitHub (Jan 7, 2026):

https://github.com/bootandy/dust/pull/540

<!-- gh-comment-id:3720623076 --> @bootandy commented on GitHub (Jan 7, 2026): https://github.com/bootandy/dust/pull/540
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#240