You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a bug in PyO3, but it can hit Pyo3 users nonetheless.
I'm using PyO3 for a project and wrote some integration tests. I put those tests inside a tests/ directory at the crate root. However my tests fail to compile because my crate couldn't be found:
error[E0463]: can't find crate for `yolo` --> tests/tests.rs:4:1 | 4 | use yolo; | ^^^^^^^^^ can't find crate
It turns out that cdylib crate types can't use tests inside a tests/ directory. See rust-lang/cargo#6659
I think this should be documented, as this is not very obvious. What would be the best place to do that? Inside the FAQ?
The text was updated successfully, but these errors were encountered:
This is not a bug in PyO3, but it can hit Pyo3 users nonetheless.
I'm using PyO3 for a project and wrote some integration tests. I put those tests inside a
tests/
directory at the crate root. However my tests fail to compile because my crate couldn't be found:It turns out that
cdylib
crate types can't use tests inside atests/
directory. See rust-lang/cargo#6659I think this should be documented, as this is not very obvious. What would be the best place to do that? Inside the FAQ?
The text was updated successfully, but these errors were encountered: