Skip to content
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

Warning when used in a test-only crate: ignoring invalid dependency #208

Closed
dtolnay opened this issue Nov 27, 2022 · 0 comments · Fixed by #209
Closed

Warning when used in a test-only crate: ignoring invalid dependency #208

dtolnay opened this issue Nov 27, 2022 · 0 comments · Fixed by #209

Comments

@dtolnay
Copy link
Owner

dtolnay commented Nov 27, 2022

Cargo packages are not required to include a library target. Packages can be binaries-only, tests-only, examples-only, benches-only, or include multiple of those 4 things.

For example https://github.com/serde-rs/serde/tree/v1.0.147/test_suite is a tests-only Cargo package.

Currently trybuild's output displays a warning when used from a tests-only package or other package lacking a library target.

warning: repro-tests v0.0.0 (repro/target/tests/repro) ignoring invalid dependency `repro` which is missing a lib target
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 a pull request may close this issue.

1 participant