Skip to content

Commit 04c74be

Browse files
committed
fix: Deprecate cargo_bin (runtime version)
1 parent af2473d commit 04c74be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/snapbox/src/cmd.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,10 @@ pub use crate::cargo_bin;
851851
/// Look up the path to a cargo-built binary within an integration test.
852852
///
853853
/// **NOTE:** Prefer [`cargo_bin!`] as this makes assumptions about cargo
854+
#[deprecated(
855+
since = "0.6.23",
856+
note = "incompatible with a custom cargo build-dir, see instead `cmd::cargo_bin!`"
857+
)]
854858
pub fn cargo_bin(name: &str) -> std::path::PathBuf {
855859
let file_name = format!("{}{}", name, std::env::consts::EXE_SUFFIX);
856860
let target_dir = target_dir();

0 commit comments

Comments
 (0)