rust-no-std

Cargo test cannot reference anything public inside the targeting crate in integration test. Unit tests also cannot find test cases

喜欢而已 提交于 2020-01-06 05:48:06
问题 I am trying to do some test on my no_std module but I cannot make both integration and unit test working. I think the cargo does not make functions and modules visible to others. The project is at: https://github.com/ShisoftResearch/Nulloc/tree/e2e15646da79651ddb8c29e0526bad0d60690bec Run cargo test , I got: ➜ cargo test Compiling nulloc v0.1.0 (/Users/shisoft/Dropbox/Code/OSS Projects/Nulloc) error[E0432]: unresolved import `nulloc::bump_heap` --> tests/bump_heap.rs:3:14 | 3 | use nulloc: