Closed JaySon-Huang closed 2 years ago
You should run this
$ cargo test --lib --no-default-features --features flate2/zlib
bin
and lib
are exclusive targets, and they should be built/tested separately. I'm not sure if it is one of pyo3's limitations.
flate2/zlib
is optional but recommended, because flate2
uses Rust implementation by default, which is slow in debug profile.
This is also the way tests are configuered to run in CI:
I should have included this info in the doc, will add it later.
First I try to run tests under libriichi directly and get errors like
Then I follow the FAQ of pyo3 i-cant-run-cargo-test and get errors like