-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Cannot test dylib #2890
Comments
I think this may actually be a bug in the compiler right now. To be clear, you're talking about a |
Yes, exactly. |
Would it help if I logged a bug with rustc and referenced this issue? |
Oh sure yeah, I opened up an issue here -- rust-lang/rust#34909 |
Sounds like this issue has been replaced by the rust-lang/rust issue rust-lang/rust#34909 so I'm closing this one. Please reopen if there's a cargo component that needs to be changed once that issue is fixed that I'm missing. Thanks! |
Cargo will create DSOs and compile src/bin/*rs files just fine (which also run fine).
However, Cargo is unable to compile/run test programs for crates that have [lib] crate-type = ["dylib"].
I can not add rlib - if I do then any dependent crates will only link statically - and they MUST link this crate dynamically.
I tried to craft my own rustc, but it seems the thing blocking me is '--test'.
Is there any way at all to write tests against crates with crate-type = ["dylib"] ?
Thanks.
The text was updated successfully, but these errors were encountered: