Skip to content

Doc tests cannot be tested in binary-only projects #10884

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alice-i-cecile opened this issue Jul 21, 2022 · 2 comments
Closed

Doc tests cannot be tested in binary-only projects #10884

alice-i-cecile opened this issue Jul 21, 2022 · 2 comments
Labels
C-bug Category: bug

Comments

@alice-i-cecile
Copy link

alice-i-cecile commented Jul 21, 2022

Problem

  1. Create a binary only Rust project
  2. Run cargo test --doc --workspace
  3. error: no library targets found in packages: ci, makeshift

Version

cargo 1.64.0-nightly (dbff32b27 2022-06-24)
release: 1.64.0-nightly
commit-hash: dbff32b27893b899ae2397f3d56d1be111041d56
commit-date: 2022-06-24
host: x86_64-pc-windows-msvc
libgit2: 1.4.2 (sys:0.14.2 vendored)
libcurl: 7.83.1-DEV (sys:0.4.55+curl-7.83.1 vendored ssl:Schannel)
os: Windows 10.0.19043 (Windows 10 Home) [64-bit]
@alice-i-cecile alice-i-cecile added the C-bug Category: bug label Jul 21, 2022
@epage
Copy link
Contributor

epage commented Jul 21, 2022

Is the concern more about wanting doc tests to be able to run on binaries (#5477) or that its reporting error: no library targets found in packages: ci, makeshift?

@alice-i-cecile
Copy link
Author

Former. Closing as duplicate of #5477, which I couldn't find in my search :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants