Skip to content

Commit 886008e

Browse files
committed
docs(cargo): Specify support for different versions
1 parent 0246aa6 commit 886008e

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

src/cargo.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ where
102102
/// this method with [cross](https://github.com/cross-rs/cross), no extra configuration is
103103
/// needed.
104104
///
105-
/// **NOTE:** Prefer [`cargo_bin!`] as this makes assumptions about cargo
105+
/// Cargo support:
106+
/// - `>1.94`: works
107+
/// - `>=1.91,<=1.93: works with default `build-dir`
108+
/// - `<=1.92`: works
106109
///
107110
/// # Examples
108111
///
@@ -211,9 +214,12 @@ impl fmt::Display for NotFoundError {
211214
}
212215
}
213216

214-
/// Look up the path to a cargo-built binary within an integration test.
217+
/// Look up the path to a cargo-built binary within an integration test
215218
///
216-
/// **NOTE:** Prefer [`cargo_bin!`] as this makes assumptions about cargo
219+
/// Cargo support:
220+
/// - `>1.94`: works
221+
/// - `>=1.91,<=1.93: works with default `build-dir`
222+
/// - `<=1.92`: works
217223
pub fn cargo_bin<S: AsRef<str>>(name: S) -> path::PathBuf {
218224
cargo_bin_str(name.as_ref())
219225
}

src/cmd.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ impl Command {
3737
///
3838
/// See the [`cargo` module documentation][crate::cargo] for caveats and workarounds.
3939
///
40-
/// **NOTE:** Prefer [`cargo_bin!`][crate::cargo::cargo_bin!] as this makes assumptions about cargo
40+
/// Cargo support:
41+
/// - `>1.94`: works
42+
/// - `>=1.91,<=1.93: works with default `build-dir`
43+
/// - `<=1.92`: works
4144
///
4245
/// # Examples
4346
///

0 commit comments

Comments
 (0)