Skip to content

Conversation

@epage
Copy link
Contributor

@epage epage commented Oct 28, 2025

The problem with this is we can't compile doctests using cargo_bin!. Unsure what the right answer is.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 18889989393

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 31 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-5.7%) to 39.463%

Files with Coverage Reduction New Missed Lines %
src/cmd.rs 3 48.18%
src/cargo.rs 28 0.0%
Totals Coverage Status
Change from base Build 18688107032: -5.7%
Covered Lines: 191
Relevant Lines: 484

💛 - Coveralls

@epage epage merged commit b84678b into assert-rs:master Oct 28, 2025
15 checks passed
@epage epage deleted the dep branch October 28, 2025 21:50
/// [`Command`]: std::process::Command
#[deprecated(
since = "2.1.0",
note = "incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin!`"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am confused by this deprecation notice. Does "custom cargo build-dir" mean custom target directory, e.g., as one would specify with CARGO_TARGET_DIR?

The incompatibility is not related to changing the build directory within the target directory (e.g., target/debug/build), correct?

If it is neither of these, could you please point me to a reference?

Copy link
Contributor Author

@epage epage Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rust 1.91 split a build-dir out of target-dir with the default falling back to target-dir, for now though I hope to change that in the future.

See https://doc.rust-lang.org/cargo/reference/build-cache.html

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.

3 participants