-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
cargo test
prefers dylib over rlib in doc-tests
#1496
Comments
alexcrichton
added a commit
to alexcrichton/cargo
that referenced
this issue
Apr 9, 2015
This commit fixes two problems in Cargo: 1. Only libraries targets that produce an rlib can be doc tested 2. Only the rlib output can be doc tested The rationale for this is listed in listed in the comments of the commit. Closes rust-lang#1496
Merged
alexcrichton
added a commit
to alexcrichton/cargo
that referenced
this issue
Apr 9, 2015
This commit fixes two problems in Cargo: 1. Only libraries targets that produce an rlib can be doc tested 2. Only the rlib output can be doc tested The rationale for this is listed in listed in the comments of the commit. Closes rust-lang#1496
alexcrichton
added a commit
to alexcrichton/cargo
that referenced
this issue
Apr 10, 2015
This commit fixes two problems in Cargo: 1. Only libraries targets that produce an rlib can be doc tested 2. Only the rlib output can be doc tested The rationale for this is listed in listed in the comments of the commit. Closes rust-lang#1496
alexcrichton
added a commit
to alexcrichton/cargo
that referenced
this issue
Apr 10, 2015
This commit fixes two problems in Cargo: 1. Only libraries targets that produce an rlib can be doc tested 2. Only the rlib output can be doc tested The rationale for this is listed in listed in the comments of the commit. Closes rust-lang#1496
alexcrichton
added a commit
to alexcrichton/cargo
that referenced
this issue
Apr 10, 2015
This commit fixes two problems in Cargo: 1. Only libraries targets that produce an rlib can be doc tested 2. Only the rlib output can be doc tested The rationale for this is listed in listed in the comments of the commit. Closes rust-lang#1496
bors
added a commit
that referenced
this issue
Apr 10, 2015
This commit fixes two problems in Cargo: 1. Only libraries targets that produce an rlib can be doc tested 2. Only the rlib output can be doc tested The rationale for this is listed in listed in the comments of the commit. Closes #1496
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If both
dylib
andrlib
are specified as crate type,cargo test
prefers the dylib over the rlib, making the doc tests fail due to (probably) linking failures.Cargo.toml
src/lib.rs
Output of
cargo test --verbose
:The text was updated successfully, but these errors were encountered: